Results 1 to 2 of 2

Thread: QGraphicsProxyWidget shows in a blimp of a second

  1. #1
    Join Date
    Oct 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QGraphicsProxyWidget shows in a blimp of a second

    Hello

    I'm making an KDE plasmoid and use an QGraphicsLinearLayout to add some elements. Those elements can't be Widget's but must me from the class QGraphicsLayoutItem. So I create a new QGraphicsProxyWidget and call the "setWidget(QWidget*)" function. It shows in a blimp of second and then it dissappears. Can someone help me fix this.

    The header file of my .ui widget: http://aiids.pastebin.com/7cTiJ8rg
    The calling code: http://aiids.pastebin.com/2BtcSvsV

    The funny is, when I replace frameLayout->addItem(proxyWidget); with frameLayout->addItem(new QLabel("foo"));, it shows the label.

  2. #2
    Join Date
    Oct 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Thumbs up Re: QGraphicsProxyWidget shows in a blimp of a second

    Solved it thanks to the follow code:

    http://websvn.kde.org/trunk/KDE/kdee...pp?view=markup

Similar Threads

  1. QWebKit shows raw text
    By prof.ebral in forum Newbie
    Replies: 17
    Last Post: 6th February 2011, 11:12
  2. Replies: 1
    Last Post: 29th January 2010, 14:44
  3. Need a book or website that shows how to do qt animation
    By technoViking in forum Qt Programming
    Replies: 1
    Last Post: 6th November 2009, 06:00
  4. QWebView shows '?' instead of all images
    By doep in forum Qt Programming
    Replies: 2
    Last Post: 5th February 2009, 11:03
  5. Program that just shows a window
    By claudio-cit in forum Newbie
    Replies: 2
    Last Post: 5th July 2008, 10:55

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.