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. Getting screen information in both desktop and mobile
Forum Updated to NodeBB v4.3 + New Features

Getting screen information in both desktop and mobile

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.2k 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.
  • AlicemirrorA Offline
    AlicemirrorA Offline
    Alicemirror
    wrote on last edited by
    #1

    Hi to all,

    In the recent Qt-Quick components (released starting from Qt 4.7.3) there is the QML screen element. Instead the other components i.e. the common toolbar this seems to be usable only on symbian devices. Is there some class or method or some other else to get the current screen size, pixel density, resolution etc while working on desktop applications?

    P.S. it is obvious that in the case of the desktop one of the elements that can be used instead the screen element should be the current main window size, but it is a bit different because the screen element includes information about density, device class etc.

    Many thanks.

    Enrico Miglino (aka Alicemirror)
    Balearic Dynamics
    Islas Baleares, Ibiza (Spain)
    www.balearicdynamics.com

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Cayan
      wrote on last edited by
      #2

      AFAIK: QApplication::desktop() is the only class related to that, for pixel density info you may try using some OS functions.

      1 Reply Last reply
      0
      • AlicemirrorA Offline
        AlicemirrorA Offline
        Alicemirror
        wrote on last edited by
        #3

        Many thanks! I think that this is sufficient.

        Enrico Miglino (aka Alicemirror)
        Balearic Dynamics
        Islas Baleares, Ibiza (Spain)
        www.balearicdynamics.com

        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