Top "Qmainwindow" questions

QMainWindow is a class in Qt library that implements the main window of an application.

adding child in QMainWindow

How can i add two child Widget objects in equal portion of QMainWindow. MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { TreeArea *…

qt4 qmainwindow
How to change color of QMainWindow borders and title bar?

The QMainWindow below is assigned a dark-gray background-color using QSS. I would also like to change the color of the …

python qt pyqt qmainwindow qtstylesheets
How can I set text of label when a function is running?

I want to set the text of a label on main window when a function in code is running. But …

qt qt4 qmainwindow mainwindow
How to display text in main window?

I'm new to Qt and I'm having a hard time finding a simple example illustrating how to display some text …

c++ qt qtgui qmainwindow qlabel
Can you add a toolbar to QDialog?

I'm working on a project that needs to call a modal window with a toolbar to do some work on …

c++ qt modal-dialog qmainwindow qdialog
How to use focusInEvent and focusOutEvent

I am implementing an application in which i am having 3 QToolButton and when the focus is coming on any QToolButton …

c++ qt qmainwindow qevent
Qt add menuBar, menus, and sub menus to QMainWindow

I have a hard time adding menu Bar, menus and sub menus to Qt QMainWindow programmatically. The following code produces …

c++ qt qt5 qmainwindow qmenubar
pyQt5 change MainWindow Flags

I use python 3.4 , pyQt5 and Qt designer (Winpython distribution). I like the idea of making guis by designer and importing …

python pyqt5 qt-designer flags qmainwindow
PyQt: How to hide QMainWindow

Clicking Dialog_01's button hides its window and opens Dialog_02. Clicking Dialog_02's button should close its windows and unhide …

python pyqt qtgui qmainwindow
How to center a QDialog in QT?

I have this example code: QDialog *dialog = new QDialog(this); QPoint dialogPos = dialog->mapToGlobal(dialog->pos()); QPoint thisPos = …

c++ qt qmainwindow qdialog