Cross Platform Crypto Currency Tracker


I built a crypto currency tracker for the desktop to experiment building and deploying a Qt5 application. Getting the initial prototype ready was easy, but I quickly ran into a few problems integrating QML, Javascript and C++. Initially the entire application was written in QML, but I could not find an elegant way to sort and filter the list simultaneously so I turned to the C++ class QSortFilterProxyModel. However, there are examples on sorting without filtering.

After exposing the QSortFilterProxyModel class to QML I was able to define custom filters based on each items name and “star” while also sorting based on multiple criteria. While this solution worked well it broke data change animations because QSortFilterProxyModel does not emit the correct beginmoverows() signal. This is something I don’t have a solution for yet.

I am continually impressed how much Qt has expanded their product. You can now build for embedded devices, Android, iOS, and all major desktop platforms. However, the trade off for a standardized toolkit is inflexibility. Developing a plugin or adapter to the outside world, which could be calling a Java API on Android or calling Qt’s C++ APIs from QML, is likely if you are building a moderately complex application.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s