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 5.1 Android: How to get working display space for widget?
Forum Updated to NodeBB v4.3 + New Features

Qt 5.1 Android: How to get working display space for widget?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.5k 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.
  • A Offline
    A Offline
    AcerExtensa
    wrote on last edited by
    #1

    Hi!
    Is there any way to get working screen space on Android devices? I can get display size with QApplication::desktop()->screenGeometry(), but I need to know available size without panels or task bars...
    There should be way to get it...

    God is Real unless explicitly declared as Integer.

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      i haven't tried but did you look at this?
      @
      QApplication::desktop()->availableGeometry()
      @
      At least on windows this returns the screensize without the size of the taskbar.
      If it's the same size i would file a "bugreport":https://bugreports.qt-project.org/browse/QTBUG/component/19927.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AcerExtensa
        wrote on last edited by
        #3

        Yep, returns the same size. Have fired a BUG, thanks!

        God is Real unless explicitly declared as Integer.

        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