what window flag to set for qdialogbox?
-
I have two monitors. the first one displays properly, the second one doesn't have the minimize, maximize, and close buttons.
What flag do i need to set, so that the dialogbox would be display the same on both screens upon creation?ChartDialog *dlg = new ChartDialog(); Qt::WindowFlags flags = 0; flags |= Qt::WindowMaximizeButtonHint; flags |= Qt::WindowContextHelpButtonHint; flags |= Qt::WindowMinimizeButtonHint; flags |= Qt::WindowCloseButtonHint; dlg->setWindowFlags(flags); dlg->setWindowTitle("Chart Dialog"); dlg->show();
-
@rafael said in what window flag to set for qdialogbox?:
I have two monitors. the first one displays properly, the second one doesn't have the minimize, maximize, and close buttons.
Do you mean on one monitor your dialog has these buttons and on another monitor it does not?
Or is this: "I have two monitors" a mistake and you mean dialogs and not monitors? -
@jsulm i have a desktop with dual output, only one dialog box gets created at a time. When i generate the dialog box if the mainwindow is on the first monitor, it appears the same as the first image.
When i generate the dialog box, if the mainwindow is on the second monitor, it appears the same as the second image. -
Hi,
What OS are you running ?
If Linux:- What distribution are you using ?
- What desktop environment are you using ?
- What Window Manager are you using ?
-
@rafael said in what window flag to set for qdialogbox?:
QT 5.9.1
I would try with recent Qt version to see whether this issue is already fixed.