-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译遇到错误 ,没有QTipLabel这个类 #1
Comments
猜测是你的Qt版本里面定义了QT_NO_EFFECTS这个宏。试试在tooltip.cpp里面将它#undef掉。 |
tools/tooltip.cpp:57:32: 致命错误: private/qeffects_p.h:没有那个文件或目录 |
我用的是Windows下的Qt4.7.2,没有遇上这问题。你的问题应该先查找一下开发环境中有没有qeffects_p.h这个文件。如果找不到,可以到EzViewer源码的tools/tooltip.cpp中,注释掉#include <private/qeffects_p.h>,同时define QT_NO_EFFECTS,应该能解决问题。我接下来会把这个头文件的依赖去掉,以防止出现兼容性问题。 |
我的是4.8的,没有这个文件,qt在新版里对effect的很多代码有修改 |
注释之后就没有QTipLabel这个类了 |
已经修正了这个问题,你更新到最新提交试试。 |
可以编译通过了,但是没有菜单和特效了 |
tools/tooltip.cpp: In static member function 'static void ToolTip::showText(const QPoint&, const QString&, QWidget*, const QRect&, bool, qreal, int)':
tools/tooltip.cpp:349:13: error: expected type-specifier before 'QTipLabel'
tools/tooltip.cpp:349:13: error: expected ';' before 'QTipLabel'
tools/tooltip.cpp:365:43: error: 'qFadeEffect' was not declared in this scope
tools/tooltip.cpp:367:45: error: 'qScrollEffect' was not declared in this scope
The text was updated successfully, but these errors were encountered: