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. get wrong coordinates for mouse on a 2. screen from a QGLWidget
Forum Updated to NodeBB v4.3 + New Features

get wrong coordinates for mouse on a 2. screen from a QGLWidget

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

    Hello, since we moved from Qt4 to Qt5.15.3 with Coin3D and SoQt our app has a pixel displacement in
    the QGLWidget x=8 y=31 when it is started on a second screen. A long analysis showed that GLWidget::QGLContext::QWindow has exactly these fullFrameMargins. When starting on the primary screen the QWindow gets the same values but then they are overwritten by platformWindow->setFullFrameMargins with 0,0,0,0 and everything is ok.

    This happens on Win10 (both Displays have the same resolution) and we use VS2017.

    Any suggestions? Do you need more information?
    Thanks plani

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      Note: This class is part of the legacy Qt OpenGL module and, like the other QGL classes, should be avoided in the new applications. Instead, starting from Qt 5.4, prefer using QOpenGLWidget and the QOpenGL classes.

      https://doc.qt.io/qt-5/qglwidget.html#details

      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