Results 1 to 2 of 2

Thread: QWidget in QWidget

  1. #1
    Join Date
    Feb 2015
    Posts
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default QWidget in QWidget

    Hi, how can i put QWidget in QWidget to act like my icons in my desktop. I Want to make simulation of desktop, where i have icons and windows who cant leave QWidget area.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QWidget in QWidget

    Use a QGraphicsView as the view for your application. Use a QGraphicsScene and add QGraphicsPixmapItem instances to represent the icons.

Similar Threads

  1. Replies: 1
    Last Post: 30th May 2014, 17:09
  2. Replies: 1
    Last Post: 16th September 2010, 15:57
  3. Replies: 1
    Last Post: 12th April 2010, 12:55
  4. Replies: 3
    Last Post: 1st April 2010, 23:56
  5. Replies: 1
    Last Post: 2nd May 2006, 21:11

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.