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. Sub menu opening on wrong mouse button click in Qt5 (5.5.1) (on Windows (7?)?)?

Sub menu opening on wrong mouse button click in Qt5 (5.5.1) (on Windows (7?)?)?

Scheduled Pinned Locked Moved General and Desktop
submenuewindowsqt5mouse
18 Posts 2 Posters 6.1k 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.
  • R Offline
    R Offline
    racoon
    wrote on 21 Apr 2016, 09:36 last edited by
    #1

    I am wondering whether this is a general bug. Maybe someone could test it on her/his system.

    Background: In a qt5(.5.1?) application (on Windows (7?)?) there is a small delay until sub menus open. The length of this delay seems to depend on a "ShowMenuDelay" variable in the Windows registry. This is also how it works in many other applications, but this delay setting seems only to be respected by Qt since version 5(.5.1?).

    Steps to reproduce:

    1. Open a menu that contains a menu entry that opens a sub menu.
    2. Go to the menu entry that contains the submenu and immediately click the main button of the mouse (the left one by default).

    Actual result:
    The sub menu is not opened directly on the click.

    Expected result:
    The sub menu opens directly on the click.

    Since the "MenuOpenDely" is set to a rather short time length by default the effect is not huge. But one can set the "MenuOpenDelay" to larger time spans so that the menu opens (almost) only after the menu has been clicked. (This setting is particularly useful for people with some disabilities because it makes navigating sub menus much easier, since for example different sub menus are not triggered just by hovering over them very briefly.)

    What is actually the case is that the mouse buttons seem to be swapped when it comes to opening sub menus in Qt5(.5.1?). If one uses the secondary click (by default the right one) then the menu opens immediately. Again hard to notice with the default "ShowMenuDelay" but it is noticeable.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Apr 2016, 21:50 last edited by
      #2

      Hi and welcome to devnet,

      Can you check that with the latest version of Qt ? Either the stable 5.6.0 or the 5.7 Beta ?

      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
      • R Offline
        R Offline
        racoon
        wrote on 22 Apr 2016, 10:52 last edited by
        #3

        Hi and thanks,

        Sorry, I am only a user. I guess one would need to access the source to test such things, right? However, I have now asked some developers whether they can check it.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 Apr 2016, 15:07 last edited by
          #4

          No, you can just install them. Qt 5.6 is accessible through the online installer. The beta is accessible from the download page at the bottom.

          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
          • R Offline
            R Offline
            racoon
            wrote on 22 Apr 2016, 18:32 last edited by
            #5

            Just installed Qt 5.6. Programs still use the version they used to use (5.5.1).

            R 1 Reply Last reply 22 Apr 2016, 19:20
            0
            • R racoon
              22 Apr 2016, 18:32

              Just installed Qt 5.6. Programs still use the version they used to use (5.5.1).

              R Offline
              R Offline
              racoon
              wrote on 22 Apr 2016, 19:20 last edited by
              #6

              (So I cannot test it myself.)

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 22 Apr 2016, 20:37 last edited by
                #7

                You can replace the dll's in your program folder by the one provided by the installer.

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

                R 1 Reply Last reply 22 Apr 2016, 20:49
                0
                • S SGaist
                  22 Apr 2016, 20:37

                  You can replace the dll's in your program folder by the one provided by the installer.

                  R Offline
                  R Offline
                  racoon
                  wrote on 22 Apr 2016, 20:49 last edited by racoon
                  #8

                  @SGaist Does not work either. The program just starts to complain about missing dlls, like libgcc_s_dw2-1.dll.

                  Isn't there a simpler way to test qt sub menus? Like an example application that contains already all the dlls and has sub menus?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 22 Apr 2016, 20:57 last edited by
                    #9

                    You can build and run the Menus Example example

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

                    R 1 Reply Last reply 23 Apr 2016, 09:01
                    0
                    • S SGaist
                      22 Apr 2016, 20:57

                      You can build and run the Menus Example example

                      R Offline
                      R Offline
                      racoon
                      wrote on 23 Apr 2016, 09:01 last edited by
                      #10

                      @SGaist As I said, I am not a developer. The Menus Example example seems to me not self-explanatory. What are the steps to build and run it?

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 23 Apr 2016, 20:13 last edited by
                        #11
                        1. Launch Qt Creator
                        2. On the welcome screen select Examples
                        3. In the search file, put Menus
                        4. Click on it
                        5. Configure the project with the default provided
                        6. Click the run arrow

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

                        R 1 Reply Last reply 23 Apr 2016, 21:46
                        0
                        • S SGaist
                          23 Apr 2016, 20:13
                          1. Launch Qt Creator
                          2. On the welcome screen select Examples
                          3. In the search file, put Menus
                          4. Click on it
                          5. Configure the project with the default provided
                          6. Click the run arrow
                          R Offline
                          R Offline
                          racoon
                          wrote on 23 Apr 2016, 21:46 last edited by
                          #12

                          @SGaist Thanks for the instruction. I have tried it in Qt5.6 and the bug still persists. I have not tried beta Qt5.7. Is there any reason to think that the bug is fixed?

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 23 Apr 2016, 22:24 last edited by
                            #13

                            I don't know whether there's been work done on that part but it's worth a try.

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

                            R 1 Reply Last reply 23 Apr 2016, 22:44
                            0
                            • S SGaist
                              23 Apr 2016, 22:24

                              I don't know whether there's been work done on that part but it's worth a try.

                              R Offline
                              R Offline
                              racoon
                              wrote on 23 Apr 2016, 22:44 last edited by
                              #14

                              @SGaist I have found no the betas (http://download.qt.io/development_releases/qt/5.7/5.7.0-beta/). Do you know which one should I install for Windows 7 64bit?

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 23 Apr 2016, 22:53 last edited by
                                #15

                                What about all the qt-opensource-windows-x86-XXX ?

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

                                R 1 Reply Last reply 24 Apr 2016, 07:47
                                0
                                • S SGaist
                                  23 Apr 2016, 22:53

                                  What about all the qt-opensource-windows-x86-XXX ?

                                  R Offline
                                  R Offline
                                  racoon
                                  wrote on 24 Apr 2016, 07:47 last edited by
                                  #16

                                  @SGaist I would have thought that one of them would be enough. Also some say something about Android in addition. Isn't that a phone OS?

                                  Anyway, I have now installed and tested and the bug is still there. If I write up the details of the bug would you be able to file a report or tell me how that is done?

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 24 Apr 2016, 20:26 last edited by
                                    #17

                                    One is enough, but on Windows you have several versions of Visual Studio that you can use and they are not compatible one with the other and there's also MinGW without forgetting 32 vs 64 bit. That's why there are several packages.

                                    Android does more than just phones. Qt has been ported to Android since several years (also iOS for that matter).

                                    You can do it on the bug report system

                                    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
                                    • R Offline
                                      R Offline
                                      racoon
                                      wrote on 30 Apr 2016, 06:56 last edited by
                                      #18

                                      Filed a bug report at https://bugreports.qt.io/browse/QTBUG-53054.

                                      1 Reply Last reply
                                      0

                                      6/18

                                      22 Apr 2016, 19:20

                                      topic:navigator.unread, 12
                                      • Login

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