Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11655

QML needs to have a resolution-independant / physical size measurement in addition to pixels

    XMLWordPrintable

    Details

      Description

      In properties where you can assign pixel values, there is a strong need to have resolution independent physical units that translate to a real distance on a screen

      An example of how this could work is

      Rectangle {
         width: 100*mm; height: 200*mm
      }
      

      to achieve this currently, each App interpreting QML code needs to expose a 'mm' value as a property to the QDeclarativeView::rootContext as described in Exposing Simple Data

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                martjone Martin Jones (closed Nokia identity) (Inactive)
                Reporter:
                hhartz Henrik Hartz (closed Nokia identity) (Inactive)
              • Votes:
                4 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes