Results 1 to 4 of 4

Thread: QTableWidget- how to set caption

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2013
    Location
    Melbourne
    Posts
    36
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QTableWidget- how to set caption

    Hallo,
    I am using multiple widgets (like plot, table etc.) on one page. I would like to have a caption ("Bandwidth Table") as shown in the attached picture. I can set the headers (eg: "Date" & "Traffic") but not the caption.
    Could someone help me please!
    Attached Images Attached Images

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QTableWidget- how to set caption

    There is no "caption". Just place a QLabel in the layout.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QTableWidget- how to set caption

    Or put the table into a QGroupBox

    Cheers,
    _

  4. #4
    Join Date
    May 2013
    Location
    Melbourne
    Posts
    36
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QTableWidget- how to set caption

    Thank you so much @ChrisW67 and @anda_skoa. Both worked fine but I found QGroupBox is easier to use.

Similar Threads

  1. Caption in QMenu
    By Lykurg in forum Newbie
    Replies: 4
    Last Post: 16th April 2014, 22:41
  2. Qt Assistant how to add a help caption within the code?
    By Naytheet in forum Qt Tools
    Replies: 0
    Last Post: 16th February 2013, 14:10
  3. qtopia window decoration cannot show caption
    By qtopiahooo in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 13th March 2007, 08:09
  4. window decoration cannot show caption
    By qtopiahooo in forum Qt Programming
    Replies: 1
    Last Post: 31st January 2007, 08:17
  5. Using kwm window caption bar color
    By OldJohnB in forum Qt Programming
    Replies: 7
    Last Post: 9th February 2006, 04:00

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
  •  
Qt is a trademark of The Qt Company.