Results 1 to 2 of 2

Thread: Unembed QDialog in QGraphicsProxyWidget

  1. #1

    Default Unembed QDialog in QGraphicsProxyWidget

    I have a QDialog in a graphicsview by using a QGraphicsProxyWidget and calling setWidget(dialog). However, I'd like to be able to "unembed" or "undock" the dialog from the graphicsview. I can call setWidget(NULL) on the proxy and it turns white, but my dialog doesn't pop out.

    Can widgets be pulled out of a proxy?

  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: Unembed QDialog in QGraphicsProxyWidget

    Delete the proxy and show() or exec() the real widget.
    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. Move QGraphicsProxyWidget
    By RThaden in forum Qt Programming
    Replies: 14
    Last Post: 17th September 2016, 14:01
  2. Replies: 1
    Last Post: 30th June 2010, 14:13
  3. Rotating a QGraphicsProxyWidget
    By Luc4 in forum Qt Programming
    Replies: 3
    Last Post: 16th June 2010, 13:53
  4. QGraphicsItem or QGraphicsProxyWidget?
    By ttvo in forum Qt Programming
    Replies: 5
    Last Post: 30th August 2009, 23:13
  5. QGraphicsProxyWidget
    By QbelcorT in forum Qt Programming
    Replies: 0
    Last Post: 29th November 2008, 08:21

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.