上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 41 下一页

2020年12月16日

Qt 不用记录鼠标是否按下的状态,就可实现左键按下拖动

摘要: 其中 mCurrentPos 是一个 QPoint 类型的成员变量,记录鼠标左键按下时,窗体的位置。 event->buttons() 是一个用 bit 表示move 是由哪个按键发起的。 所以按位与 Qt::LeftButton 如果不为零,就表示当前的 move 事件是由左键触发的。 所以无需记 阅读全文

posted @ 2020-12-16 13:19 liujx2019 阅读(841) 评论(0) 推荐(0)

QT Layout 的 Spaceing 调为0之后, 如果还有多余的留白,可以通过增大控件的 min size 来去掉留白

摘要: 如题 阅读全文

posted @ 2020-12-16 13:12 liujx2019 阅读(265) 评论(0) 推荐(0)

QT 用 border image 代替 background image, 图片大小会随控件大小自动缩放

摘要: 如题 阅读全文

posted @ 2020-12-16 13:10 liujx2019 阅读(612) 评论(0) 推荐(0)

QT 无边框的窗口,QCombBox 会变成扁平的

摘要: QCombBox 本身并没有办法让自己变成扁平的。 this->setWindowFlags(Qt::FramelessWindowHint); 阅读全文

posted @ 2020-12-16 13:09 liujx2019 阅读(174) 评论(0) 推荐(0)

2020年12月13日

Qt判断当前系统 意外的简单

摘要: 出处:https://beondxin.blog.csdn.net/article/details/105718849 #ifdef Q_OS_WIN #endif #ifdef Q_OS_LINUX #endif #ifdef Q_OS_MAC #endif 阅读全文

posted @ 2020-12-13 16:23 liujx2019 阅读(275) 评论(0) 推荐(0)

Qt 程序单元测试

摘要: https://beondxin.blog.csdn.net/article/details/107298088 https://beondxin.blog.csdn.net/article/details/107893280 https://beondxin.blog.csdn.net/artic 阅读全文

posted @ 2020-12-13 14:49 liujx2019 阅读(258) 评论(0) 推荐(0)

c++ 用宏代替常用的函数

摘要: 原文:https://beondxin.blog.csdn.net/article/details/106742997 #define QUICK_GETSET(name,type) \ virtual void Set_##name (const type &_arg) \ { \ this->n 阅读全文

posted @ 2020-12-13 14:48 liujx2019 阅读(284) 评论(0) 推荐(0)

2020年12月11日

QT QTreeWidget 的一个例子 显示文件(夹)的树形结构

摘要: https://gitee.com/wanggaoyuan/Ftp-Client?_from=gitee_search 阅读全文

posted @ 2020-12-11 10:49 liujx2019 阅读(1085) 评论(0) 推荐(0)

待读 QT 博客

摘要: https://beondxin.blog.csdn.net/article/list/1 阅读全文

posted @ 2020-12-11 10:47 liujx2019 阅读(38) 评论(0) 推荐(0)

2020年12月10日

如何为 QT5 装上 QT4 才有的库

摘要: 出处:https://forum.qt.io/topic/64412/how-to-add-qftp-in-qt5 SGaist Lifetime Qt Champion Feb 22, 2016, 5:51 AM Hi, Clone the repository from code.qt.io c 阅读全文

posted @ 2020-12-10 17:55 liujx2019 阅读(131) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 41 下一页

导航