View Full Version : WhatsThis button in QMainWindow
_Jack_
15th October 2010, 21:42
Dear Qt programmers,
a QDialog show a default WhatsThis help button [?] , near the close button, but QMainWindow not. Is there an easy way to have also in a QMainWindow the [?] button near the default close ,reduce to icon and maximize buttons?
Thanks in advance.
Lykurg
15th October 2010, 23:41
See Qt::WindowContextHelpButtonHint.
_Jack_
16th October 2010, 15:27
Hi Lykurg, I know, but the question was: is possible to have together a Qt::WindowContextHelpButtonHint and a Qt::WindowMinMaxButtonsHint ?
It seem they are mutually exclusive...as the examples\widgets\windowsflags also show to me. (I'm using win 7 env). I have to suppose it is not possible to do?
_Jack_
18th October 2010, 13:48
Is it really not possible to have together Qt::WindowContextHelpButtonHint and a Qt::WindowMinMaxButtonsHint ?
Ginsengelf
19th October 2010, 08:42
Hi, you can OR them together:
setWindowFlags (Qt::WindowContextHelpButtonHint | Qt::WindowMinMaxButtonsHint)
Ginsengelf
Lykurg
19th October 2010, 08:44
In theory yes, but the "?" in not shown in reality.
Ginsengelf
19th October 2010, 14:41
Ah, I wasn't sure whether windows would show it or not.
_Jack_
20th October 2010, 17:44
yes, I do not know under other platforms, but under Windows not works... a bug or an intended feature?
genjix
23rd October 2010, 09:58
do other windows apps show it because I've never recalled seeing them in the main app? Seems like a limitation in windows maybe :p
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.