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

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
  • 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.
  • GuerrianG Offline
    GuerrianG Offline
    Guerrian
    wrote on 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

    JonBJ aha_1980A GuerrianG 3 Replies Last reply
    0
    • GuerrianG Guerrian

      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!

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on 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?

      GuerrianG 1 Reply Last reply
      0
      • JonBJ JonB

        @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?

        GuerrianG Offline
        GuerrianG Offline
        Guerrian
        wrote on 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
        • GuerrianG Guerrian

          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!

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 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.

          JonBJ 1 Reply Last reply
          1
          • aha_1980A aha_1980

            @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

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on 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
            • GuerrianG Guerrian

              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!

              GuerrianG Offline
              GuerrianG Offline
              Guerrian
              wrote on 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
              2
              • GuerrianG Guerrian

                @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 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

                • Login

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