Is it possible to limit QKeySequence
to show only one shortcut in QKeySequenceEdit
? Currently now it supports up to 4 shortcuts. My application supports key sequences of only one shortcut, e.g. Ctrl+A
or Ctrl+C
and not e.g. Ctrl+A, D
or Ctrl+C, X, Z
.
Is it possible to limit QKeySequence
or QKeySequenceEdit
to just one key sequence?
Solved it, not the best solution but quick...If you want something more customize, I think you have to build it yourself...
customkeysequenceedit.h:
customkeysequenceedit.cpp: