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. UI elements like Rectangle in QML differ on display when QT version was changed
Forum Updated to NodeBB v4.3 + New Features

UI elements like Rectangle in QML differ on display when QT version was changed

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 159 Views 1 Watching
  • 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.
  • saitejS Offline
    saitejS Offline
    saitej
    wrote on last edited by
    #1

    Hello

    I had developed my application in Qt 5.7.1 and wanted to build the same with Qt 5.14.
    Everything works as expected but the UI elements appear different even on the same laptop. Can anyone suggest the reason for this and how I avoid it?
    Also, I would like to mention that the rectangle dimensions are the same in both and it's only the display that is different. It has happened with all the UI elements.

    I am attaching images for a sample rectangle for your reference.

    5.7

    5.14

    Thanks.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      A lot has changed between Qt 5.7 and 5.14. It's hard to say what exactly is the issue here.

      • Look for any runtime warnings - perhaps you have some bugs in layouts
      • 5.14 has some icons (bottom left) which 5.7 does not have - perhaps they "push" the rectangles to grow bigger?
      • Check if your screen has high DPI, perhaps Qt's new automated DPI scaling system kicks in and enlarges your UI

      (Z(:^

      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