Results 1 to 3 of 3

Thread: problem with aboutToHide signal on QMenu

  1. #1
    Join Date
    Aug 2009
    Posts
    81
    Platforms
    MacOS X Windows

    Default problem with aboutToHide signal on QMenu

    I have created a QMenu (in fact a sub menu which is added to my menubar with setMenu)

    i have connected an aboutToShow for this QMenu that works well,

    my problem is that i have connected also an aboutToHide and i never get any signal when this sub menu goes away.

    what am i missing.. is that signal suppose to come, if not how can i detect when a user close a menu without triggering any action.

    thank you for your help

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

    Default Re: problem with aboutToHide signal on QMenu

    The signal is emitted in menu's hideEvent(). There is no condition there so it should always be emitted.
    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.


  3. #3
    Join Date
    Aug 2009
    Posts
    81
    Platforms
    MacOS X Windows

    Default Re: problem with aboutToHide signal on QMenu

    thank you for your answer...

    it is strange i don't get this signal..following what you said, i even tried to subclass my qmenu in order to reach the hideEvent... but this event does not seem to be launched in my subclass either... is there something to add to trap those events.

Similar Threads

  1. signal problem
    By brantyou in forum Newbie
    Replies: 5
    Last Post: 15th September 2010, 15:34
  2. [Qt] QMenu problem with method popup.
    By Xandareva in forum Newbie
    Replies: 1
    Last Post: 24th July 2010, 12:29
  3. QMenu Multiple selection problem
    By vajindarladdad in forum Newbie
    Replies: 3
    Last Post: 7th August 2009, 13:32
  4. problem in QMenu
    By wagmare in forum Qt Programming
    Replies: 0
    Last Post: 29th January 2009, 08:56
  5. Replies: 1
    Last Post: 29th February 2008, 23:04

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.