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. The best way to 'wrap' QKeySequence? [ABANDONED]
Forum Updated to NodeBB v4.3 + New Features

The best way to 'wrap' QKeySequence? [ABANDONED]

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 1.8k 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.
  • R Offline
    R Offline
    rickst29
    wrote on 28 Dec 2011, 18:19 last edited by
    #1

    Hello. I'm going to add the invocation of Qt shortcuts FROM THE MOUSE into Qt5, and I'm not sure how to migrate the current QKeySequence class.

    Alternative 1: A new parent wrapper, 'QInputSequence' containing the current class, plus new classes for 'QMouseSequence' and 'QCombinedSequence'. (The second being for shortcuts which involve a mouse button WITH keyboard click of a 'regular' key; the modifier keys are easily handled in QMouseSequence directly.) This makes slightly more sense for adding future devices, such as TV remote controls and IR game controllers.

    Alternative 2: Put these new classes INSIDE of the existing QKeySequence. This would make enumerations (StandardKey, SequenceMatch, and SequenceFormat) available to the children auto-magically, without keywords to change their scope.


    What seems best, and why?
    Quick and Dirty answers would be great, I'm looking only for a general suggestion.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rickst29
      wrote on 28 Dec 2011, 18:23 last edited by
      #2

      BTW, discussion of the enhancement itself is at:
      http://developer.qt.nokia.com/forums/viewthread/12843/

      But that discussion is mostly settled- enhance the existing structure, not build-from-scratch-using-Dbus.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rickst29
        wrote on 4 Jan 2013, 00:50 last edited by
        #3

        Neither. The concept of 'Mouse Shortcuts' is best handled at the Desktop and KApplication layers, not down inside Qt.

        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