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

Error adding class to qt_ros #30

Open
feng123a opened this issue Jun 24, 2020 · 2 comments
Open

Error adding class to qt_ros #30

feng123a opened this issue Jun 24, 2020 · 2 comments

Comments

@feng123a
Copy link

Hello, I added the C++ class to the template of qt_ros, and I get an error:
error: base class has incomplete type
qobject.h:62:7: note: forward declaration of'QThread'

I would like to ask how to solve it. I would not appreciate it if you can answer it.
image

@stonier
Copy link
Owner

stonier commented Jun 25, 2020

Can't inherit from a class that has only been forward declared. Look to your includes.

@feng123a
Copy link
Author

无法从仅向前声明的类继承。寻找您的包括。

I added include < qthread >
image

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