Allocating an object of abstract class type
-
When I want to derive PlayerController from QAbstractListModel, I get the following error in main.cpp
-
When I want to derive PlayerController from QAbstractListModel, I get the following error in main.cpp
@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?
-
This 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?
@JonB
sorry i'm new here -
@JonB
sorry i'm new here@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.@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 :-)