10 2020 档案

摘要:1.x #ifndef WIDGET_H#define WIDGET_H#include #include QT_BEGIN_NAM... 阅读全文
posted @ 2020-10-18 15:23 code_witness 阅读(403) 评论(0) 推荐(0)
摘要:.h #ifndef WIDGET_H#define WIDGET_H#include class Widget : public ... 阅读全文
posted @ 2020-10-12 15:59 code_witness 阅读(126) 评论(0) 推荐(0)
摘要:x.h QFile file("D:/testimage/text.dat"); if (!file.open(QIODevi... 阅读全文
posted @ 2020-10-12 11:16 code_witness 阅读(648) 评论(0) 推荐(0)
摘要:x.h #ifndef WIDGET_H#define WIDGET_H#include #include QT_BEGIN_NAM... 阅读全文
posted @ 2020-10-11 17:11 code_witness 阅读(92) 评论(0) 推荐(0)
摘要:paintevent.cpp #include "mywidget.h"#include MyWidget::MyWidget(QW... 阅读全文
posted @ 2020-10-10 20:10 code_witness 阅读(443) 评论(0) 推荐(0)
摘要:ticker.h #ifndef TICKER_H#define TICKER_H#include class Ticker : p... 阅读全文
posted @ 2020-10-09 21:18 code_witness 阅读(338) 评论(0) 推荐(0)
摘要:问题: / *event * /与 *event区别主要区别在于是否调用它,对于第二种情况,加与不加不影响结果。 调用 void P... 阅读全文
posted @ 2020-10-09 20:48 code_witness 阅读(45) 评论(0) 推荐(0)
摘要:Fixed :表示该窗口部件不能被拉伸或者压缩,窗口部件的大小总是保持为其大小提示的尺寸。 Minimum :表示该窗口部件的大小提... 阅读全文
posted @ 2020-10-09 15:34 code_witness 阅读(162) 评论(0) 推荐(0)
摘要:plotter.h #ifndef PLOTTER_H#define PLOTTER_H#include #include #inc... 阅读全文
posted @ 2020-10-09 11:25 code_witness 阅读(155) 评论(0) 推荐(0)
摘要:iconeditor.h #ifndef ICONEDITOR_H#define ICONEDITOR_H#include #inc... 阅读全文
posted @ 2020-10-08 15:35 code_witness 阅读(67) 评论(0) 推荐(0)
摘要:主要是将常用的QSpinBox提升为一个十六进制的微调控件,原本的QSpinBox默认范围为0~99。不能满足一些特殊情况,首先重新... 阅读全文
posted @ 2020-10-08 15:02 code_witness 阅读(370) 评论(0) 推荐(0)
摘要:mainwindow.h #ifndef MAINWINDOW_H#define MAINWINDOW_H#include QT_B... 阅读全文
posted @ 2020-10-07 19:13 code_witness 阅读(161) 评论(0) 推荐(0)
摘要:spreadsheet.h #ifndef SPREADSHEET_H#define SPREADSHEET_H#include c... 阅读全文
posted @ 2020-10-07 18:53 code_witness 阅读(88) 评论(0) 推荐(0)
摘要:finddialog.h //防止对头文件的多重包含#ifndef _FINDDIALOG_H_#define _FINDDIALO... 阅读全文
posted @ 2020-10-07 18:46 code_witness 阅读(54) 评论(0) 推荐(0)
摘要:头文件中用#include 代替其他头文件,因为包含了子类所要用到的所以Qt类的定义,但是不怎么推荐用. 如果出现无效的情况,将#i... 阅读全文
posted @ 2020-10-06 10:05 code_witness 阅读(78) 评论(0) 推荐(0)
摘要:#include "mainwindow.h"#include "ui_mainwindow.h"MainWindow::M... 阅读全文
posted @ 2020-10-04 16:46 code_witness 阅读(50) 评论(0) 推荐(0)
摘要:选择布局方式,加弹簧,上面的QLabel和LineEdit用鼠标选中,然后选择水平布局,下面的两个按钮加上弹簧也选择水平布局,然... 阅读全文
posted @ 2020-10-04 15:43 code_witness 阅读(69) 评论(0) 推荐(0)
摘要:熟悉子对话框的创建,以及QCheckBox、QPushbutton的使用,QHBoxLayout、QVBoxLayout、QGrid... 阅读全文
posted @ 2020-10-04 14:37 code_witness 阅读(207) 评论(0) 推荐(0)
摘要:第一个窗口:hello Qt! #include "mainwindow.h"#include #include int main(... 阅读全文
posted @ 2020-10-04 10:24 code_witness 阅读(189) 评论(0) 推荐(0)