Results 1 to 2 of 2

Thread: How to get more than one column in a QGridLayout using the designer?

  1. #1
    Join Date
    Apr 2011
    Posts
    12
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Angry How to get more than one column in a QGridLayout using the designer?

    It's probably something really simple that I missed, but I can't for the life of me figure out how to get more than one column in a QGridLayout. Every item I add just gets added as another row in the single column. I couldn't find any settings that specify which row / column an item should be placed in.

    I know that I can edit the associated XML document to manually place items in a specific row / column. However the XML is locked for editing in QT so I would have to open it in notepad or something, and I would rather find an easier / quicker solution that actually uses the designer.

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How to get more than one column in a QGridLayout using the designer?

    Drag the widgets to the right margin of the form until you see a vertical blue line and then drop the widget - it will be placed on a new column

Similar Threads

  1. qgridlayout setting in qt designer
    By hottdogg in forum Qt Tools
    Replies: 1
    Last Post: 4th October 2009, 08:58
  2. Delete a QGridLayout and New QGridLayout at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 5th November 2007, 14:01
  3. Limit number of row/column in QGridLayout
    By EricF in forum Qt Programming
    Replies: 2
    Last Post: 18th October 2007, 20:54
  4. Replies: 1
    Last Post: 22nd January 2007, 13:13
  5. define column in designer QT4.1.1
    By raphaelf in forum Qt Tools
    Replies: 2
    Last Post: 26th February 2006, 21:30

Tags for this Thread

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.