我需要将Windows Qt应用程序移植到Linux和Mac . 在Mac下,一切都很好,但是使用Ubuntu(在2台不同的机器上同时尝试了16.04.1和14.04),这些字体并没有消毒 . 看这张图:

enter image description here

使用动态Qt库一切都很好 . 它只发生在我使用Qt静态库时 . 以下是我静态构建Qt的方法:

./configure -static -prefix /home/.../Desktop/Qt-4.8.7-static -no-sql-sqlite -no-sql-sqlite2 --platform=linux-g++-32
make
make install

上面的输出是使用我正在添加的Qt Creator的标准Qt Widgets模板生成的:

QMessageBox::information(this, "Horrendous font", "This is one fugly font");

没有其他代码可以对此负责 . 知道为什么会这样吗?