Important: Please read the Qt Code of Conduct -

Qt Quick Controls 2 - Bad Image Quality

  • Hi;
    I am developing an android app. I tried two different ways for splash screen. 1st image is good quality, but 2st image is bad quality. Why?
    Note: Both example use same quality image.
    -- This is Android native splashscreen:
    alt text
    -- This is QML Image component:
    alt text
    Image is mdpi format:
    alt text

    QQC2 QML code:

    import QtQuick 2.0
    import QtQuick.Controls 2.2
    import QtQuick.Window 2.3
    Window {
      id: splashScreen
      modality: Qt.ApplicationModal
      flags: Qt.SplashScreen
      width: screen.width
      height: screen.height
      Rectangle {
        id: splashRect
        anchors.fill: parent
        color: "#81DAF5"
        Image {
          id: image
          anchors.centerIn: parent
          source: "qrc:/res/images/icon.png"
      Component.onCompleted: visible = true

Log in to reply