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. QScreen, QGraphicsScene, QGraphicsView size
Forum Update on Monday, May 27th 2025

QScreen, QGraphicsScene, QGraphicsView size

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 173 Views
  • 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.
  • N Offline
    N Offline
    Norduk
    wrote on last edited by
    #1

    Hi there! Maybe somebody could help me, I have 2 questions:

    1. I'm trying to check the resolution of my device to prevent going outside the scene. I do it like this:

    QScreen *screen = QApplication::primaryScreen();
    QRect screenGeometry = screen->geometry();
    this->screenWidth = screenGeometry.width();
    this->screenHeight = screenGeometry.height();

    As a result I receive values 360 and 720, but my device has actually 720x1440 (twice larger).

    So, the first question is, why Qt by default use this resolution instead of original and how I can change it?

    1. Does anybody has any links to examples where QGraphicsScene/QGraphicsView classes are used to create a scalable application?
    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