QDir::setCurrent(QCoreApplication::applicationDirPath());
QString strLanPath = QObject::tr("%1\\skin\\public\\title.png").arg(QDir::currentPath());
strLanPath = QDir::toNativeSeparators(strLanPath);
setWindowIcon(QIcon(strLanPath));
主要的就是 QCoreApplication::applicationDirPath()
qt设置路径为应用程序启动路径
最新推荐文章于 2024-08-05 10:00:39 发布