Important: Please read the Qt Code of Conduct -

Resizing widgets in the window having minimumsize

  • Hi All,

    I want to arrange my widgets in the window row-wise with a minimum size so that when the outer window is dragged, the widgets take up the space of the window row-wise (not lower than the minimum dimension).

        int n=4;
        QWidget *myWidget = new QWidget();
        QGridLayout *tableLayout = new QGridLayout();
        QMap<int, QTableWidget *>myTables;
        for (int ii=0;ii<n;ii++)
        { myTables[ii]=new QTableWidget();

    The following code seems not to be working in this case.


    Can anyone suggest me how to achieve it?