How in the Centos system of QMainWindow QDialog add Qt::WindowContextHelpButtonHint
-
-
@roy815 said in How in the Centos system of QMainWindow QDialog add Qt::WindowContextHelpButtonHint:
setWindowFlags(Qt::CustomizeWindowHint|Qt::WindowContextHelpButtonHint | Qt::WindowCloseButtonHint );
You're overwriting the flags, it should be:
setWindowFlags(flags() | Qt::CustomizeWindowHint|Qt::WindowContextHelpButtonHint | Qt::WindowCloseButtonHint );
Also, is for dialogs and you should read the documentation:
"Adds a context help button to dialogs. On some platforms this implies Qt::WindowSystemMenuHint for it to work." -
@roy815 said in How in the Centos system of QMainWindow QDialog add Qt::WindowContextHelpButtonHint:
Development environment:c++11 qt5.12 centos
My needs: add Qt::WindowContextHelpButtonHint in QMainWindow and QDialog
what i have done but no effect:setWindowFlags(Qt::CustomizeWindowHint|Qt::WindowContextHelpButtonHint | Qt::WindowCloseButtonHint );I have tried that what you say yesterday,but no effect too.I looked up a lot of information on the Internet, there is no relevant solution.May be ,In Linux, it is not possible to add a context help button to dialogs or mainwindow.