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

QCheckbox without text is right cropped

    XMLWordPrintable

Details

    • Windows
    • 696f9adaa (dev), c46fdbad7 (6.9), 891d1bddf (6.8)

    Description

      QCheckBox without a text is right cropped with windows 11 style

      There were no problem with Qt6.8.2

      Simple reproducer:

      int main(int argc, char* argv[])
      {
          QApplication app(argc, argv);
          QWidget w;
          auto lay = new QHBoxLayout(&w);
          auto cbx = new QCheckBox();
          auto lbl = new QLabel("Label");
          lay->addWidget(cbx);
          lay->addWidget(lbl);
          lay->addItem(new QSpacerItem(0, 0, QSizePolicy::Expanding));
          w.show();
          return app.exec();
      }
      

      Attachments

        1. after.png
          after.png
          2 kB
        2. before.png
          before.png
          2 kB
        3. Capture d’écran 2025-04-04 152307.png
          Capture d’écran 2025-04-04 152307.png
          2 kB

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              alban_go2 Alban Pellet
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes