Results 1 to 9 of 9

Thread: WhatsThis button in QMainWindow

  1. #1
    Join Date
    Apr 2010
    Posts
    18
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default WhatsThis button in QMainWindow

    Dear Qt programmers,
    a QDialog show a default WhatsThis help button [?] , near the close button, but QMainWindow not. Is there an easy way to have also in a QMainWindow the [?] button near the default close ,reduce to icon and maximize buttons?

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: WhatsThis button in QMainWindow

    See Qt::WindowContextHelpButtonHint.

  3. #3
    Join Date
    Apr 2010
    Posts
    18
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: WhatsThis button in QMainWindow

    Hi Lykurg, I know, but the question was: is possible to have together a Qt::WindowContextHelpButtonHint and a Qt::WindowMinMaxButtonsHint ?
    It seem they are mutually exclusive...as the examples\widgets\windowsflags also show to me. (I'm using win 7 env). I have to suppose it is not possible to do?

  4. #4
    Join Date
    Apr 2010
    Posts
    18
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: WhatsThis button in QMainWindow

    Is it really not possible to have together Qt::WindowContextHelpButtonHint and a Qt::WindowMinMaxButtonsHint ?

  5. #5
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    509
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: WhatsThis button in QMainWindow

    Hi, you can OR them together:
    Qt Code:
    1. setWindowFlags (Qt::WindowContextHelpButtonHint | Qt::WindowMinMaxButtonsHint)
    To copy to clipboard, switch view to plain text mode 

    Ginsengelf

  6. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: WhatsThis button in QMainWindow

    In theory yes, but the "?" in not shown in reality.

  7. #7
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    509
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: WhatsThis button in QMainWindow

    Ah, I wasn't sure whether windows would show it or not.

  8. #8
    Join Date
    Apr 2010
    Posts
    18
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: WhatsThis button in QMainWindow

    yes, I do not know under other platforms, but under Windows not works... a bug or an intended feature?

  9. #9
    Join Date
    Oct 2010
    Posts
    37
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: WhatsThis button in QMainWindow

    do other windows apps show it because I've never recalled seeing them in the main app? Seems like a limitation in windows maybe

Similar Threads

  1. Disabling the Maximize button in QMainWindow ?
    By sunil.thaha in forum Qt Programming
    Replies: 17
    Last Post: 26th June 2017, 13:31
  2. Remove max,min button on a QMainWindow
    By Krish_ng in forum Qt Programming
    Replies: 9
    Last Post: 3rd August 2012, 13:36
  3. Replies: 1
    Last Post: 19th May 2010, 17:50
  4. whatsThis hotkeys for a Mac?
    By wconstan in forum Newbie
    Replies: 1
    Last Post: 28th November 2009, 13:12
  5. QMainWindow...button in subwindows
    By Peppy in forum Qt Programming
    Replies: 1
    Last Post: 15th October 2009, 15:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.