Labs

Noises from the crypt… (Widgets on Graphics View update)

Published Tuesday October 30th, 2007 | 13 Comments on Noises from the crypt… (Widgets on Graphics View update)
Posted in Graphics View, KDE, Labs, Qt

Feature freeze for 4.4 is closing in. The offices in the dev department are awfully quiet. A bit… too quiet. The snippety-snapping sound of brilliant minds tapping in code, merging changes, polishing APIs, writing tests, reviewing patches. An incredible atmosphere, you would have to just be there to sense it. This is the period of […]

Read More

Dialogs on the Canvas

Published Wednesday June 6th, 2007 | 9 Comments on Dialogs on the Canvas
Posted in Graphics View, KDE, Labs, Qt

With 4.3.0 released, it’s finally time to get back to maintenance and research again. It’s been both an exciting and exhausting release, and mostly we’re all very happy with the way things have gone. There’s certainly something special about features you spent so much time working on, popping up as topics in forums here and […]

Read More

MapReduce in Qt Concurrent

Published Thursday April 26th, 2007 | 2 Comments on MapReduce in Qt Concurrent
Posted in Labs, Qt Concurrent, Threads

MapReduce was originally developed by Google to simplify writing parallel algorithms for computer clusters. The basic idea is that you divide your algorithm into two parts: one part that can be run in parallel on individual pieces of the input data (‘map’), and one sequential part that collects the map results and produces the final […]

Read More

Graphics View with layouts and widgets?

Published Monday April 2nd, 2007 | 1 Comment on Graphics View with layouts and widgets?
Posted in Graphics View, Labs, Qt

On the way to work today, on the train, I thought about how I can make this Monday the best possible. There’s a lot of stuff going on, and the art of getting Monday morning right sounded very appealing. So here I am; I’ve put on the Katamari soundtrack, wearing big earphones, sipping coffee and […]

Read More

Resolution independent UIs

Published Friday March 16th, 2007 | 4 Comments on Resolution independent UIs
Posted in Graphics View, Labs, Qt

After my last Graphics View blog about Widgets on the Canvas, people have been contacting me and telling how much they really really want true widgets on the canvas, with full transformations support. Resolution independent user interfaces, now that’s something very many drool over, especially the idea of not having to worry about pixel sizes […]

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

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
Get started today with Qt Download now