c++ - QAction::setAccel(QString) not available from Qt 4? -
following documentation:
http://doc.qt.digia.com/qq/qq14-actioneditor.html
i figured out there no qaction::setaccel(qstring)
method anymore.
how can 1 modify qaction
accel other using qtcreator? need alter them runtime.
the documentation not seem mention method anymore here:
http://qt-project.org/doc/qt-4.8/qaction.html
actually, documentation contain under qt3support section:
the next class members part of qt 3 back upwards layer. provided help port old code qt 4. advise against using them in new code.
you still utilize qmake modification follows:
qt += qt3support
but the documentation writes:
void qaction::setaccel ( const qkeysequence & shortcut )
use setshortcut() instead.
c++ qt qtgui qt3 qaction
No comments:
Post a Comment