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. Shortcut Key don't work
Forum Updated to NodeBB v4.3 + New Features

Shortcut Key don't work

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 5 Posters 3.1k Views 4 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.
  • A Offline
    A Offline
    ARASHz4
    wrote on last edited by ARASHz4
    #1

    Hi
    i'm using Qt 5.7.1 & Ubuntu 16.10
    I have menu bar & i add some actions into menu bar but shortcut keys don't work!
    i test in windows & mac it work & in Ubuntu 16.10 don't work i have no problem with Qt 5.7.0 but in Qt 5.7.1 this problem is exist .
    this is a bug in Qt?
    how can i fix it?

    A 1 Reply Last reply
    0
    • C Offline
      C Offline
      calebhalvy
      wrote on last edited by
      #2

      Hi @ARASHz4,
      Would you mind posting some example code so we can better understand where your problem may be?

      A 1 Reply Last reply
      0
      • C calebhalvy

        Hi @ARASHz4,
        Would you mind posting some example code so we can better understand where your problem may be?

        A Offline
        A Offline
        ARASHz4
        wrote on last edited by
        #3

        @calebhalvy
        I do this in designer.
        I create a action & set a shortcut for this & added into menu bar but shortcut don't work in ubuntu

        raven-worxR 1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          Are you using Unity ?
          Most likely it has an issue again :)

          Do the Creator shortcuts work?

          A 1 Reply Last reply
          0
          • mrjjM mrjj

            Are you using Unity ?
            Most likely it has an issue again :)

            Do the Creator shortcuts work?

            A Offline
            A Offline
            ARASHz4
            wrote on last edited by
            #5

            @mrjj yes i'm using unity
            in Qt Creator Shortcut work but in my app don't work
            even i create a new project for test this but don't work again

            mrjjM 1 Reply Last reply
            0
            • A ARASHz4

              @mrjj yes i'm using unity
              in Qt Creator Shortcut work but in my app don't work
              even i create a new project for test this but don't work again

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @ARASHz4
              It might be a bug. ( in Qt)
              You could search in https://bugreports.qt.io

              1 Reply Last reply
              0
              • A ARASHz4

                @calebhalvy
                I do this in designer.
                I create a action & set a shortcut for this & added into menu bar but shortcut don't work in ubuntu

                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #7

                @ARASHz4 said in Shortcut Key don't work:

                @calebhalvy
                I do this in designer.
                I create a action & set a shortcut for this & added into menu bar but shortcut don't work in ubuntu

                so you tried 2 separate created test-cases?
                If so this increases the chance that one has ambigious shortcuts defined.
                In such a case an activatedAmbigiously() singal is triggered instead of activated() signal. Which doesn't trigger the shortcut, but gives you a chance to react to it instead.
                Or QEvent::Shortcut/QEvent::ShortcutOverride, when using events.

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                0
                • A ARASHz4

                  Hi
                  i'm using Qt 5.7.1 & Ubuntu 16.10
                  I have menu bar & i add some actions into menu bar but shortcut keys don't work!
                  i test in windows & mac it work & in Ubuntu 16.10 don't work i have no problem with Qt 5.7.0 but in Qt 5.7.1 this problem is exist .
                  this is a bug in Qt?
                  how can i fix it?

                  A Offline
                  A Offline
                  ambershark
                  wrote on last edited by ambershark
                  #8

                  @ARASHz4 Someone in another thread has the same issue. I'm thinking it's probably a bug with qt 5.7.1 and linux. Or at least specific window managers in linux.

                  Update: Just tested it myself and for sure it's a bug in 5.7.1 with Linux. Please report it.

                  My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                  A 1 Reply Last reply
                  1
                  • A ambershark

                    @ARASHz4 Someone in another thread has the same issue. I'm thinking it's probably a bug with qt 5.7.1 and linux. Or at least specific window managers in linux.

                    Update: Just tested it myself and for sure it's a bug in 5.7.1 with Linux. Please report it.

                    A Offline
                    A Offline
                    ARASHz4
                    wrote on last edited by
                    #9

                    @ambershark I report this bug :
                    https://bugreports.qt.io/browse/QTBUG-57990

                    1 Reply Last reply
                    2

                    • Login

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