4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Qt Quick(C+++QML)サンプルアプリケーション

Last updated at Posted at 2019-09-05

Qt 5.13を勉強して、c+++QMLでアプリケーションを作りました。
ドキュメントは読みやすくて、5.13ではサンプルがたくさんあるのでとっつきやすいですが、QAbstractListModelを継承したc++定義クラスのサンプルが無かったので公開します。

c++サイドで定義、操作する自前のクラス型のリストQList<CustomClass>をいい感じに動的表示するアプリケーションです。

基本的なLayout、Animation、Model/View、SIGNAL/SLOTのC++:QMLバインディングの参考にもなると思います。

環境

  • Qt 5.13
  • Qt Creator 4.92

動き

qtquicksample.gif

ソースコード

git clone https://github.com/koyayashi1231/QtQuick_QListSample.git
4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?