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. Incorrect calls of enterEvent for QSubWindow on Win10 withmultiple desktops
Forum Updated to NodeBB v4.3 + New Features

Incorrect calls of enterEvent for QSubWindow on Win10 withmultiple desktops

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 2 Posters 2.1k 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.
  • UnickU Offline
    UnickU Offline
    Unick
    wrote on last edited by
    #1

    Hello.

    I faced with one problem with Windows 10 and multiple desktops. On desktop A i have QSubWindow, it has overrided method enterEvent . I switched to desktop B and i did not see QSubWindow, because it is on sesktop A. But when i move mouse on area, where QSubWindow was located on desktop A, i get enterEvent call. Is there a method to know, is my QSubWindow on active desktop or not. Or how can i disable unneeded calls on enterEvent.

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

      Hi,

      Looks like an interesting bug. You should check the bug report system to see if it's something known. If not please consider opening a new report providing a minimal compilable example that shows that behavior and instructions to reproduce your multiple desktop setup.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      UnickU 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Looks like an interesting bug. You should check the bug report system to see if it's something known. If not please consider opening a new report providing a minimal compilable example that shows that behavior and instructions to reproduce your multiple desktop setup.

        UnickU Offline
        UnickU Offline
        Unick
        wrote on last edited by
        #3

        @SGaist Looks like it is little another bug. if i set QSubWindow to QWidget, i see this QWidget on all Windows 10 desktops. But if i set QWindow flag, i see it only on one desktop. By this reason i get enterEvent for all desktops.

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

          Which version of Qt are you using ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          UnickU 1 Reply Last reply
          0
          • SGaistS SGaist

            Which version of Qt are you using ?

            UnickU Offline
            UnickU Offline
            Unick
            wrote on last edited by
            #5

            @SGaist 5.5.1, also i created bug in bug tracker: https://bugreports.qt.io/browse/QTBUG-53789

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

              Thanks for the report !

              Can you test against the latest version of Qt ? It should be 5.7 RC

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              UnickU 2 Replies Last reply
              0
              • SGaistS SGaist

                Thanks for the report !

                Can you test against the latest version of Qt ? It should be 5.7 RC

                UnickU Offline
                UnickU Offline
                Unick
                wrote on last edited by
                #7

                @SGaist I will try on Monday.

                1 Reply Last reply
                0
                • SGaistS SGaist

                  Thanks for the report !

                  Can you test against the latest version of Qt ? It should be 5.7 RC

                  UnickU Offline
                  UnickU Offline
                  Unick
                  wrote on last edited by
                  #8

                  @SGaist I have the same problem with 5.7 RC.

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

                    Then you should update the bug report with the new information.

                    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
                    0
                    • UnickU Offline
                      UnickU Offline
                      Unick
                      wrote on last edited by
                      #10

                      I found solution for my problem. First of all i should use Qt::Tool (non Qt::SubWindow).

                      Second i need to create window with owner to fix it. I was able to do it, pass parent parameter and Qt::Tool flag to base QWidget constructor. When i passed parent and flag using methods setParent and setWidnowFlags after constructor, they set parent to Window (non owner). As the result this method did not work.

                      This question helps me to find my mistake: http://stackoverflow.com/questions/37748812/remove-window-from-taskbar-on-windows-10

                      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