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

QLabel setMovie bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.6.0
    • GUI: Look'n'Feel
    • None
    • Windows 7, Qt 5.6.0

    Description

      When set movie to label it is 2x size bigger then need in HighDPI mode.
      Example:

      MainWindow::MainWindow(QWidget *parent) :
          QMainWindow(parent),
          ui(new Ui::MainWindow)
      {
          ui->setupUi(this);
      
          QLabel *label = new QLabel();
          label->setFrameStyle(QFrame::Panel | QFrame::Sunken);
          QMovie *movie = new QMovie(":/images/loader@2x.gif");
          movie->start();
          label->setMovie(movie);
          hbox->addWidget(label);
          hbox->addStretch();
      
          ui->verticalLayout->addLayout(hbox);
      }
      

      loader@2x.gif size: 48x48
      Result label size is: 96x96
      See screenshot with bug.

      Attachments

        1. loader@2x.gif
          loader@2x.gif
          11 kB
        2. screenshot-1.png
          screenshot-1.png
          3 kB

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              keshav Konstantin Semenov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes