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

ui_mainwindow.h #2

Open
molyswu opened this issue May 21, 2022 · 3 comments
Open

ui_mainwindow.h #2

molyswu opened this issue May 21, 2022 · 3 comments

Comments

@molyswu
Copy link

molyswu commented May 21, 2022

Hi,
QT\vs2019_ncnn_opencv-mobile_Qt_nanodet,
可以提供 ui_mainwindow.h文件吗?
Ui::MainWindowClass ui; 禁止显示状态
错误(活动) E0135 namespace "Ui" 没有成员 "MainWindowClass"

谢谢!

@EdVince
Copy link
Owner

EdVince commented May 21, 2022

我看了一下你好像对我的PSGAN-NCNN和ClothingTransfer-NCNN这两个仓库都会有这个问题,ui_mainwindow.h这个文件是qt自动通过mainwindow.ui这个文件生成出来的,你可以单独编译一下.ui文件让它生成一个.h出来。

@molyswu
Copy link
Author

molyswu commented May 21, 2022

编译了有ui_mainwindow.h,现在出现如下错误:
1.严重性 代码 说明 项目 文件 行 禁止显示状态
错误 C2039 “showSource”: 不是“Ui::MainWindowClass”的成员
2.严重性 代码 说明 项目 文件 行 禁止显示状态
错误 C2039 “showReference”: 不是“Ui::MainWindowClass”的成员
3.严重性 代码 说明 项目 文件 行 禁止显示状态
错误 C2039 “showFake”: 不是“Ui::MainWindowClass”的成员

谢谢!!

@EdVince
Copy link
Owner

EdVince commented May 21, 2022

可能是qt配置有点问题,你把代码里面的qt部分都删了吧,qt也就是个界面而已,改成普通的命令行终端也能用。

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

2 participants