Results 1 to 2 of 2

Thread: displaying multiple Qt::Popup widgets? (widget above QMenu)

  1. #1

    Default

    I am trying to display a custom toolbar widget above a QMenu similar to right clicking on an object in excel or powerpoint. Since both widgets are popup widgets and they behave as a stack in qt, when you click outside of the menu and custom widget, the top popup widget closes and then the next popup widget becomes the top. Are there any suggestions on how to make this behave as though both widgets are on top and if you click on a widget, the event occurs on the widget while closing the other? I've tried installing an event filter but didnt have much luck getting the correct behavior. Perhaps create a single widget that contains both?
    Last edited by gobills; 7th September 2013 at 01:12.

  2. #2

    Default Re: displaying multiple Qt::Popup widgets? (widget above QMenu)

    found more information below. Not the greatest solution since it is using the mouse release to detect if something on the toolbar is pressed. Any better ideas would be appreciated!

    http://blog.qt.digia.com/blog/2012/1...-context-menu/
    Last edited by gobills; 7th September 2013 at 01:53.

Similar Threads

  1. Replies: 1
    Last Post: 2nd October 2012, 01:38
  2. Replies: 12
    Last Post: 1st May 2011, 11:38
  3. QScrollArea containing multiple widgets
    By Mercurial in forum Newbie
    Replies: 3
    Last Post: 4th February 2011, 10:08
  4. Popup widget always on top over other Widgets
    By erila107 in forum Qt Programming
    Replies: 0
    Last Post: 10th December 2010, 10:53
  5. Replies: 3
    Last Post: 17th May 2009, 20:17

Tags for this Thread

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.