Is there something similar to kde's KKeySequenceWidget in Qt?

If not, what's the suggested way for getting a key sequence from the user?