title: Properly handling of QAction shortcut
body: <p>I have an application where users can add their own key sequences and open a file or folder when they hit their key sequences. I already did all the validations on the user's input and my app is almost complete until I encountered this problem.</p>
  
  <p>Here's a code that will explain:</p>
  
  <pre><code>result = [["path\\to\\foler", "Q, R"], ["path\\to\\file.ext", "Q, R, 1"]]
  for data in result:
      if os.path.exists(data[0]):
          shortcut = QAction(owner)
          shortcut.setShortcut(QKeySequence(data[1]))
          shortcut.triggered.connect(lambda checked, p=data[0]: func_to_open(p))
          owner.addAction(shortcut)
          owner.shortcut_list += [shortcut]
  </code></pre>
  
  <p>method of disconnection to reload shortcuts:</p>
  
  <pre><code>for short in owner.shortcut_list:
      owner.removeAction(short)
  </code></pre>
  
  <p>As you can see, I have two not so similar shortcuts "Q, R" and "Q, R, 1" where using the sequence "Q, R, 1" triggers the shortcut "Q, R" and does not read the next key stroke("Q, R, 1" does not work). I think the docs said that it will immediately trigger if it detected that is a valid sequence. </p>
  
  <p>What do I do in this situation? A preferable solution is to make <code>QAction</code> wait for a pause in key press then read whatever sequence it got. How do make both of these shortcuts to work?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Code using <code>QShortcut</code></p>
  
  <pre><code>result = [["path\\to\\foler", "Q, R"], ["path\\to\\file.ext", "Q, R, 1"]]
  for data in result:
      if os.path.exists(data[0]):
          shortcut = QShortcut(QKeySequence(book[1]), owner)
          lambda_func = lambda w=path: func_to_open(w)
  
          #Does Not Trigger, What is wrong?(Nothing happens)
          shortcut.activatedAmbiguously.connect(lambda_func)
          owner.shortcut_list += [[shortcut, lambda_func]]
  </code></pre>
  
  <p>Disconnection Method(Does not work, produces an error in activated())</p>
  
  <pre><code> for short in owner.shortcut_list:
      short[0].activatedAmbiguously.disconnect() #or short[0].activatedAmbiguously.disconnect(short[1])
      short[0].deleteLater()
  </code></pre>
  
  <p>activated.disconnect() error:</p>
  
  <pre><code>disconnect failed bwtween activated and all of its connections
  </code></pre>
  
  <p>activated.disconnect(short[1]) error</p>
  
  <pre><code>function is not connected
  </code></pre>