Qt

Exposing Attributes of C++ Types to QML[QT]

깡죠 2015. 10. 23. 01:38

원문 링크 http://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html

해석 http://criticalmass.tistory.com/267


세미나 링크 http://www.qt.io/resource-center-qtws15-session-listing/

할것 http://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html


QML 에서의 C++속성 공개


QML 은 다음과 같은 접근이 가능하다. 

  • Properties
  • Methods (providing they are public slots or flagged with Q_INVOKABLE)
  • Signals


데이터 형식 취급 및 소유권 다음링크 참고

http://doc.qt.io/qt-5/qtqml-cppintegration-data.html#data-ownership


Data Type Conversion Between QML and C++

http://doc.qt.io/qt-5/qtqml-cppintegration-data.html


Exposing Properties (공개)

 QObject - derived class   QObject 에서 파생된 클래스들은 QML에서 접근 가능한다.


C++에서 QML 타입을 정의



Writing QML Extensions with C++

http://doc.qt.io/qt-5/qtqml-tutorials-extending-qml-example.html < -이거 볼것