Results 1 to 3 of 3

Thread: Ensure columns in qtableview uses all available space

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Ensure columns in qtableview uses all available space

    Hi All, this is my first post in this forum....

    I have a QTableView that contains data from a QSqlRelationalTableModel. The table has 4 columns. There are space available on the right hand side of the last column in the QTableView. Is there a way that I can ensure that the columns occupy all the available space in the QTreeView?

    Cheers

    Oystein

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Ensure columns in qtableview uses all available space

    Quote Originally Posted by oysteinpettersen View Post
    Hi All, this is my first post in this forum....
    Hi and welcome!

    I have a QTableView that contains data from a QSqlRelationalTableModel. The table has 4 columns. There are space available on the right hand side of the last column in the QTableView. Is there a way that I can ensure that the columns occupy all the available space in the QTreeView?
    Yup, there is. Take a look at
    J-P Nurmi

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

    oysteinpettersen (10th January 2008)

  4. #3
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Ensure columns in qtableview uses all available space

    Thanks, that's just what I was looking for.

    Cheers
    Oystein

Similar Threads

  1. Width QTableView for QCombobox with multiple columns
    By visor_ua in forum Qt Programming
    Replies: 7
    Last Post: 21st June 2011, 10:54
  2. autoexpanding QTableView columns
    By ucntcme in forum Qt Programming
    Replies: 6
    Last Post: 11th March 2008, 09:28
  3. QTableView - Enable Clicking for some columns only
    By Gabriel in forum Qt Programming
    Replies: 1
    Last Post: 23rd June 2006, 22:42
  4. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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.