Labs

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

Perspective transformations on a QGraphicsView

Published Thursday March 1st, 2007 | 7 Comments on Perspective transformations on a QGraphicsView
Posted in Graphics Items, Graphics View, Labs, Qt

I don’t have much to say this time, just wanted to share a screenshot after I changed the 40000 Chips demo a bit. I replaced the single horizontal rotation-slider with three ones, each controlling one axis or rotation for the view. QTransform is really easy to use, and with some twiddling (thumb up, pointing finger […]

Read More

Graphics View improvements

Published Tuesday February 27th, 2007 | 21 Comments on Graphics View improvements
Posted in Graphics Items, Graphics View, Labs, Qt

We’re in the process of closing up the features for 4.3, and I’ve had a little run-down of what’s changed in Graphics View. In general, you will notice that the graphics run faster, (especially for complex polygons,) collisions are absolutely precise, the rubberband looks 100x better… I think most of our Graphics View followers will […]

Read More

Introducing Qt Concurrent

Published Friday February 23rd, 2007 | 9 Comments on Introducing Qt Concurrent
Posted in Labs, Qt Concurrent, Threads

As a part of Trolltech Labs, I’m adding the Qt Concurrent project. Qt Concurrent is a high-level threading framework for writing code that automatically scales on multi-core systems. For example, to make thumbnails of a list of images you can do this: QImage scaled(const QImage &image) { return image.scaled(QSize(100, 100)); } … const QList<QImage> images […]

Read More

Untransformable QGraphicsItem tags / labels

Published Sunday January 21st, 2007 | 2 Comments on Untransformable QGraphicsItem tags / labels
Posted in Graphics Items, Graphics View, Labs

Last summer, while we were finishing up 4.2, there was a great deal of activity on the mailing lists we set up for the 4.2 technical preview (http://lists.trolltech.com/). Some people kept on asking for support for “untransformable” items, that is, special QGraphicsItem items that don’t follow the parent’s or view’s transformations. Like the text labels […]

Read More

Hands on QGraphicsScene’s index

Published Monday December 18th, 2006 | 3 Comments on Hands on QGraphicsScene’s index
Posted in Graphics Items, Graphics View, KDE, Labs, Qt, Qtopia

Some people have asked if they can have more explicit control over how QGraphicsScene’s index works. If you’ve got concrete suggestions, please post comments to this post, or send us an email, or post a suggestion through our public feedback form. Some suggestions we’ve got so far are: setting the depth of the tree, forcing […]

Read More

Interact with volatile graphics items

Published Friday December 15th, 2006 | 2 Comments on Interact with volatile graphics items
Posted in Graphics Items, Graphics View, KDE, Labs, Qt

I hacked together some code today for interacting with a QGraphicsItem while its transformation changes. The problem? QGraphicsItem’s events are always delivered in local coordinates, and operations in response to such events that change item’s transformation (scale it, or move it, or shear it) will leave its local coordinates intact, but might change its relative […]

Read More

Zoom-and-rotate on mouseover effect in Graphics View

Published Thursday November 30th, 2006 | 3 Comments on Zoom-and-rotate on mouseover effect in Graphics View
Posted in Graphics Items, Graphics View, Labs, Qt

Have you seen flash-interfaces with controls that grow and twist when you move your mouse over them? Here’s how to do that in Graphics View. I was so surprised at how easy it was that I thought I’d share it. Here’s a screenshot, just so you know what I’m talking about: I’ll do this in […]

Read More

Graphics View Gem: Item Obscurity

Published Thursday September 14th, 2006 | Comments Off on Graphics View Gem: Item Obscurity
Posted in Graphics Items, Graphics View, KDE, Labs, Qt

During this summer of pre-4.2 testing, we got many feature requests from you all, customers and Open Source’rs, and I’d like to pull out one of the things we decided to implement as a result of this. Item obscurity: being able to determine whether an item is obscured, or not. The idea is that any […]

Read More
Get started today with Qt Download now