How can i manipulate this button [img 1], which automaticly created in my project?
Interested function:
- Delete;
- Open new window with help;
How can i manipulate this button [img 1], which automaticly created in my project?
Interested function:
If you want to remove that button us the following in your dialog constructor:
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
See QWidget::setWindowFlags()
and Qt::WindowFlags
in the documentation.
The standard "?" button allows the user to enter a "What's this?" mode.
Quoting Qt documentation:
"What's This?" help is part of an application's online help system, and provides users with information about the functionality and usage of a particular widget. "What's This?" help texts are typically longer and more detailed than tooltips, but generally provide less information than that supplied by separate help windows.
If you want to simply show help, have a looke at QWidget::setWhatsThis(const QString &)
.
If you want to do more advanced things, have a look at the QWhatsThis
class documentation. Basically you need to catch QEvent::WhatsThis
events and implement the behavior you want.
On a side note, software behavior are standardized and users do not expect strange behaviors. You should not make your software behave in an unexpected way. Example: the "X" button in the title bar should close the window and/or close the application, it should not do anything else. This is called the principle of least astonishment