这段代码写成脚本可以使用C++编写,以下是一个示例:

#include <QCoreApplication>

int main(int argc, char *argv[])
{
    QCoreApplication app(argc, argv);
    
    QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
    
    // 添加你的其他代码
    
    return app.exec();
}

将上述代码保存为一个.cpp文件,然后通过C++编译器进行编译,生成可执行文件即可运行。

QCoreApplicationsetAttributeQtAA_DisableHighDpiScaling;这段代码写成脚本怎么写不要Python

原文地址: http://www.cveoy.top/t/topic/iimx 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录