文章分类 -  GUI

上一页 1 2

GUI
qt widget 布局 大小
摘要:用了布局,控件大小就归布局管理了,但是可以用minimumSize和maximunSize控制最小的大小和最大的大小。想要手动控制大小,类似MFC,就不要用布局。 阅读全文

posted @ 2019-04-12 11:31 lydstory 阅读(636) 评论(0) 推荐(0) 编辑

qt 将.ui文件生成.h或.cpp文件
摘要:1、将.ui文件复制到与uic.exe同一文件夹中 2、在计算机开始中打开cmd 3、输入一下命令: cd ***(文件夹位置路径) uic ***.ui -o ***.h (生成.h文件) uic ***.ui -o ***.cpp(生成.cpp文件) 4、生成的文件会保存在uic.exe所在文件 阅读全文

posted @ 2019-04-10 19:21 lydstory 阅读(3808) 评论(0) 推荐(0) 编辑

qt 从ui生成cpp
摘要:https://blog.csdn.net/m0_37290785/article/details/77503474 阅读全文

posted @ 2019-04-10 18:43 lydstory 阅读(325) 评论(0) 推荐(0) 编辑

QT_BEGIN_NAMESPACE
摘要:在Qt中,我们经常会看到 也就是说,如果你定义以下内容: QT_BEGIN_NAMESPACE class QAction; class QMenu; class QPlainTextEdit; QT_END_NAMESPACE QT_BEGIN_NAMESPACE class QAction; c 阅读全文

posted @ 2019-04-10 17:26 lydstory 阅读(361) 评论(0) 推荐(0) 编辑

QT控件窗口
摘要:QT_BEGIN_NAMESPACEclass Ui_frmInputBox{public: QVBoxLayout *verticalLayout; QWidget *widget_title;QHBoxLayout *horizontalLayout_2;void setupUi(QDialog 阅读全文

posted @ 2019-04-10 17:25 lydstory 阅读(176) 评论(0) 推荐(0) 编辑

QWidget
摘要:https://www.cnblogs.com/billxyd/p/6924229.html 阅读全文

posted @ 2019-04-10 17:06 lydstory 阅读(77) 评论(0) 推荐(0) 编辑

QStyledItemDelegate
摘要:QStyledItemDelegate 修改item的样式 阅读全文

posted @ 2019-04-10 16:47 lydstory 阅读(183) 评论(0) 推荐(0) 编辑

QStackedWidget
摘要:https://blog.csdn.net/gan19951101/article/details/79978033 阅读全文

posted @ 2019-04-10 15:25 lydstory 阅读(107) 评论(0) 推荐(0) 编辑

Qt5使用QPdfWriter方式写pdf文档
摘要:https://blog.csdn.net/chlk118/article/details/72511157 阅读全文

posted @ 2019-04-10 15:10 lydstory 阅读(442) 评论(0) 推荐(0) 编辑

qt程序放在光盘启动1分钟
摘要:同事说:qt程序放在光盘里启动1分钟 https://blog.csdn.net/dronly/article/details/17246243 阅读全文

posted @ 2019-04-10 12:51 lydstory 阅读(166) 评论(0) 推荐(0) 编辑

QThread
摘要:https://www.cnblogs.com/ike_li/p/4709867.html Qt有两种多线程的方法,其中一种是继承QThread的run函数,另外一种是把一个继承于QObject的类转移到一个Thread里。 Qt4.8之前都是使用继承QThread的run这种方法,但是Qt4.8之 阅读全文

posted @ 2019-04-10 10:24 lydstory 阅读(195) 评论(0) 推荐(0) 编辑

qTcpSocket
摘要:https://www.cnblogs.com/techiel/p/7978039.html https://www.cnblogs.com/lvdongjie/p/3746925.html 阅读全文

posted @ 2019-04-10 10:02 lydstory 阅读(146) 评论(0) 推荐(0) 编辑

qt判断文件是否存在
摘要:1. 判断文件夹是不是存在参数说明:QString fullPath;//文件夹全路径/*方法1*/bool isDirExist(QString fullPath){ QDir dir(fullPath); if(dir.exists()) { return true; } return fals 阅读全文

posted @ 2019-03-21 15:20 lydstory 阅读(695) 评论(0) 推荐(0) 编辑

qt常见问题
摘要:02:25:10: 进程"D:\qt54\5.4\msvc2013_opengl\bin\qmake.exe"退出,退出代码 2 windows->中文文件夹修改为英文 阅读全文

posted @ 2019-03-20 02:28 lydstory 阅读(139) 评论(0) 推荐(0) 编辑

qt test
摘要:#include <QtCore/QCoreApplication>#include <qdir.h>#include <qdatetime.h>#include <qstring.h>int main(int argc, char *argv[]){ //QCoreApplication a(ar 阅读全文

posted @ 2019-03-14 14:48 lydstory 阅读(186) 评论(0) 推荐(0) 编辑

VC/MFC拖动窗口任意位置移动窗口
摘要:除了拖动标题栏移动窗口以外,我们也可以拖动窗口任意位置(除控件)位置而使对话框移动。 这里只讲述基于对话框的程序 [cpp] view plain copy class c**dlg:public CDialog { //Construction public: Crect startRect; / 阅读全文

posted @ 2017-12-28 11:40 lydstory 阅读(3251) 评论(0) 推荐(0) 编辑

上一页 1 2

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示