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. Letters on the menu are missing underlines for their shortcuts in Windows port
Forum Updated to NodeBB v4.3 + New Features

Letters on the menu are missing underlines for their shortcuts in Windows port

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 1.2k 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.
  • G Offline
    G Offline
    Guerrian
    wrote on 30 Oct 2019, 17:19 last edited by Guerrian
    #1

    Hi,

    I wrote an application with Qt creator in Linux Mint and I ported the application to Windows using:

    $ ~/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5
    $ make

    When I run the resulting "exe" on a Windows 10 computer the letters on the menu of the program are missing underlines for their shortcuts. I don't know if this an MXE / MinGW or a Windows problem / I guess it's not really a Qt problem?

    Update: Solved

    Turning on / off the underline shortcuts is a feature of Windows 10, accessible via the system Settings!

    Linux Mint 18.3
    Qt 5.14.1
    Qt Creator 4.11.1

    J A G 3 Replies Last reply 30 Oct 2019, 17:27
    0
    • G Guerrian
      30 Oct 2019, 17:19

      Hi,

      I wrote an application with Qt creator in Linux Mint and I ported the application to Windows using:

      $ ~/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5
      $ make

      When I run the resulting "exe" on a Windows 10 computer the letters on the menu of the program are missing underlines for their shortcuts. I don't know if this an MXE / MinGW or a Windows problem / I guess it's not really a Qt problem?

      Update: Solved

      Turning on / off the underline shortcuts is a feature of Windows 10, accessible via the system Settings!

      J Offline
      J Offline
      JonB
      wrote on 30 Oct 2019, 17:27 last edited by
      #2

      @Guerrian
      I don't believe anything about how you are making/compiling should be relevant.

      More important would be ensuring same version of Qt. I would have expected that shortcut accelerators would work on Windows, and Qt is good at ensuring just this sort of thing cross-platform.

      Perhaps you could post comparative screenshots so we can see just where these menus are. If you have time, write yourself a tiny program to just show a menu and see how that behaves? If you designed from Qt Creator, verify that the UI definition file with the shortcuts got taken across correctly?

      G 1 Reply Last reply 30 Oct 2019, 17:31
      0
      • J JonB
        30 Oct 2019, 17:27

        @Guerrian
        I don't believe anything about how you are making/compiling should be relevant.

        More important would be ensuring same version of Qt. I would have expected that shortcut accelerators would work on Windows, and Qt is good at ensuring just this sort of thing cross-platform.

        Perhaps you could post comparative screenshots so we can see just where these menus are. If you have time, write yourself a tiny program to just show a menu and see how that behaves? If you designed from Qt Creator, verify that the UI definition file with the shortcuts got taken across correctly?

        G Offline
        G Offline
        Guerrian
        wrote on 30 Oct 2019, 17:31 last edited by
        #3

        @JonB I solved it / edited my question.

        Linux Mint 18.3
        Qt 5.14.1
        Qt Creator 4.11.1

        1 Reply Last reply
        0
        • G Guerrian
          30 Oct 2019, 17:19

          Hi,

          I wrote an application with Qt creator in Linux Mint and I ported the application to Windows using:

          $ ~/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5
          $ make

          When I run the resulting "exe" on a Windows 10 computer the letters on the menu of the program are missing underlines for their shortcuts. I don't know if this an MXE / MinGW or a Windows problem / I guess it's not really a Qt problem?

          Update: Solved

          Turning on / off the underline shortcuts is a feature of Windows 10, accessible via the system Settings!

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 30 Oct 2019, 17:41 last edited by
          #4

          @Guerrian said in Letters on the menu are missing underlines for their shortcuts in Windows port:

          When I run the resulting "exe" on a Windows 10 computer the letters on the menu of the program are missing underlines for their shortcuts. I don't know if this an MXE / MinGW or a Windows problem / I guess it's not really a Qt problem?

          Try pressing the Alt key. Windows nowadays only shows the shortcuts on keypress.

          Regards

          Qt has to stay free or it will die.

          J 1 Reply Last reply 30 Oct 2019, 17:45
          1
          • A aha_1980
            30 Oct 2019, 17:41

            @Guerrian said in Letters on the menu are missing underlines for their shortcuts in Windows port:

            When I run the resulting "exe" on a Windows 10 computer the letters on the menu of the program are missing underlines for their shortcuts. I don't know if this an MXE / MinGW or a Windows problem / I guess it's not really a Qt problem?

            Try pressing the Alt key. Windows nowadays only shows the shortcuts on keypress.

            Regards

            J Offline
            J Offline
            JonB
            wrote on 30 Oct 2019, 17:45 last edited by
            #5

            @aha_1980

            Try pressing the Alt key. Windows nowadays only shows the shortcuts on keypress.

            OMG, really? I think I last looked in XP, I thought accelerators were always underlined??

            1 Reply Last reply
            0
            • G Guerrian
              30 Oct 2019, 17:19

              Hi,

              I wrote an application with Qt creator in Linux Mint and I ported the application to Windows using:

              $ ~/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5
              $ make

              When I run the resulting "exe" on a Windows 10 computer the letters on the menu of the program are missing underlines for their shortcuts. I don't know if this an MXE / MinGW or a Windows problem / I guess it's not really a Qt problem?

              Update: Solved

              Turning on / off the underline shortcuts is a feature of Windows 10, accessible via the system Settings!

              G Offline
              G Offline
              Guerrian
              wrote on 30 Oct 2019, 18:13 last edited by
              #6

              @Guerrian said in Letters on the menu are missing underlines for their shortcuts in Windows port:

              Update: Solved

              Turning on / off the underline shortcuts is a feature of Windows 10, accessible via the system Settings!

              Linux Mint 18.3
              Qt 5.14.1
              Qt Creator 4.11.1

              M 1 Reply Last reply 31 Oct 2019, 06:30
              2
              • G Guerrian
                30 Oct 2019, 18:13

                @Guerrian said in Letters on the menu are missing underlines for their shortcuts in Windows port:

                Update: Solved

                Turning on / off the underline shortcuts is a feature of Windows 10, accessible via the system Settings!

                M Offline
                M Offline
                marcbf
                wrote on 31 Oct 2019, 06:30 last edited by
                #7

                @Guerrian It's actually been in Windows since at least Windows 7, but probably located in a different place. For pre-Windows 10 have a look at Ease of Access Center in the Control Panel. There, select the "Make the keyboard easier to use" section and make sure "Underline keyboard shortcuts and access keys" is checked.

                1 Reply Last reply
                0

                3/7

                30 Oct 2019, 17:31

                • 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