Results 1 to 2 of 2

Thread: Changing a row hight

  1. #1
    Join Date
    Oct 2006
    Posts
    13
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Changing a row hight

    Is there any way to change a rows hight in QTableView? Not just to particular row, but to all rows of QTableView. QTableView displays a QQueryModel data by the way...

  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: Changing a row hight

    You can access the headers by:


    Setting a default size for a section before attaching the model to the view should do the trick:

    Notice the note about the resize mode.
    J-P Nurmi

Similar Threads

  1. changing layout of a widget
    By mikro in forum Qt Programming
    Replies: 10
    Last Post: 4th August 2009, 20:21
  2. changing the size of the tab width: QTabWidget
    By nikita in forum Qt Programming
    Replies: 2
    Last Post: 29th August 2006, 08:31
  3. Changing Progress Bar Colors
    By bpetty in forum Newbie
    Replies: 1
    Last Post: 11th August 2006, 17:29
  4. Changing the text color of a QTreeView leaf.
    By johnny_sparx in forum Qt Programming
    Replies: 3
    Last Post: 22nd March 2006, 23:58
  5. QTextBrowser - Changing Hyperlink Markup
    By Philipp in forum Qt Programming
    Replies: 3
    Last Post: 22nd March 2006, 05:24

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.