Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. "QQuickAction::event: Ambiguous shortcut overload: +" when pressing "Ctrl++"
QtWS25 Last Chance

"QQuickAction::event: Ambiguous shortcut overload: +" when pressing "Ctrl++"

Scheduled Pinned Locked Moved QML and Qt Quick
qmlqtquickshortcutsactionqt5.4
4 Posts 2 Posters 2.6k 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.
  • K Offline
    K Offline
    Korchkidu
    wrote on last edited by Korchkidu
    #1

    Hi,

    I have the following code:

    import QtQuick 2.4
    import QtQuick.Controls 1.3
    
    ApplicationWindow
    {
      width: 640; height: 480; visible: true
    
      Action{shortcut: "a"; onTriggered: console.log("a")}
      Action{shortcut: "Ctrl+a"; onTriggered: console.log("Ctrl+a")}
      Action{shortcut: "+"; onTriggered: console.log("+")}
      Action{shortcut: "Ctrl++"; onTriggered: console.log("Ctrl++")}
    }
    

    When I press a, Ctrl+a, + and Ctrl++ I get the following output:

    qml: a
    qml: Ctrl+a
    qml: +
    QQuickAction::event: Ambiguous shortcut overload: +
    

    Why am I getting this error?

    Thanks for any help.
    Regards.

    p3c0P 1 Reply Last reply
    0
    • K Korchkidu

      Hi,

      I have the following code:

      import QtQuick 2.4
      import QtQuick.Controls 1.3
      
      ApplicationWindow
      {
        width: 640; height: 480; visible: true
      
        Action{shortcut: "a"; onTriggered: console.log("a")}
        Action{shortcut: "Ctrl+a"; onTriggered: console.log("Ctrl+a")}
        Action{shortcut: "+"; onTriggered: console.log("+")}
        Action{shortcut: "Ctrl++"; onTriggered: console.log("Ctrl++")}
      }
      

      When I press a, Ctrl+a, + and Ctrl++ I get the following output:

      qml: a
      qml: Ctrl+a
      qml: +
      QQuickAction::event: Ambiguous shortcut overload: +
      

      Why am I getting this error?

      Thanks for any help.
      Regards.

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @Korchkidu Works with Qt 5.4.1 on Ubuntu 14.04.

      157

      K 1 Reply Last reply
      0
      • p3c0P p3c0

        @Korchkidu Works with Qt 5.4.1 on Ubuntu 14.04.

        K Offline
        K Offline
        Korchkidu
        wrote on last edited by
        #3

        @p3c0 Hi, thanks for your answer. It seems it is happening when using the "+" just below the F1-F12 keys. It works well with the "+" on the numeric keypad though.

        p3c0P 1 Reply Last reply
        0
        • K Korchkidu

          @p3c0 Hi, thanks for your answer. It seems it is happening when using the "+" just below the F1-F12 keys. It works well with the "+" on the numeric keypad though.

          p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          @Korchkidu For me it works with both.

          157

          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