Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. What happened to expressing QML dimensions in points?
Forum Updated to NodeBB v4.3 + New Features

What happened to expressing QML dimensions in points?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 912 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.
  • S Offline
    S Offline
    stan.m
    wrote on last edited by
    #1

    Back at Qt Dev Days 2014, I saw that Qt 5.5 would support expressing QML dimensions in units that correspond to real world measurements, like:

    Rectangle {
      color: 'red'
      width: 72 pt
      height: 24 pt
    }
    

    I cannot find any information about this now. What happened? Is it supported? Does it require C++11 compiler support?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      I think that this mail conversation might be of interest

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stan.m
        wrote on last edited by stan.m
        #3

        When I was preparing my presentation on "Using SVG images in QML" in 2014, I was aware of a check-in into the Qt code base to support unit notation like "width: 72 pt", but for the life of me I cannot find any more details.

        There are huge problems with resolution reporting on various platforms so "72 pt" usually does not equal an inch on the screen. Was the feature never committed to the master branch? Is it there and I just cannot find the documentation?

        The 2014 presentation used a QML solution for specifying units and I've been using a C++ version of the same design lately. The mail conversation you posted sounds like the same thing as it has the same limitations that my design suffers -- poor support for differing screen resolutions.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you check if there's a wip branch for that ?

          You should get into the conversation, it seems you have enough experience with that problem to bring it further.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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