Results 1 to 2 of 2

Thread: frameGeomtery under X11

  1. #1
    Join Date
    Sep 2008
    Location
    St. Louis, MO
    Posts
    19
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default frameGeomtery under X11

    When frameGeometry.getCoords is called from resizeEvent the bottom right corner of the QRect is always reported as changing and the top left corner is never reported as changing, even when I drag the top left corner. I know there are some peculiarities wrt window geometry under X11, but this just seems plain wrong. Is there some reliable way to get the window geometry of a widget (position and size) under X11?

  2. #2
    Join Date
    Jun 2007
    Location
    Louisiana
    Posts
    77
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: frameGeomtery under X11

    This is not an uncommon problem. I too have problems with it using MDI Mainwindow and MDISubWindow children. There is much good reading in the docs under Window Geometry and QWorkspace. Much of it applies even if you are not using MDI objects.

    Pay particular attention to the difference between pos(), frameGeometry(), and geometry() as this will likely apply to your problem.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.