Monthly Archives: August 2011

New Version of the QML TreeView

I already posted an implementation of a QML TreeView some time ago. In the meantime I reworked this implementation, improved data and selection handling (the TreeView now comes e.g. with currentItem and currentIndex properties), added some (hopefully useful) comments, and … Continue reading

Posted in Qt/QML, Snippets | Tagged , , , , | Leave a comment

Reorder Items in a QML ListView via Touch Gestures

The stock QML ListView is pretty handy for displaying simple data structures. While porting To-Do-O to Qt/QML (MeeGo/Harmattan to be more precise) I stumbled across a use case where I want to move / reorder items in a list. In … Continue reading

Posted in Qt/QML, Snippets | Tagged , , , , | Leave a comment

QML SectionScroller vs. QAbstractListModel

A SectionScroller essentially allows quick scrolling in large lists. Though, there are some pitfalls when you want to use a custom C++/Qt based model with a SectionScroller in QML. Please note that this should work with a QAbstractItemModel based model … Continue reading

Posted in Qt/QML, Snippets | Tagged , , , , | 1 Comment

QML TreeView

QML does not (at the time of writing) provide a component to display tree structures. There are some approaches/efforts to display tree structures http://qt-way-notes.blogspot.com  http://steveire.wordpress.com. Nonetheless I coded a TreeView on my own. The following video shows the implementation made … Continue reading

Posted in Qt/QML, Snippets | Tagged , , , , | 3 Comments

Share QML Code among Fremantle and Harmattan

Qt and QML are really great for writing nice and beautiful UIs and applications that can be easily deployed across different platforms and operating systems. Though, I had to discover that the slogan “Code once, deploy everywhere” is not entirely … Continue reading

Posted in Qt/QML, Snippets | Tagged , , , , , , | 2 Comments

QML and Clipboard Interaction

The following snippets show how one can easily interact with the clipboard from QML code with the help of a tiny C++ wrapper / adapter. This code should work for all QML versions.

Posted in Qt/QML, Snippets | Tagged , , | Leave a comment

QComboBox for QML

QML does not come (yet?) with the equivalent of a QComboBox. As I find a ComboBox quite useful, even for touch UIs, I wrote a simple wrapper / adapter or whatever you want to call it that enables using a … Continue reading

Posted in Qt/QML, Snippets | Tagged , , , , , , , | 2 Comments

QML Text Input for Maemo Fremantle

Similarly to the dialogs in the previous post I also created a TextArea and TextField for Maemo Fremantle. The following picture shows the various text inputs in the Fremantle (N900) version of MeePasswords.

Posted in Qt/QML, Snippets | Tagged , , , , | 1 Comment

QML Dialogs for Maemo Fremantle

MeeGo / Harmattan comes with quite nice QML components like Buttons, Dialogs, and the like. Unfortunately these components are not available for Maemo Fremantle (N900). There is a qt-components package in extras-devel but there also seem to be some issues … Continue reading

Posted in Qt/QML, Snippets | Tagged , , , , | 2 Comments

Instant Coffee for Maemo Fremantle

Instant Coffee is an effort to package Java related applications, libraries, etc. for the easy installation on Maemo Fremantle (N900). Examples of packaged applications are: OpenJDK (actually the icedtea version) [package], MicroEmulator [package], or Clojure [package]. Please note that I … Continue reading

Posted in Other Software | Tagged , , , , | Leave a comment