QPushButton btn = new QPushButton(); QVBoxLayout* layout = new QVBoxLayout(btn); QLabel* label = new QLabel(); label->setAlignment(Qt::AlignHCenter); QMovie* movie = new QMovie("test.gif"); movie->setScaleSize(QSize(20,20)); label->setM
参考:https://blog.csdn.net/KKALL1314/article/details/81915354 https://forum.qt.io/topic/80301/file-not-recognized-file-format-not-recognized-error 背景:在Ubuntu下 QT环境中添加讯飞语音库 要求:.so文件要经过交叉编译,否则报错:“error: file not recognized: File format not recognized” 过