Answer the question
In order to leave comments, you need to log in
QmlRegisterType to associate with other types?
create
qmlRegisterType("myprog",1,0,"MyClass"); and everything is clear here, but let's move on
1. Can it be associated with other types in the c ++ code (signals slots)?
2. Or how to create several classes in one type and access variables in these?
Answer the question
In order to leave comments, you need to log in
>Can I tie
him up? Who is "him"? class object? doc.qt.io/qt-5/qtqml-syntax-signals.html
>Or how to create multiple classes in one type Are we
talking about class fields? We take and create.
> and access variables in these
Q_PROPERTY
1. C++ wrote well :)
an example with errors (and everything is wrong XD) but something like this is needed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question