那是你系统的UI风格和Qt没关系。不过你一样可以在程序里设置
QApplication::setStyle(QStyleFactory::create("plastique")); // 设置你想使用的UI风格
QApplication::setPalette(QApplication::style()->standardPalette());
从帮助文档可以看到Qt支持以下几种:
Typically they include "windows", "motif", "cde", "plastique" and "cleanlooks". Depending on the platform, "windowsxp", "windowsvista" and "macintosh" may be available.
可以看到windowsxp、windowsvista、macintosh是平台相关的,也就是说你在Linux下设置windowsxp风格是无效的。