Qt World Summit: Submit your Presentation

QT/QML renderig - bad quality @ windows

  • Hello,
    I have a problem with QML rendering. As you can see on screen below, QML create window in bad quality. If I try to use QML animation, program will stop. It's strange because it happened only of few computers in my company. Program was tested on Windows XP, 7 and 10 and problem is on XP and 7. Program was written with QT5. It could be a OpenGL or DirectX problem?
    Bad quality GUI
    Here is screen from corect working program:
    Correct GUI

    And here is standalone execute package of my program.

    Thanks for help

  • @Adrian-W Hi, and welcome to the Qt forum!

    This is most likely a problem with too old GPU / OpenGL driver. You can try to force your application to use DirectX by adding the following to your main.cpp:

    // Options on Windows; set before instantiating QApplication
    QCoreApplication::setAttribute( Qt::AA_UseOpenGLES ); // use DirectX via ANGLE

  • Thank you for fast reply!!

    This option was a point! With atribute Qt::AA_UseOpenGLES I have problem with run a program on all machines.
    I read a documentation and Qt::AA_UseSoftwareOpenGL atribute solve my problem.

Log in to reply