Results 1 to 2 of 2

Thread: QStaticText and QLabel

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default QStaticText and QLabel

    Hello!

    I was searching for tips for embedded linux programming and I found out that one such tips is to use QStaticText over QText while drawing texts on widgets. I did some research about this aspect and not only found that such "QText" didn't exist, but also that the QStaticText was supposed to be used inside a QWidget:aintEvent() reimplementation.

    The question is: why would I draw my text inside a reimplemented QWidget:aintEvent() if I can use a simple QLabel for that? Is QLabel less advisable to be used then QStaticText with paintEvent()?


    Thanks,

    Momergil
    May the Lord be with you. Always.

  2. #2
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QStaticText and QLabel

    No one knows anything about this?
    May the Lord be with you. Always.

Similar Threads

  1. geting QLabel text ontop of other QLabel displaying image
    By krystosan in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2013, 18:35
  2. Replies: 1
    Last Post: 29th September 2009, 20:44
  3. QLabel bug??? Please help
    By jwieland in forum Qt Programming
    Replies: 3
    Last Post: 3rd April 2009, 21:04
  4. Replies: 1
    Last Post: 2nd August 2008, 16:46
  5. Qlabel
    By dragon in forum Qt Programming
    Replies: 10
    Last Post: 7th August 2007, 17:46

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.