Results 1 to 3 of 3

Thread: Change QTableview

  1. #1
    Join Date
    Sep 2011
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Change QTableview

    How do I increase the width of the vertical scroll QTableView, already tried to use styles, the children of QTableView access and change them, increasing area of the scroll area or decreasing the viewport, and could not, change,
    currently it is well

    _______________________
    HEADER
    ______________________
    | H |........................ | S |
    | E | viewport............ | C |
    | A |........................ | R |
    | D |........................ | O |
    | E |........................ | L |
    |_R_|_______________| L |


    must be well

    _______________________
    HEADER
    ______________________
    | H |........................ |.....S..... |
    | E | viewport........... |.....C..... |
    | A |........................ |.....R..... |
    | D |........................ |.....O.... |
    | E |........................ |.....L..... |
    |_R_|_______________|.....L..... |

    any suggestions? thanks.

  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: Change QTableview

    I guess a style sheet applied to the table view could do want you want:
    Qt Style Sheets Reference
    Look at the QScrollbar section in the reference.
    Last edited by ChrisW67; 11th September 2011 at 23:50. Reason: D'oh! Wrong button...

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

    wparja (12th September 2011)

  4. #3
    Join Date
    Sep 2011
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Change QTableview

    thanks Chris, it worked perfectly

Similar Threads

  1. How can I change row heigth in QTableView?
    By Tamara in forum Qt Programming
    Replies: 8
    Last Post: 18th August 2011, 20:41
  2. Change cursor inside QTableview
    By big4mil in forum Qt Programming
    Replies: 4
    Last Post: 15th November 2010, 11:04
  3. Change QTableView orientation
    By r2d2u2 in forum Qt Programming
    Replies: 2
    Last Post: 31st May 2010, 10:30
  4. Replies: 2
    Last Post: 26th November 2009, 04:45
  5. how to change text color in QTableView?
    By phillip_Qt in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2008, 10:03

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.