Allocating an object of abstract class type
-
wrote on 15 Aug 2024, 13:03 last edited by
-
When I want to derive PlayerController from QAbstractListModel, I get the following error in main.cpp
wrote on 15 Aug 2024, 13:05 last edited by@ceydasimsekk
Please post code not screenshots.So have you done what https://doc.qt.io/qt-6/qabstractlistmodel.html#subclassing tells you that you must do?
-
wrote on 15 Aug 2024, 13:29 last edited byThis post is deleted!
-
@ceydasimsekk
Please post code not screenshots.So have you done what https://doc.qt.io/qt-6/qabstractlistmodel.html#subclassing tells you that you must do?
wrote on 15 Aug 2024, 14:18 last edited by@JonB
sorry i'm new here -
@JonB
sorry i'm new herewrote on 15 Aug 2024, 14:35 last edited by@ceydasimsekk Whether you are new or not you likely have not done what that link tells you that you need to do.
-
Hi,
Did you implement all the required pure virtual methods from the base class ?
Without doing that, you class is also an abstract class. -
Hi,
Did you implement all the required pure virtual methods from the base class ?
Without doing that, you class is also an abstract class.wrote on 16 Aug 2024, 13:52 last edited by@SGaist Yes,thank you very much I solved it.
-
Great !
Then please mark the thread as solved so other forum users may know a solution has been found :-)
1/8