本文共 274 字,大约阅读时间需要 1 分钟。
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()
转载地址:http://lvqxi.baihongyu.com/