Hi,

I'm using QKeySequence [1] and am trying to extend it's functionality
to add mouse support.
But in my structure i use stuff like:

QVector<Qt::Key> keys;

So now i want to have a vector with the keys in it.
If i create a QKeySequence("Ctrl+A") i want to have:
Qt::Key_Control
Qt::Key_A

Added to the vector, but how do i retrieve those from QKeySequence? I
don't see an option for it..

The only option i see right now is diving in QKeySequencePrivate and
grabbing it's string parsing logic. But that seems a bit overkill to
me.

Side note: QKeySequence::count() seems to return just the non modifier
key count. In the above example it would return 1 where i would expect
2. (Control is a key, right?) Why is it returning 1?

Cheers,
Mark
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to