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

QCheckbox without text is right cropped

XMLWordPrintable

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

      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();
      }
      

        1. Capture d’écran 2025-04-04 152307.png
          2 kB
          Alban Pellet
        2. before.png
          2 kB
          Christian Ehrlicher
        3. after.png
          2 kB
          Christian Ehrlicher
        For Gerrit Dashboard: QTBUG-135628
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes