QT 在.qrc中导入文件,在cmake中写入配置,图片不显示
<!DOCTYPE RCC>
<RCC>
<qresource>
<file>image/waitMessage.gif</file>
<file>image/LOGO.png</file>
</qresource>
</RCC>
set(CMAKE_AUTORCC ON)
set(QRC_FILE image.qrc)
qt5_add_resources(QRC ${QRC})
m_pLoadingMovie = new QMovie(":/image/LOGO.png");
m_pLoadingMovie->setScaledSize(QSize(120, 120));
m_pMovieLabel = new QLabel(m_pCenterFrame);
m_pMovieLabel->setGeometry(55, 10, 120, 120);
m_pMovieLabel->setScaledContents(true);
m_pMovieLabel->setMovie(m_pLoadingMovie);
m_pLoadingMovie->start();
git图片不显示