Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13635

poor vertical alignment of QCheckBox, QComboBox, using QGridLayout on Mac

    XMLWordPrintable

Details

    • macOS
    • 1566021e623fb79c4ff5475d51010765a3074bbb, qtbase/8b6de4677142cab41790ca50ce6c7f1efbab5de8

    Description

      -create a qcheckbox, a qcombobox, and another qcheckbox
      -layout the three items horizontally using a QGridLayout
      -with Qt 4.6.3 on Mac, the baseline of the text in the combo box is 1 pixel lower than that in the checkboxes.

      Below is some basic repro code:

      QWidget* widget = new QWidget();
      QGridLayout* grid = new QGridLayout(widget);

      grid->addWidget( new QCheckBox("Higher"), 0,0);

      QComboBox* combo = new QComboBox();
      combo->addItem("Lower");
      grid->addWidget( combo, 0,1);

      grid->addWidget( new QCheckBox("Also Higher"), 0,2);
      grid->setColumnStretch(3,1);
      grid->setMargin(0);

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            wstokes Will Stokes
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes