上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
//delete.h #ifndef DELEGATE_H #define DELEGATE_H #include #include #include #include #include #include class Delegate : public QItemDelegate { Q_OBJECT public: explicit Delegate(QObject *pa... Read More
posted @ 2016-12-19 17:10 mCat Views(742) Comments(0) Diggs(0)
#include "dialog.h" #include "ui_dialog.h" Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Dialog) { ui->setupUi(this); QString sPath = "E:/"; dirmodel = new QFi... Read More
posted @ 2016-12-19 15:33 mCat Views(415) Comments(0) Diggs(0)
#include "dialog.h" #include "ui_dialog.h" #include Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Dialog) { ui->setupUi(this); model = new QDirModel(this); mod... Read More
posted @ 2016-12-19 15:11 mCat Views(351) Comments(0) Diggs(0)
#include "dialog.h" #include "ui_dialog.h" #include Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Dialog) { ui->setupUi(this); model = new QStringListModel(this); ... Read More
posted @ 2016-12-19 11:16 mCat Views(174) Comments(0) Diggs(0)
qSort() qCopy() qFill() qFind() Read More
posted @ 2016-12-19 10:59 mCat Views(416) Comments(0) Diggs(0)
#include #include #include int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QStringList List; QString Line = "a, b, c, d, f, g"; //List.append("Hello"); List =... Read More
posted @ 2016-12-17 18:53 mCat Views(307) Comments(0) Diggs(0)
#include #include #include int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QHash Employees; Employees.insert(1,"Bob"); Employees.insert(2,"Cat"); Employees.in... Read More
posted @ 2016-12-17 18:45 mCat Views(734) Comments(0) Diggs(1)
#include #include #include int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QMap Employees; Employees.insert(1,"Bob"); Employees.insert(2,"Cat"); Employees.ins... Read More
posted @ 2016-12-17 18:41 mCat Views(452) Comments(0) Diggs(0)
#include #include #include int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QList List; for(int i = 0; i Iter(List); while(Iter.hasNext()) { int i =... Read More
posted @ 2016-12-17 18:40 mCat Views(474) Comments(0) Diggs(0)
#ifndef MYTHREAD_H #define MYTHREAD_H #include class MyThread : public QThread { Q_OBJECT public: explicit MyThread(QObject *parent = 0); void run(); bool Stop; signals: void... Read More
posted @ 2016-12-15 15:21 mCat Views(240) Comments(0) Diggs(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页