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. [Question] How to add proper geometry to window to support dual monitors
Forum Update on Monday, May 27th 2025

[Question] How to add proper geometry to window to support dual monitors

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 198 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.
  • K Offline
    K Offline
    Ketank16
    wrote on last edited by Ketank16
    #1

    Hello, I'm trying to design a UI for displaying 8 graphs simultaneously. I have 8 instances of QCustomPlot and I want to have them 4 on one screen and 4 on another.
    I have grid layout on my mainwindow and so the geometry editing options are disabled on Qt creator like this: https://i.postimg.cc/V6mb0mGY/Qt-Designer.png

    The current result I'm getting is like this but I would like to start the program like this instead.

    Does anyone have an idea?

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

      Hi,

      From the top of my head I would try to use QDesktopWidget and QScreen to query the geometry of the whole desktop and set your widget to that.

      Hope it helps

      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
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved