Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Remote desktop connection unable to set Geometry

Remote desktop connection unable to set Geometry

Scheduled Pinned Locked Moved Solved Qt for Python
3 Posts 2 Posters 560 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.
  • P Offline
    P Offline
    papinhio
    wrote on last edited by
    #1

    Hi when i run my app using remote desktop connection, i saw this warning:

    QWindowsWindow::setGeometry: Unable to set geometry 1954x1050+0+34 (frame: 1976x1106-11-11) on QWidgetWindow/"MainWindowWindow" on "\\.\DISPLAY49". Resulting geometry: 1920x974+0+34 (frame: 1942x1030-11-11) margins: 11, 45, 11, 11 minimum size: 977x267 MINMAXINFO maxSize=0,0 maxpos=0,0 mintrack=1976,590 maxtrack=0,0)
    

    with normal login there is not this error.

    The app has a qstackedwidget as centralwidget with one page with three parts. There is no scrollBar in QMainWindow (except in one of the three parts).

    I am using pyqt5.

    Why this happening, and how can i solve this warning?

    • If i use os.environ["QT_FATAL_WARNINGS"] = "1" then the application close.
    JonBJ 1 Reply Last reply
    0
    • P papinhio

      Hi when i run my app using remote desktop connection, i saw this warning:

      QWindowsWindow::setGeometry: Unable to set geometry 1954x1050+0+34 (frame: 1976x1106-11-11) on QWidgetWindow/"MainWindowWindow" on "\\.\DISPLAY49". Resulting geometry: 1920x974+0+34 (frame: 1942x1030-11-11) margins: 11, 45, 11, 11 minimum size: 977x267 MINMAXINFO maxSize=0,0 maxpos=0,0 mintrack=1976,590 maxtrack=0,0)
      

      with normal login there is not this error.

      The app has a qstackedwidget as centralwidget with one page with three parts. There is no scrollBar in QMainWindow (except in one of the three parts).

      I am using pyqt5.

      Why this happening, and how can i solve this warning?

      • If i use os.environ["QT_FATAL_WARNINGS"] = "1" then the application close.
      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @papinhio
      Is the required geometry, as stated, larger than the RDC allows?

      P 1 Reply Last reply
      0
      • JonBJ JonB

        @papinhio
        Is the required geometry, as stated, larger than the RDC allows?

        P Offline
        P Offline
        papinhio
        wrote on last edited by
        #3

        @JonB I don't know, but setting a minimum size (for example 500x500) in QMainWindow solve the issue.

        1 Reply Last reply
        0
        • P papinhio has marked this topic as solved on

        • Login

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