咳咳!总结了一下我在使用QT文件操作时所用到的,再接再厉!再接再厉!! 1.保存到文件: QFile file("test.txt"); if (!file.open(QIODevice::WriteOnly);) { QMessageBox::warning(NULL, tr("保存文件"), t Read More
posted @ 2016-06-02 18:14
findumars
Views(6504)
Comments(0)
Diggs(0)
#include "ui_maindialog.h" #include "maindialog.h" #include <QState> #include <QEventTransition> #include <QStateMachine> #include <qDebug> MainDialog Read More
posted @ 2016-06-02 17:57
findumars
Views(2918)
Comments(0)
Diggs(0)
1、char * 与 const char *的转换 char *ch1="hello11";const char *ch2="hello22";ch2 = ch1;//不报错,但有警告ch1 = (char *)ch2; 2、char 与 QString的转换 char 转换为 QString其实 Read More
posted @ 2016-06-02 17:54
findumars
Views(3085)
Comments(0)
Diggs(0)
QT 获取控件widget的屏幕坐标 Read More
posted @ 2016-06-02 17:42
findumars
Views(8292)
Comments(0)
Diggs(0)
这篇文章来自于 A Deeper Look at Signals and Slots,Scott Collins 2005.12.19。需要说明的是,我们这里所说的“信号槽”不仅仅是指 Qt 库里面的信号槽,而是站在一个全局的高度,从系统的角度来理解信号槽。所以在这篇文章中,Qt 信号槽仅仅作为一种 Read More
posted @ 2016-06-02 16:34
findumars
Views(4163)
Comments(0)
Diggs(1)