Results 1 to 2 of 2

Thread: Setting all QGridLayout columns to have the same width

  1. #1
    Join Date
    Aug 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Setting all QGridLayout columns to have the same width

    Hello everyone.

    I'm having a little problem trying to make all columns of a QGridLayout to have the width of the largest element in the grid.
    I believe I can use the setColumnMinimunWidth method for setting the width of the columns, but how can I get the width of the largest element in the grid? I've been looking at the documentation and examples on the internet but couldn't find anything so far.

    Thanks in advance!

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Setting all QGridLayout columns to have the same width

    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

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. qgridlayout setting in qt designer
    By hottdogg in forum Qt Tools
    Replies: 1
    Last Post: 4th October 2009, 07:58
  3. set the width of the columns of QTableView
    By zhanglr in forum Qt Programming
    Replies: 6
    Last Post: 31st July 2008, 15:29
  4. Setting cell width in QHBoxLayout
    By EricF in forum Qt Programming
    Replies: 5
    Last Post: 13th December 2007, 15:42
  5. Replies: 1
    Last Post: 19th September 2007, 10:32

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.