• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 14.0.2
    • Widget Designer
    • None
    • Windows
    • Windows

      Selecting a non default horizontal or vertical alignment for a QButton within a grid layout generates incorrect alignment code.  Very easy to reproduce.  Selecting the right mouse button over the Qbutton and then selecting (for example) "Top" for vertical alignment generates the following incorrect code (note the extra prefix "Qt::AlignmentFlag::" text prepended to the alignment parameter.

              gridLayout_4 = new QGridLayout(groupBox_5);
              gridLayout_4->setObjectName("gridLayout_4");
              sourcePathsButton = new QPushButton(groupBox_5);
              sourcePathsButton->setObjectName("sourcePathsButton");
              sourcePathsButton->setMaximumSize(QSize(25, 25));
              sourcePathsButton->setFont(font);
              sourcePathsButton->setIconSize(QSize(25, 25));
              sourcePathsButton->setFlat(false);

              gridLayout_4->addWidget(sourcePathsButton, 0, 1, 1, 1, Qt::AlignmentFlag::Qt::AlignmentFlag::AlignTop);

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            johnco3 John Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes