Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Pixelated gif when used with QMovie
Forum Updated to NodeBB v4.3 + New Features

Pixelated gif when used with QMovie

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 195 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Boney
    wrote on last edited by
    #1

    I'm trying to show a gif file in QT app, using the approach provided in the link: https://code.qt.io/cgit/qt/qtbase.git/tree/examples/widgets/widgets/movie?h=5.15

    Approach makes use of QMovie object set in a QLabel.

    The example works well and fine.

    But if I enable High DPI scaling for the app, the gif becomes all pixelated. Please see the screenshots below.

    This is the line that I add to enable High DPI scaling.

    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    

    alt text

    alt text

    Any ideas to get this fixed ?

    I have tried the following fixes already:

    setScaledSize for the QMovie object
    setScaledContents(true) for the QLabel
    QT version I'm using is 5.15.2 and platform is Windows.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved