Qt QLabel::setBuddy函数
2015-10-27 11:16
363 查看
label = new QLabel(tr("Find &what:"));
lineEdit = new QLineEdit;
label->setBuddy(lineEdit);
label 的快捷键是 "ALT+w",按下快捷键时,输入焦点自动跳到label的buddy——lineEdit上
lineEdit = new QLineEdit;
label->setBuddy(lineEdit);
label 的快捷键是 "ALT+w",按下快捷键时,输入焦点自动跳到label的buddy——lineEdit上
相关文章推荐
- Qt使用教程之创建一个基于Qt部件的应用程序(一)
- Qt concurrent run()函数使用
- Qt之无边框自定义最小化、关闭按钮并实现窗口移动
- Qt::WA_StaticContents的作用
- QT程序Release后无法连接数据库的问题
- qt5和opencv3在linux上安装配置
- There's no Qt version assigned to this project for platform x64. Please use the 'change Qt version
- Qt中 QGLWidget碰到no such file or directory的解决办法
- Qt之四方分割器QuadSplitter
- Qt5+VS2013兼容XP方法
- 学习Qt之简单计算器
- Qt添加界面文件的背景图片
- VS2012 QT程序打包部署详解
- 学习Qt5(9)
- QTP 过期了 怎么处理
- QT4中构建多线程的服务器
- 【1.Qt之多线程小入门】
- QT4中构建多线程的服务器
- QT子线程与主线程的信号槽通信
- Qt的三方库