Search Results for:

Lorn Potter

vegetarians and qtopia

Published Friday December 15th, 2006 | 1 Comment on vegetarians and qtopia
Posted in Qt, Qtopia

“A British study of more them 8000 men and women aged 30 whose IQs had been measured when they were 10, showed that the higher the IQ, the greater the odds of being a vegetarian.” “http://www.news.com.au/story/0,23599,20931861-1702,00.html What does this have to do with Qtopia? Only that in our Brissie office, there are at least 5 […]

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

Has anyone seen QDirIterator?

Published Thursday December 14th, 2006 | 2 Comments on Has anyone seen QDirIterator?
Posted in KDE, Qt, Qtopia

Recently QDirIterator showed up in the Qt 4.3 snapshots. Doesn’t have that many bells and whistles, but it’s a pretty useful tool. Here’s how to use it: QDirIterator it(“testDir/”); while (it.hasNext()) { qDebug() < < it.next(); // "testDir/." // "testDir/.." // "testDir/directory" // "testDir/file.txt" // "testDir/otherFile.txt" // "testDir/otherDirectory" // "testDir/symlink" // ... } It provides […]

Read More
Lorn Potter

Qtopia Core plugins

Published Sunday December 10th, 2006 | 2 Comments on Qtopia Core plugins
Posted in Qt, Qtopia

One of the many improvements to Qtopia Core over Qt Embedded 2, is that it has support for plugins, specifically keyboard and mouse plugins. So we no longer need to patch Qt for device specific keyboard and mouse (touchscreen) handlers. Woot! http://doc.trolltech.com/4.2/qwskeyboardhandler.html http://doc.trolltech.com/4.2/qwsmousehandler.html And, Qtopia has extended this a bit in the form of device […]

Read More

Surfing with the Greenphone

Published Friday December 8th, 2006 | 2 Comments on Surfing with the Greenphone
Posted in Qt

To test some Software on the Greenphone, it might be handy to connect to the internet using the USB cable. To achieve this, connect the Greenphone to your machine and run the following script on the Greenphone SDK (as root user): #!/bin/sh # the external interface EXTIF=eth0 # the Greenphone interface GREENIF=eth1 # enable forwarding […]

Read More

Greenphone without VMware

Published Thursday December 7th, 2006 | Comments Off on Greenphone without VMware
Posted in Qt

The Greenphone SDK comes as a pre-installed VMware image with a ready-to-go development environment which runs on Linux, Windows and soon on the Intel Macs as well. If you already have a GNU/Linux box, you might not want to use the image, though, because you’ll lose all those little macros and settings that make your […]

Read More

System tray update

Published Wednesday December 6th, 2006 | 1 Comment on System tray update
Posted in KDE, Qt

Thanks to some great work by Sam Magnuson, QSystemTrayIcon::showMessage() will support Growl on the mac in Qt 4.3. With this change, supportsMessages() no longer returns false on any of our desktop platforms. Here’s the obligatory screenshot: Note that the documentation for showMessage() states that messages are not guaranteed to be displayed. As a result, we […]

Read More

x11 font fun

Published Friday December 1st, 2006 | 4 Comments on x11 font fun
Posted in Qt

After essentially moving around some code (trying to avoid the word ‘refactoring’ ๐Ÿ™‚ we managed to fix a little annoyance with text drawing that is now also in the X11 4.3 snapshots: Text that is drawn onto QImage objects is now rendered using freetype instead of plain paths, which looks so much better. And on […]

Read More
Get started today with Qt Download now