摘要: ui.pushButton->setFocus(); //设置默认焦点ui.pushButton->setShortcut( QKeySequence::InsertParagraphSeparator );//设置快捷键为键盘的“回车”键ui.pushButton->setShortcut(Qt::Key_Enter); //设置快捷键为enter键ui.pushButton->setShortcut(Qt::Key_Return); //设置快捷键为小键盘上的enter键或者ui.pushButton->setFocus(); //设置默认焦点ui.pushB 阅读全文
posted @ 2013-06-15 16:42 wiessharling 阅读(4125) 评论(0) 推荐(1)