Results 1 to 2 of 2

Thread: Managing Z order without QCanvasItem

  1. #1
    Join Date
    Jan 2006
    Posts
    162
    Thanks
    9
    Qt products
    Qt3
    Platforms
    Windows

    Default Managing Z order without QCanvasItem

    Hi there,

    I'm trying to developp a widget composed of 5 bitmaps.

    One of those bitmaps is in the background and the four others are over.

    What I want to do is showing or hiding the four bitmaps and I want to be sure that the are over the background bitmap.

    I have seen in Qt documentation that it is possible to manage the z ordering using QCanvasItem ... but it is a bit hard understanding and using for me so I want to know if there is another way to do what I want ?

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Managing Z order without QCanvasItem

    You can paint those pixmaps yourself. Just subclass QWidget and reimplement paintEvent() methods.

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.