Results 1 to 2 of 2

Thread: A menu without a menu

  1. #1
    Join Date
    Apr 2013
    Location
    Prague
    Posts
    258
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    3
    Thanked 65 Times in 59 Posts

    Default A menu without a menu

    Continuing investigating Qt I meet a problem.

    Suppose, I have a menu bar with an About menu heading on it. The About heading has no menu, it is wanted that clicking About will display an about box. No problem to create a heading without an attached menu but how to connect it? All signals seem to be emitted by clicking or otherwise manipulating menu items. There seems to be no signal emitted on clicking the About.

    I have tried to (ab)use the aboutToShow() signal but it works only once. When I click About for the first time, I get the signal but then I get the signal anytime the mouse occurs over the About. Not good.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: A menu without a menu

    Use a toolbar instead of a menu. What you are trying to do is not a good use-case for a menu.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 5
    Last Post: 29th November 2012, 16:26
  2. Replies: 1
    Last Post: 18th May 2012, 12:36
  3. Replies: 2
    Last Post: 11th May 2012, 11:38
  4. Replies: 1
    Last Post: 4th November 2011, 12:25
  5. Qt Pie Menu
    By stefan1981 in forum Qt Programming
    Replies: 1
    Last Post: 12th September 2008, 16:13

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
  •  
Qt is a trademark of The Qt Company.