标题:在Windows上架构debug环境的时候无法找到ABS_RIGHTNORMAL等定义
作者:eddielu
日期:2006-09-09 10:31
内容:
his function)
styles\qwindowsxpstyle.cpp:2548: error: `ABS_RIGHTNORMAL' undeclared (first use
this function)
styles\qwindowsxpstyle.cpp:2548: error: `ABS_DOWNNORMAL' undeclared (first use t
his function)
styles\qwindowsxpstyle.cpp:2557: error: `ABS_UPDISABLED' undeclared (first use t
his function)
styles\qwindowsxpstyle.cpp:2559: error: `ABS_UPPRESSED' undeclared (first use th
is function)
styles\qwindowsxpstyle.cpp:2561: error: `ABS_UPHOT' undeclared (first use this f
unction)
styles\qwindowsxpstyle.cpp:2563: error: `ABS_UPNORMAL' undeclared (first use thi
s function)
styles\qwindowsxpstyle.cpp:2572: error: `SBP_LOWERTRACKHORZ' undeclared (first u
se this function)
styles\qwindowsxpstyle.cpp:2572: error: `SBP_LOWERTRACKVERT' undeclared (first u
se this function)
styles\qwindowsxpstyle.cpp:2573: error: `SCRBS_DISABLED' undeclared (first use t
his function)
styles\qwindowsxpstyle.cpp:2580: error: `SBP_UPPERTRACKHORZ' undeclared (first u
se this function)
styles\qwindowsxpstyle.cpp:2580: error: `SBP_UPPERTRACKVERT' undeclared (first u
se this function)
styles\qwindowsxpstyle.cpp:2584: error: `SCRBS_PRESSED' undeclared (first use th
is function)
styles\qwindowsxpstyle.cpp:2586: error: `SCRBS_HOT' undeclared (first use this f
unction)
styles\qwindowsxpstyle.cpp:2588: error: `SCRBS_NORMAL' undeclared (first use thi
s function)
styles\qwindowsxpstyle.cpp:2621: error: `SBP_THUMBBTNHORZ' undeclared (first use
this function)
styles\qwindowsxpstyle.cpp:2621: error: `SBP_THUMBBTNVERT' undeclared (first use
this function)
styles\qwindowsxpstyle.cpp:2629: error: `MARGINS' undeclared (first use this fun
ction)
styles\qwindowsxpstyle.cpp:2629: error: expected `;' before "contentsMargin"
styles\qwindowsxpstyle.cpp:2631: error: `contentsMargin' undeclared (first use t
his function)
styles\qwindowsxpstyle.cpp:2634: error: `SBP_GRIPPERHORZ' undeclared (first use
this function)
styles\q ..
#1 [eddielu 09-11 19:31]
难道只有我遇到这种问题?
#2 [zbluecn 01-15 22:59]
我也是 用MinGw编译的~~
正在想办法把xpstyle去掉
#3 [zbluecn 01-15 23:15]
编译成功
该了1个文件
styles.pri
定义XPStyle的地方注释掉
#contains( styles, windowsxp ) {
# HEADERS += styles/qwindowsxpstyle.h
# SOURCES += styles/qwindowsxpstyle.cpp
# !contains( styles, windows ) {
# message( windowsxp requires windows )
# styles += windows
# DEFINES+= QT_STYLE_WINDOWS
# }
#} else {
DEFINES += QT_NO_STYLE_WINDOWSXP
#}
然后重新 qmake gui.pro
记得 要make clean 清除以前的编译
然后make 就可以了