Results 1 to 6 of 6

Thread: Z-Order QLabels in QWidget

  1. #1
    Join Date
    Apr 2015
    Posts
    12
    Thanks
    1
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Z-Order QLabels in QWidget

    Hi,
    I have multiple QLabels in one QWidget. How can I change the Z-Value of these QLabels to have the control on which one is on top of the others ?
    I need to do it dynamically as I sometimes want to add a QLabel below the others.
    Thanks !

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Z-Order QLabels in QWidget

    Use Graphics View instead of what you have now.
    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.


  3. #3
    Join Date
    Apr 2015
    Posts
    12
    Thanks
    1
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Z-Order QLabels in QWidget

    My QWidgets are already part of a GraphicsView. Can I have GraphicViews part of other GraphicViews ?
    Thanks.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Z-Order QLabels in QWidget

    Widgets are part of Graphics View? Why? Why aren't you using graphics items?
    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.


  5. #5
    Join Date
    Apr 2015
    Posts
    12
    Thanks
    1
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Z-Order QLabels in QWidget

    Because 1 week ago I had even no clue of the existence of Qt :-)
    Learning, learning, learning.
    Thanks !

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Z-Order QLabels in QWidget

    So start using graphics items and make use of their z-order value.
    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. Replies: 3
    Last Post: 30th January 2012, 09:44
  2. Handling z order of QLabels in QFrames
    By [?]jNs in forum Newbie
    Replies: 1
    Last Post: 28th July 2011, 17:33
  3. Two QLabels transparent to each other
    By augusbas in forum Qt Programming
    Replies: 3
    Last Post: 3rd November 2010, 06:19
  4. How to show QLabels
    By Pavel Abrosimov in forum Qt Programming
    Replies: 24
    Last Post: 9th July 2009, 09:39
  5. Dynamic QLabels
    By rajeshs in forum Qt Programming
    Replies: 3
    Last Post: 30th May 2008, 11:26

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.