By default, the Qt :: WindowContextHelpButtonHint flag is added to the dialogs. You can control this with the WindowFlags parameter in the dialog constructor.
For example, you can specify only the TitleHint and SystemMenu flags:
QDialog *d = new QDialog(0, Qt::WindowSystemMenuHint | Qt::WindowTitleHint); d->exec();
If you add the Qt :: WindowContextHelpButtonHint flag, you will return the help button.
In PyQt, you can:
from PyQt4 import QtGui, QtCore app = QtGui.QApplication([]) d = QtGui.QDialog(None, QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint) d.exec_()
For more information on window flags, see the WindowType listing in the Qt documentation.
amos Sep 17 '08 at 10:44 2008-09-17 10:44
source share