Results 1 to 2 of 2

Thread: How to increase size of the header lable in QTreeView

  1. #1
    Join Date
    Jul 2009
    Location
    Bangalore
    Posts
    68
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default How to increase size of the header lable in QTreeView

    Hi All,

    I have the treeeView which has 4 columns now the header label has set according to the string length but now i need to increase the size of the header label. How to do this and here is my code snippet

    Qt Code:
    1. model = new QStandardItemModel( this );
    2. model->setHorizontalHeaderLabels( QStringList() << "TOOL NUMBER" << "DIAMETER" << "LENGTH" << "UNITS" );
    3. tooltreeView->setModel( model );
    To copy to clipboard, switch view to plain text mode 
    Thanks & Regards
    Sandeep G.R.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to increase size of the header lable in QTreeView


Similar Threads

  1. How to increase font size in arm target
    By soumya in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 2nd September 2009, 05:58
  2. How to increase size of QGraphicsView Dynamically
    By Kingofhearts_sri in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2009, 08:54
  3. How to determine the header row height in QTreeView
    By ghorwin in forum Qt Programming
    Replies: 3
    Last Post: 20th September 2007, 19:39
  4. QTreeView and QDirModel Header Sort Question
    By jimroos in forum Qt Programming
    Replies: 1
    Last Post: 20th March 2007, 08:04
  5. QTreeView font size not being set
    By forrestfsu in forum Qt Tools
    Replies: 2
    Last Post: 12th October 2006, 13:53

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.