Results 1 to 4 of 4

Thread: Resizing QTableView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Resizing QTableView

    In my code, I've got some QTableView widgets which I pop up as new windows. Naturally, I want to allow the user to resize these.

    What happens with small tables is that you can resize the window very large -- and the table won't change column width.

    Forgive my ignorance -- I'm a bit of a Qt newbie. Is there an easy way to set the maximum width of the window to the maximum width of the QTableView? In other words, can I set the resizing to stop when the maximum width and/or height is reached?

    Thanks in advance!
    Attached Images Attached Images

Similar Threads

  1. Advanced QTableView
    By jpujolf in forum Qt Programming
    Replies: 13
    Last Post: 17th April 2010, 09:15
  2. Problem on Resizing of QTableView colums ?
    By rajeshs in forum Qt Programming
    Replies: 2
    Last Post: 28th March 2008, 04:03
  3. make QTableView work as a multi-column list view
    By wesley in forum Qt Programming
    Replies: 1
    Last Post: 11th March 2008, 14:43
  4. Replies: 2
    Last Post: 14th August 2007, 15:16
  5. Multi-line messages in QTableView
    By Conel in forum Qt Programming
    Replies: 6
    Last Post: 13th April 2006, 13:49

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.