Created
November 21, 2012 04:20
-
-
Save uduki/4122991 to your computer and use it in GitHub Desktop.
QtQuick Memo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QtQuickViewでQMLを表示する。 | |
C++のデータをQMLに渡す時は、QmlContext::setPropertyHogeHogeで渡す。 | |
C++で作成したQAbstractItemModelの派生クラスの各要素のデータは、そのままだとQMLからプロパティ名でアクセスできない。 | |
これをプロパティ名でアクセス可能にするため、QAbstractItemModel::roleNamesをオーバーライドしてプロパティ名の設定をする。 | |
QtQuick(QML/js)でViewの動作はかなりの部分が定義できるので、Haskellは低レイヤーの作業に専念出来る。 | |
C++関数やC++タイプのQMLへのエクスポート等は、テキストエディタのサンプル及び解説ページを参照。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment