Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How in the Centos system of QMainWindow QDialog add Qt::WindowContextHelpButtonHint
Forum Updated to NodeBB v4.3 + New Features

How in the Centos system of QMainWindow QDialog add Qt::WindowContextHelpButtonHint

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 244 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    roy815
    wrote on last edited by
    #1

    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 );

    jsulmJ R 2 Replies Last reply
    0
    • R roy815

      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 );

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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."

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • R roy815

        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 );

        R Offline
        R Offline
        roy815
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved