Results 1 to 2 of 2

Thread: how to set title on the top-left corner of QFrame?

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default how to set title on the top-left corner of QFrame?

    how to set title on the top-left corner of QFrame?
    shows as attachmentstitle.PNG

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: how to set title on the top-left corner of QFrame?

    Either write a sub-class of QFrame and implment paint() or just reuse QGroupBox and set layout margin as required

Similar Threads

  1. Replies: 1
    Last Post: 18th May 2011, 14:36
  2. Replies: 4
    Last Post: 13th February 2011, 20:24
  3. Replies: 4
    Last Post: 30th May 2010, 12:55
  4. QTableWidget - Using top left corner cell
    By SteveH in forum Newbie
    Replies: 6
    Last Post: 12th March 2010, 19:33
  5. Replies: 1
    Last Post: 7th September 2008, 10:47

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.