Solved How to enable context help button in QDockWidget ?
-
I tried to enable context help button in QDockWidget derived class:
Qt::WindowFlags flags = m_myDock->windowFlags(); flags = flags | Qt::WindowContextHelpButtonHint; m_myDock->setWindowFlags(flags);
It is not functional. Still I see close button and maximize button. What else is need to display context help button ?
-
Hi
Im not sure WindowContextHelpButtonHint works with QDockWidget.
( docs says its for dialogs)
http://doc.qt.io/qt-5/qt.html#WindowType-enumYou could use
http://doc.qt.io/qt-5/qdockwidget.html#titleBarWidget
and implement this feature ( or close to) yourself.