• 4065阅读
  • 1回复

qt是不是有兼容问题,旧版本编译无错,新版本有错 [复制链接]

上一主题 下一主题
离线zfzgodfather
 
只看楼主 倒序阅读 楼主  发表于: 2010-02-17
d:\Qt\2009.05\qt\include/QtGui/../../src/gui/kernel/qsizepolicy.h:227: error: expected primary-expression before 'unsigned'

报这个错误!什么原因?

错误代码区域
inline void QSizePolicy::transpose() {
    Policy hData = horizontalPolicy();
    Policy vData = verticalPolicy();
    uchar hStretch = uchar(horizontalStretch());
    uchar vStretch = uchar(verticalStretch());
    setHorizontalPolicy(vData);
    setVerticalPolicy(hData);
    setHorizontalStretch(vStretch);
    setVerticalStretch(hStretch);
}


是qt库里的文件!
什么错,求解!
离线steinlee

只看该作者 1楼 发表于: 2010-02-18
You may compile different versions together. Check path and lib setting or
remove the old one and reinstall the new Qt.
Looking for remote C/C++ and Qt 兼职
快速回复
限100 字节
 
上一个 下一个