Results 1 to 2 of 2

Thread: How to set Width and Height of QTableWiget's Column and Row .

  1. #1
    Join Date
    Mar 2009
    Location
    delhi India
    Posts
    56
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default How to set Width and Height of QTableWiget's Column and Row .

    I am making use of QTablewidget.
    I want to have row height same as the widget->height which is added using table->setCellWidget();

    Same goes with Column.Column width same as widget->width.

    How should i obtain this without actually getting the width and height from the widget and then setting it individually.

    Any help would be appreciated .
    Thanks.

  2. #2
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to set Width and Height of QTableWiget's Column and Row .

    tbalewidget->setColumnWidth();
    tbalewidget->horizontalHeader()->setFixedHeight();

Similar Threads

  1. Fix proportion of width and height in QGridLayout
    By Wong in forum Qt Programming
    Replies: 6
    Last Post: 7th January 2011, 08:24
  2. Replies: 3
    Last Post: 13th May 2010, 09:20
  3. QPushButton set width and height from StyleSheet
    By AL in forum Qt Programming
    Replies: 3
    Last Post: 19th March 2010, 15:33
  4. QLayout: different SizeConstraints for width and height?
    By PhilippB in forum Qt Programming
    Replies: 0
    Last Post: 23rd February 2009, 17:33
  5. width and height of QTabWidget
    By chikkireddi in forum Qt Programming
    Replies: 6
    Last Post: 29th October 2007, 14: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.