Search Results for:

QTreeModel

Published Tuesday March 13th, 2007 | 2 Comments on QTreeModel
Posted in Itemviews, Qt Jambi

Qt has a pretty nice architecture for doing MVC (Model/View/Controller) and being in the Qt Jambi team we wanted make Qt Jambi have access to all this. Unfortunatly we rather quickly ran into 2 big issues: Performance. The Qt itemviews framework is heavily based on the QModelIndex class which is a light-weight object that is […]

Read More

QGraphicsView: Widgets on the Canvas

Published Friday March 9th, 2007 | 10 Comments on QGraphicsView: Widgets on the Canvas
Posted in Graphics Items, Graphics View, Labs, Qt

Items or widgets? QGraphicsItem or QWidget? Which should I choose? Can you do everything with both? Mostly. You can write a games board widget, or a games board scene. An audio spectrum widget, or an audio spectrum item. Is QWidget faster? It can be, especially for simple widgets, and if you do everything right and […]

Read More

LALR(1) and Trolltech’s Creative Fridays

Published Friday March 9th, 2007 | 1 Comment on LALR(1) and Trolltech’s Creative Fridays
Posted in Compilers, Labs, News, QLALR, Qt

If you followed labs.trolltech.com, you’ve seen a new addition: QLALR. It’s a LALR(1) parser generator, created by Roberto Raggi of Qt Designer and KDevelop fame. Originally developed as Creative Friday project, it quickly got used in various projects within Trolltech. One example is the new script engine – no surprise, Roberto also had his fingers […]

Read More

Reflections

Published Friday March 9th, 2007 | Comments Off on Reflections
Posted in Aggregated, Qt

In the spirit of my never ending “pimp your Qt application” series comes another example. This time, “how to make iTunes-like album selector”. It’s funny how much attention this widget got. I looked at it yesterday on one of the Macs at the office and just implemented it. I probably should make it a view […]

Read More

Making asynchronous function calls with QFuture

Published Thursday March 8th, 2007 | 1 Comment on Making asynchronous function calls with QFuture
Posted in Labs, Qt Concurrent, Threads

QtConcurrent::run() runs a function in a worker thread. It returns a QFuture, which is then used to synchronize with the result: QString foo(); QFuture<QString> f = QtConcurrent::run(foo); … QString string = f.result() Calling f.result() will block the current thread until foo() has returned. The QFuture template argument must match the return type of foo(). If […]

Read More

Subversion in the Trolltech Labs

Published Wednesday March 7th, 2007 | 6 Comments on Subversion in the Trolltech Labs
Posted in Labs

I’ve seen already three different developers asking on IRC: “Why do you use Subversion in the Trolltech labs to publish your source code, instead of $FAVOURITE_REV_CTRL_SYSTEM?”. To make everyone’s life easier I thought I’d just answer the question here :) The two main arguments are simple: It’s portable. It runs well on Linux, OS X, […]

Read More
Get started today with Qt Download now