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. UBUNTU: Save and restore of window position/size/geometry, and moveEvent() do not work
Forum Updated to NodeBB v4.3 + New Features

UBUNTU: Save and restore of window position/size/geometry, and moveEvent() do not work

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

    On linux UBUNTU 22.04, I have a very simple program with a main window that either saves and restore window position+size or window geometry+state, and implements MainWindow::moveEvent() logging window position and size.

    On Qt 5.15.2, 6.2.4, the program does its job as expected, for both position+size
    or geometry+windows state.

    On Qt 6.4.2, 6.5.0, when position and size are saved the position is not saved
    correctly (it always saves pos=@Point(-3 -30)), while the size is; when the
    geometry and window state are saved, both are not saved correctly. The method MainWindow::moveEvent() is never called when the window is moved.

    You can see the full code here: https://gist.github.com/massimo-marino/22a998e53c28c8b45b7098e04db61bfc

    Is this a known problem? If so, is a fix planned soon?
    Is there a possible workaround in Qt 6.4.2/6.5.0?

    Cheers.

    jsulmJ 1 Reply Last reply
    0
    • Q QtSkyLark

      On linux UBUNTU 22.04, I have a very simple program with a main window that either saves and restore window position+size or window geometry+state, and implements MainWindow::moveEvent() logging window position and size.

      On Qt 5.15.2, 6.2.4, the program does its job as expected, for both position+size
      or geometry+windows state.

      On Qt 6.4.2, 6.5.0, when position and size are saved the position is not saved
      correctly (it always saves pos=@Point(-3 -30)), while the size is; when the
      geometry and window state are saved, both are not saved correctly. The method MainWindow::moveEvent() is never called when the window is moved.

      You can see the full code here: https://gist.github.com/massimo-marino/22a998e53c28c8b45b7098e04db61bfc

      Is this a known problem? If so, is a fix planned soon?
      Is there a possible workaround in Qt 6.4.2/6.5.0?

      Cheers.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @QtSkyLark said in UBUNTU: Save and restore of window position/size/geometry, and moveEvent() do not work:

      Is this a known problem? If so, is a fix planned soon?

      You can search here: https://bugreports.qt.io/secure/Dashboard.jspa

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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