摘要:
1. 求最大值 const T &qMax(const T &a, const T &b) 2. 求最小值 const T &qMin(const T &a, const T &b) 3.求中间值 const T &qBound(const T &v1, const T &v2, const T & 阅读全文
摘要:
int result; std::cout << typeid(result).name(); 打印:int 阅读全文
摘要:
struct { unsigned char x1 : 2; unsigned char x2 : 2; unsigned char x3 : 2; unsigned char x4 : 2; } Bunch; /* sizeof(Bunch) => 1 */ struct { unsigned c 阅读全文
摘要:
Q_FOREVER { qDebug() << "..."; } 阅读全文
摘要:
在.pro里: build_type = CONFIG(debug, debug|release) { build_type = debug } else { build_type = release } DESTDIR = $$build_type/out OBJECTS_DIR = $$buil 阅读全文
摘要:
QtObject { Component.onCompleted: console.log("Completed")//构造函数 Component.onDestruction: console.log("Destruction")//析构函数 } 阅读全文