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

edit-redo icon is clipped on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.10
    • GUI: Other
    • None
    • Windows

    Description

      Can be seen with Widgets:

      #include <QtWidgets>
      
      int main(int argc, char *argv[])
      {
          // QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar);
          // QApplication::setAttribute(Qt::AA_DontUseNativeMenuWindows);
          QApplication app(argc, argv);
          QMainWindow mainWindow;
          mainWindow.resize(400, 400);
          mainWindow.show();
      
          auto *centralWidget = new QWidget;
          mainWindow.setCentralWidget(centralWidget);
          auto *label = new QLabel(centralWidget);
          label->setPixmap(QIcon::fromTheme("edit-redo").pixmap(32, 32));
      
          // reproducer for QMdiSubWindow menu entries
          QMdiArea area;
          auto sw = new QMdiSubWindow;
          sw->setWindowTitle("SubWindow");
          area.addSubWindow(sw);
          area.show();
      
          return app.exec();
      }
      

      and Quick:

      import QtQuick
      import QtQuick.Controls.Windows
      
      ApplicationWindow {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Button {
              icon.name: "edit-redo"
              icon.width: 100
              icon.height: 100
          }
      }
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-134604
          # Subject Branch Project Status CR V

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are 2 open Gerrit changes