例1
qDebug() << []() { return "hello world!";}(); qDebug() << [](int a) { return a;}(3);
例1
qDebug() << []() { return "hello world!";}(); qDebug() << [](int a) { return a;}(3);
Qt 如何调用其他 C++ 头文件里的 ENUM?
在前文《Qt5 + VS2015 的命令行编译和安装》介绍了命令行的编译和安装,然而在Creator 使用中,却没有安装这一步骤。其实,是可以的。
例如
TEMPLATE = lib TARGET = $$qtLibraryTarget($$TARGET) target.path = $$[QT_INSTALL_PLUGINS]/designer INSTALLS += target