QML
エラーメッセージ error: cannot allocate an object of abstract type 'QDeclarativePrivate::QDeclarativeElement<MyClass>' note: because the following virtual functions are pure within 'QDeclarativePrivate::QDeclarativeElement<MyClass>': note: virtual void MyCl</myclass></myclass>…
事象 Q_INVOKABLE メソッドが実行されず、次のエラーが表示される。 エラーメッセージ TypeError: Result of expression 'name.invokeMethod' [undefined] is not a function. 環境 Qt 4.8.6 Ubuntu 14.04 原因 A. クラスの定義に Q_OBJECT キーワードが含ま…
nameFilters プロパティーを更新する。 FolderListModel は、nameFilters プロパティーが更新されると再読み込みを行うぽい。これを利用する。 ListView { anchors.fill: parent model: FolderListModel { id: folderListModel folder: "file:///C:" } deleg…
メッセージ Cannot anchor to an item that isn't a parent or sibling. 翻訳 親や兄弟ではない項目には固定できません。 原因 アンカー先が直接の親または兄弟でないため。 anchors.right: parent.parent.right 対処 アンカー先を直接の親または兄弟に変更…
stopped() このシグナルはアニメーションが終了した時に発行されます。 アニメーションは、手動で停止されたか、完了しています。 それは、トップレベル、スタンドアロンなアニメーション向けにのみトリガーされます。それは Behavior や Transition、アニメ…
アプリケーション実行中に次のメッセージが出力される。 Cannot assign to non-existent property "onCompleted" 原因 onCompleted: { ... 解決策 Component.onCompleted: { ...
対象 Qt 4.8.x 説明 Qt のドキュメント Using Enumerations of a Custom Type に次の一文がある。 To be accessible from QML, the names of enum values must begin with a capital letter. (QML からアクセスするには、enum 値の名前を大文字で始める必要…