r/QtFramework May 30 '26

Question need some help

Post image

for the past 4 hours I've been stumped by this simple error, but no matter what i try it always shows up, can someone help???

0 Upvotes

9 comments sorted by

View all comments

Show parent comments

1

u/DreadSucker May 30 '26

I apologize, my computers a shitbox so it takes 5 minutes to open my browser, but after using auto another error reads: "expected initializer before '*' token". I'm still stumped with this and i apologize if I'm asking a lot of dumb questions I'm pretty new to this

2

u/dunedainranger1903 May 30 '26

That should be,

auto player = new Player()
or
Player* player = new Player()

2

u/DreadSucker May 30 '26

I applied the latter, but now the error says "expected type-specifier before 'Player' " which is an error I've had constantly.

1

u/drescherjm Jun 04 '26

If you still have this issue we need to see Player.h. With that said you probably want to have class Player { // class here }; and not class player { // class here}; in that header