Results 1 to 4 of 4

Thread: Qtable header stop extending to end

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Location
    Sri Lanaka
    Posts
    64
    Thanks
    39
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Post Qtable header stop extending to end

    How can i remove this??
    its the header of the table... it stretch to the end... how can i stoop it from where data ends..
    without stretching the last header section
    Table.jpg

  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: Qtable header stop extending to end

    The header of that table doesn't stretch to the right hand end of the space available. What is the problem?

  3. The following user says thank you to ChrisW67 for this useful post:

    deepal_de (10th June 2011)

  4. #3
    Join Date
    Jan 2011
    Location
    Sri Lanaka
    Posts
    64
    Thanks
    39
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Qtable header stop extending to end

    i was thinking of a way to remove the part that i have highlighted in red??
    stop the header from extending from "timezone " column.
    it should stop at the end of the timezone column..
    is there a way??

  5. #4
    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: Qtable header stop extending to end

    it is not the header which is extending, it's the view / table widget's background which is extending, the header end's with timestamp column.

    You can configure such that the last column takes up all the remaining space in the backgroung. Try this
    Qt Code:
    1. void setStretchLastSection(true);
    To copy to clipboard, switch view to plain text mode 

  6. The following user says thank you to Santosh Reddy for this useful post:

    deepal_de (13th July 2011)

Similar Threads

  1. Extending QtTest lib
    By davif in forum Newbie
    Replies: 5
    Last Post: 4th November 2010, 19:45
  2. QStandardItem's header item and header label
    By feverzsj in forum Newbie
    Replies: 1
    Last Post: 14th January 2010, 19:57
  3. Extending QTimer()
    By rishid in forum Qt Programming
    Replies: 3
    Last Post: 7th August 2009, 01:59
  4. How to customize horizontal header (diagonal header view)
    By vairamuthu.g in forum Qt Programming
    Replies: 4
    Last Post: 4th September 2008, 15:59
  5. QTable Horizontal Header Off
    By Solarity in forum Newbie
    Replies: 1
    Last Post: 17th March 2006, 20:32

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.