Results 1 to 3 of 3

Thread: Label for frame

  1. #1
    Join Date
    Feb 2006
    Location
    US
    Posts
    173
    Thanks
    16
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Label for frame

    Hello,

    How does one specify the label for a QFrame? Or should I use the QGroupBox?

    Thanks,
    Ben

  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: Label for frame

    Use QGroupBox.

  3. #3
    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: Label for frame

    Remember that QLabel is a QFrame so you can use QLabel instead of QFrame and use it directly (for example with proper alignment so that you can position the text where you want it). Of course all that provided it fits your needs.

  4. The following user says thank you to wysota for this useful post:

    brcain (26th September 2006)

Similar Threads

  1. Replies: 15
    Last Post: 31st January 2020, 18:25
  2. Change Font Color of Label and CheckBox
    By mahe2310 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 15th June 2006, 10:24
  3. label
    By mickey in forum Qt Programming
    Replies: 10
    Last Post: 8th June 2006, 18:58
  4. tool tip for label
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 21st April 2006, 13:22

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.