摘要:
看一下效果很简单的一个小功能先说分部讲一下过程 再给出详细代码添加数据MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow){ ui->setupUi(this); ui->tableWidget->setColumnCount(2); ui->tableWidget->setRowCount(2); ui->tableWidget->setHorizontalHeaderLabels(QStringList()tableWidget-& 阅读全文
posted @ 2014-04-09 17:22
li-peng
阅读(48128)
评论(1)
推荐(4)
摘要:
Qt中的线程是与平台无关的QThread提供了创建一个新线程的方法新建一个线程,继承QThread并重写它的run()当调用 start()函数时会调用重载的run()函数例:#ifndef MYTHREAD_H#define MYTHREAD_H#include class MyThread : public QThread{ Q_OBJECTpublic: bool stop ; explicit MyThread(QObject *parent = 0); void run();signals:public slots:};#endif // MYTHREAD_H... 阅读全文
posted @ 2014-04-09 11:18
li-peng
阅读(23949)
评论(0)
推荐(0)

浙公网安备 33010602011771号