Qt::WindowContextHelpButtonHint for QMainWindow on Windows
-
Hi :-)
I do
setWindowFlags(windowFlags() | Qt::WindowContextHelpButtonHint);
in the constructor of myQMainWindow
derived main window class to get the "?" WhatsThis button in the window title bar. This works nicely on my Linux machine (where I develop the program), but it apparently has no effect on Windows – here, the "?" button is not displayed.What's wrong here? Do I have to do something else for Windows? Thanks for all help!
Cheers, Tobias
-
Hi
As far as i know, the "?" is only working for Dialogs on Windows platform. -
@l3u_
Hi
To be more exact. You can use ? on mainwindows if its ok it have no min / max buttons.
Alternatively you can use your own button and get same effect.
Its just in status bar instead of caption.
https://forum.qt.io/topic/96221/gui-design-how-to-properly-activate-whats-this-help/2 -
What I have on Linux (and thought it "simply" would be the same on Windows) is the "?" button in the title bar of my MainWindow, just like it's the default for a dialog. Not having min/max buttons is not possible, I need them and only the "?" in addition.
But apparently (after some further research), Windows simply does not allow to have the dialog appearance on a main window, so I think I won't get this for my Windows version.
Perhaps, this should be mentionned in the docs …
-
@l3u_ said in Qt::WindowContextHelpButtonHint for QMainWindow on Windows:
Perhaps, this should be mentionned in the docs …
You could contribute a patch to the doc :-)