摘要:用了布局,控件大小就归布局管理了,但是可以用minimumSize和maximunSize控制最小的大小和最大的大小。想要手动控制大小,类似MFC,就不要用布局。
阅读全文
摘要:1、将.ui文件复制到与uic.exe同一文件夹中 2、在计算机开始中打开cmd 3、输入一下命令: cd ***(文件夹位置路径) uic ***.ui -o ***.h (生成.h文件) uic ***.ui -o ***.cpp(生成.cpp文件) 4、生成的文件会保存在uic.exe所在文件
阅读全文
摘要:https://blog.csdn.net/m0_37290785/article/details/77503474
阅读全文
摘要:在Qt中,我们经常会看到 也就是说,如果你定义以下内容: QT_BEGIN_NAMESPACE class QAction; class QMenu; class QPlainTextEdit; QT_END_NAMESPACE QT_BEGIN_NAMESPACE class QAction; c
阅读全文
摘要:QT_BEGIN_NAMESPACEclass Ui_frmInputBox{public: QVBoxLayout *verticalLayout; QWidget *widget_title;QHBoxLayout *horizontalLayout_2;void setupUi(QDialog
阅读全文
摘要:https://www.cnblogs.com/billxyd/p/6924229.html
阅读全文
摘要:QStyledItemDelegate 修改item的样式
阅读全文
摘要:https://blog.csdn.net/gan19951101/article/details/79978033
阅读全文
摘要:https://blog.csdn.net/chlk118/article/details/72511157
阅读全文
摘要:同事说:qt程序放在光盘里启动1分钟 https://blog.csdn.net/dronly/article/details/17246243
阅读全文
摘要:https://www.cnblogs.com/ike_li/p/4709867.html Qt有两种多线程的方法,其中一种是继承QThread的run函数,另外一种是把一个继承于QObject的类转移到一个Thread里。 Qt4.8之前都是使用继承QThread的run这种方法,但是Qt4.8之
阅读全文
摘要:https://www.cnblogs.com/techiel/p/7978039.html https://www.cnblogs.com/lvdongjie/p/3746925.html
阅读全文
摘要:1. 判断文件夹是不是存在参数说明:QString fullPath;//文件夹全路径/*方法1*/bool isDirExist(QString fullPath){ QDir dir(fullPath); if(dir.exists()) { return true; } return fals
阅读全文
摘要:02:25:10: 进程"D:\qt54\5.4\msvc2013_opengl\bin\qmake.exe"退出,退出代码 2 windows->中文文件夹修改为英文
阅读全文
摘要:#include <QtCore/QCoreApplication>#include <qdir.h>#include <qdatetime.h>#include <qstring.h>int main(int argc, char *argv[]){ //QCoreApplication a(ar
阅读全文
摘要:除了拖动标题栏移动窗口以外,我们也可以拖动窗口任意位置(除控件)位置而使对话框移动。 这里只讲述基于对话框的程序 [cpp] view plain copy class c**dlg:public CDialog { //Construction public: Crect startRect; /
阅读全文