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. How can I get the width and height from my device
Forum Updated to NodeBB v4.3 + New Features

How can I get the width and height from my device

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 969 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.
  • V Offline
    V Offline
    victor wang
    wrote on last edited by A Former User
    #1

    Hi, I'm using Qt5.5 on my computer.
    I wanna show the button on my screen exactly place one by one.
    In qt4 it seems can get the width and height through QScreen width() and height().
    But in QT5.5 it has been remove.

    Can anyone give me some advice?
    Please help!

    J.HilkJ 1 Reply Last reply
    0
    • V victor wang

      Hi, I'm using Qt5.5 on my computer.
      I wanna show the button on my screen exactly place one by one.
      In qt4 it seems can get the width and height through QScreen width() and height().
      But in QT5.5 it has been remove.

      Can anyone give me some advice?
      Please help!

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @victor-wang
      hi,

      you got this answered in an other thread, one you actually made!?


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      V 1 Reply Last reply
      1
      • J.HilkJ J.Hilk

        @victor-wang
        hi,

        you got this answered in an other thread, one you actually made!?

        V Offline
        V Offline
        victor wang
        wrote on last edited by
        #3

        @J.Hilk
        Oops, sorry i didn't see that
        Thank for telling me.

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

          Closing as duplicate

          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