Sorry for my English. I have some class.
class AdaptedWidget: public QWidget
{
Q_OBJECT
public:
AdaptedWidget(AdaptedWidget *parent = 0) {nothing}
bool event(QEvent *event);
};
bool WindowManager::eventFilter(QObject *target, QEvent *event)
{
auto window = qobject_cast<AdaptedWidget*>(target);
**auto windowSharedPtr = std::make_shared<AdaptedWidget>(window);** //Error
...
I need create from AdaptedWidget* smart pointer. I need to override the copy constructor? Or is the problem in the enforcement types?