Skip to content
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

单独拉取SARibbon并build时cannot find -lSARibbonBar #12

Open
Rick613 opened this issue Oct 13, 2020 · 2 comments
Open

单独拉取SARibbon并build时cannot find -lSARibbonBar #12

Rick613 opened this issue Oct 13, 2020 · 2 comments

Comments

@Rick613
Copy link

Rick613 commented Oct 13, 2020

按照build文件去构建一直未成功,定位到是SARibbon一直编译不通过,显示
image
环境为Qt 5.9.9 win10

@1571520512
Copy link

请问你解决了吗.我也是这个问题

@czyt1988
Copy link
Owner

这个问题已经更改,单独拉取一下SARibbonBar
这是用到了5.11的新函数导致的,我加了个判断

#if QT_DEPRECATED_SINCE(5, 11)
            int textWidth = fontMetrics().horizontalAdvance(text);
#else
            int textWidth = fontMetrics().width(text);
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants