上一页 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(638) Comments(0) Diggs(0) Edit
#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(363) Comments(0) Diggs(0) Edit
#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(343) Comments(0) Diggs(0) Edit
#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(164) Comments(0) Diggs(0) Edit
qSort() qCopy() qFill() qFind() Read More
posted @ 2016-12-19 10:59 mCat Views(408) Comments(0) Diggs(0) Edit
#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(303) Comments(0) Diggs(0) Edit
#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(728) Comments(0) Diggs(1) Edit
#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(444) Comments(0) Diggs(0) Edit
#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(472) Comments(0) Diggs(0) Edit
#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(235) Comments(0) Diggs(0) Edit
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页