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

Build failure on Linux: aggregate ‘QStyleOption opt’ has incomplete type and cannot be defined #72

Open
pkillnine opened this issue Sep 3, 2019 · 1 comment

Comments

@pkillnine
Copy link

Operating system: Guix System

The problem is probably due to missing qtquickwidgets, as I added qtquickcontrols instead which I thought may be a different name for the same package, but it doesn't look like it. However, I'm not sure as CMake didn't raise an error.

[  5%] Building CXX object FugioApp/CMakeFiles/fugio.dir/contextwidgetprivate.cpp.o
/tmp/Fugio/FugioApp/contextwidgetprivate.cpp: In member function ‘virtual void ContextWidgetPrivate::paintEvent(QPaintEvent*)’:
/tmp/Fugio/FugioApp/contextwidgetprivate.cpp:477:15: error: aggregate ‘QStyleOption opt’ has incomplete type and cannot be defined
  477 |  QStyleOption opt;
      |               ^~~
make[2]: *** [FugioApp/CMakeFiles/fugio.dir/build.make:156: FugioApp/CMakeFiles/fugio.dir/contextwidgetprivate.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1168: FugioApp/CMakeFiles/fugio.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
@ycollet
Copy link

ycollet commented Oct 5, 2020

In FugioApp/contextwidgetprivate.cpp, just add:

#include <QStyleOption>

At the begining of the file

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