Skip to content

QPainterPath was not defined, needs to be included#4

Open
ericfont wants to merge 1 commit intojessecrossen:masterfrom
ericfont:patch-1
Open

QPainterPath was not defined, needs to be included#4
ericfont wants to merge 1 commit intojessecrossen:masterfrom
ericfont:patch-1

Conversation

@ericfont
Copy link

@ericfont ericfont commented Nov 8, 2020

I got the following error, when compiling on arch linux on Qt version 5.15.3:

widget.cpp: In member function ‘void Widget::drawWheel(QRect, Wheel*, float)’:
widget.cpp:419:18: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
419 | QPainterPath path;
| ^~~~
widget.cpp:421:18: error: aggregate ‘QPainterPath hole’ has incomplete type and cannot be defined
421 | QPainterPath hole;
| ^~~~

Maybe in a prior version of Qt, it wasn't necessary to also include , but apparently now it is necessary to include in addition to .

@programagor
Copy link

Came here to submit this exact same patch. Without this line, the project does not compile on my Debian Bullseye.

@denilsonsa
Copy link

Came here for the same reason, and found out this PR #4 here is duplicate of PR #3.

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

Successfully merging this pull request may close these issues.

3 participants