WhatsThis '?' not showing
-
I have a large application that I recently updated from Qt 5.15 (32-bit, MinGW) to Qt 6.6 (64-bit MinGW). The little ''?" in the upper right of all my dialog boxes no longer appears, so my whatsthis help pop-ups do not work.
The source code for the two compilations is EXACTLY the same.
Screen shot for 5.15, 32-bit:
And here is the same screen with the Qt 6.6, 64-bit:
Where is the whatsThis '?'. I do not see this issue in the change logs, though they are pretty extensive and hard to find stuff in there. -
How do you create your GUI? Any
*.ui
file involved, where something was changed manually?I think it's a
WindowFlag
issue.The
CustomizeWindowHint
flag is used to enable customization of the window controls. This flag must be set to allow theWindowTitleHint
,WindowSystemMenuHint
,WindowMinimizeButtonHint
,WindowMaximizeButtonHint
andWindowCloseButtonHint
flags to be changed.Qt::WindowContextHelpButtonHint
Adds a context help button to dialogs. On some platforms this implies Qt::WindowSystemMenuHint for it to work.(from: https://doc.qt.io/qt-6/qt.html#WindowType-enum)
Try
setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowContextHelpButtonHint);
-
@nekkceb said in WhatsThis '?' not showing:
Qt 6.6 but not Qt 5.15?
Since the step from 5.15 to 6.6 is pretty huge (a major release + some LTS versions in between), you can't be sure that the same code works the same for both versions.
Defaults could have changed or something else.That's why upgrading/porting a program from one to another release is often pain in the ass ;-)
Things that have worked, stopped working, changed or even got removed completely.You could scan the release and patch notes between 5.15 and 6.6 to see if you can find some more information
A good start is always checking (and comparing) both documentation pages.
I use EXACTLY THE SAME SOURCE CODE!
The flags can be set in the
*.ui
file with QtDesigner. That's why I was asking... -