Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. hello,I have a problem
QtWS25 Last Chance

hello,I have a problem

Scheduled Pinned Locked Moved Unsolved Showcase
7 Posts 4 Posters 919 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.
  • L Offline
    L Offline
    liuyu
    wrote on 3 Aug 2022, 14:26 last edited by liuyu 8 Jul 2022, 08:48
    #1

    I have a problem. Under the windows operating system, I installed EventFilter on the widget and reprocessed the show event. But after minimizing the form, use win+d, and then casually click any icon on the desktop. The widget will trigger the show event.Why?

    Detailed description:
    Press Win + D for the first time and all windows will be minimized. Press Win + D again and all windows will be restored. However, when I use EventFilter and rewrite the show event, after I press Win + D for the first time, the widget is minimized, which is normal. However, I do not press the win + D key combination for the second time, but randomly click any other icon on the desktop, which will trigger the show event of the widget of this QT program. Note that even if I do not click the icon of this program, it will trigger
    8871c8d6-8e11-47cc-9a86-6bd930d3ce4f-image.png

    J 1 Reply Last reply 7 Aug 2022, 08:26
    0
    • J Offline
      J Offline
      JoeCFD
      wrote on 3 Aug 2022, 17:33 last edited by
      #2

      punished?

      L 2 Replies Last reply 6 Aug 2022, 09:30
      0
      • J JoeCFD
        3 Aug 2022, 17:33

        punished?

        L Offline
        L Offline
        liuyu
        wrote on 6 Aug 2022, 09:30 last edited by
        #3

        @JoeCFD said in hello,I have a problem:

        punished

        What do you mean

        S 1 Reply Last reply 6 Aug 2022, 18:23
        0
        • L liuyu
          6 Aug 2022, 09:30

          @JoeCFD said in hello,I have a problem:

          punished

          What do you mean

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 6 Aug 2022, 18:23 last edited by
          #4

          Hi,

          @liuyu said in hello,I have a problem:

          @JoeCFD said in hello,I have a problem:

          punished

          What do you mean

          You wrote:

          @liuyu said in hello,I have a problem:

          The form will be punished for the show event. Why?

          Beside the fact you removed the interrogation point, @JoeCFD is asking you what do you mean with that word.

          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
          • J JoeCFD
            3 Aug 2022, 17:33

            punished?

            L Offline
            L Offline
            liuyu
            wrote on 7 Aug 2022, 08:18 last edited by
            #5

            @JoeCFD sorry,I mean that will trigger the show event when I click any other icon.

            1 Reply Last reply
            0
            • L liuyu
              3 Aug 2022, 14:26

              I have a problem. Under the windows operating system, I installed EventFilter on the widget and reprocessed the show event. But after minimizing the form, use win+d, and then casually click any icon on the desktop. The widget will trigger the show event.Why?

              Detailed description:
              Press Win + D for the first time and all windows will be minimized. Press Win + D again and all windows will be restored. However, when I use EventFilter and rewrite the show event, after I press Win + D for the first time, the widget is minimized, which is normal. However, I do not press the win + D key combination for the second time, but randomly click any other icon on the desktop, which will trigger the show event of the widget of this QT program. Note that even if I do not click the icon of this program, it will trigger
              8871c8d6-8e11-47cc-9a86-6bd930d3ce4f-image.png

              J Offline
              J Offline
              JonB
              wrote on 7 Aug 2022, 08:26 last edited by
              #6

              @liuyu said in hello,I have a problem:

              Why?

              Well, because showing/maximizing after minimizing causes a showEvent().

              L 1 Reply Last reply 7 Aug 2022, 08:40
              0
              • J JonB
                7 Aug 2022, 08:26

                @liuyu said in hello,I have a problem:

                Why?

                Well, because showing/maximizing after minimizing causes a showEvent().

                L Offline
                L Offline
                liuyu
                wrote on 7 Aug 2022, 08:40 last edited by
                #7

                @JonB said in hello,I have a problem:

                Well, because showing/maximizing after minimizing causes a showEvent().
                Press Win + D for the first time and all windows will be minimized. Press Win + D again and all windows will be restored. However, when I use EventFilter and rewrite the show event, after I press Win + D for the first time, the widget is minimized, which is normal. However, I do not press the win + D key combination for the second time, but randomly click any other icon on the desktop, which will trigger the show event of the widget of this QT program. Note that even if I do not click the icon of this program, it will trigger
                826812a5-55cd-4a2d-8c95-cfa6db7b32a2-image.png

                1 Reply Last reply
                0

                3/7

                6 Aug 2022, 09:30

                • Login

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