[SOLVED] how to divide QGridLayout into rows and columns at Design Time in QT?

Issue

how to divide QGridLayout into rows and columns at Design Time in QT ?

I want to design one form where i want to have 2 columns and 7 rows .
I am designing using QTCreator but i am not getting any option of giving rows/columns.

It shows only these properties

enter image description here

Solution

See Using Layouts in Qt Designer. For you the most important paragraph is this:

The simplest way to manage objects is
to apply a layout to a group of
existing objects. This is achieved by
selecting the objects that you need to
manage and applying one of the
standard layouts using the main
toolbar, the Form menu, or the form’s
context menu.

  1. place your widgets on the form
  2. arrange them into 2 columns and 7 rows
  3. select all of them
  4. right click on the selected widgets
  5. select Lay Out in a Grid on the context menu.

Answered By – Bill

Answer Checked By – Marilyn (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *