Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Quick Controls 2 - Bad Image Quality
Qt 6.11 is out! See what's new in the release blog

Qt Quick Controls 2 - Bad Image Quality

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 579 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.
  • I Offline
    I Offline
    Ibrahim
    wrote on last edited by
    #1

    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
    }
    
    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