leeeryan
16th December 2010, 08:18
hello, i want to use a hot key in my widget and i do it like this:
TextEdit::TextEdit(QWidget *parent)
: QsciScintilla(parent)
{
QShortcut *shortCut = new QShortcut(QKeySequence("F1"),this);
connect( shortCut, SIGNAL(activated() ), this, SLOT( wrap_word()) );
}
it not work, can anyone help me?
Thanks.
Ryan Lee
TextEdit::TextEdit(QWidget *parent)
: QsciScintilla(parent)
{
QShortcut *shortCut = new QShortcut(QKeySequence("F1"),this);
connect( shortCut, SIGNAL(activated() ), this, SLOT( wrap_word()) );
}
it not work, can anyone help me?
Thanks.
Ryan Lee