Compiling Qt with Clang
I’m happy to report that as of Qt revision 15f52e00 and Clang revision 116737 you’re now able to a complete build of Qt with Clang on both Linux and Mac, including support for precompiled headers....
View ArticleMoving code around
In the past I have blogged about some highly technical subjects, like Binary compatibility, Calling convention, Memory ordering semantics and the effect of one single volatile in optimisation. By the...
View ArticleMoving code around more easily
Yesterday I wrote about relocations and I promised a second part. So here it is. And thanks for the comments everyone. We explored yesterday what it takes for loading an executable into memory and I...
View ArticleTouching the X11
There was no easy way to make use of touch- input devices on Linux with Qt. Up until now. On a recent meeting with other people interested in getting touch (and here we are also talking about touch...
View ArticleAlien widgets on Mac
Up till now, every widget in Qt/Mac has been backed by its own NSView. This means that Qt keeps a parent-child hierarchy of views in Cocoa that more or less mirrors the hierarchy of widgets found in...
View ArticleHint, hint, nudge, nudge, say no more!
At the time of writing, the task with the most votes in Qt’s bug tracker is the somewhat vaguely named umbrella task “Allow better font rendering for projects like Koffice”. The background for the task...
View ArticleQStrings and Unicode — optimising QString::fromUtf8
Other blogs in this series: http://labs.qt.nokia.com/2010/08/24/improving-the-rendering-performance-with-more-simd/ Improving the string performance with more SIMD (or not) Related: String Theory Last...
View ArticleOn UTF-8, Latin 1 and charsets
Yesteday, I blogged about my experiments trying to determine the feasability of replacing the default Latin 1 codec in QString with UTF-8. In fact, the text I had for the blog yesterday was much...
View ArticleQt hidden gems
As it happens to me usually, talking on IRC revealed another interesting topic to talk about. One developer was asking a question why part of his application window suddenly became blank after the...
View ArticleQt Creator 2.2 released
We are happy to announce the release of Qt Creator 2.2. Even if this release is following the previous release after not even ten weeks it contains a whole lot of new features as well as bug fixes and...
View ArticleC++0x in Qt
While many are so enthusiastic about QML and javascript technology, a few of us still code in C++ ;-). C++ is about to get an upgrade: C++11 (formely known as C++0x). The final draft was aproved last...
View ArticleString concatenation with QStringBuilder
QString and QByteArray comes with very handy operator+ which allows you to write stuff like this: QString directory = /*...*/, name = /*...*/; QString dataFile = directory + QLatin1Char('/') + name +...
View ArticleQt Creator editor news
While Qt Creator 2.3.0 was only released recently, we’ve already been busy working on new features and bug fixes in the master branch for some time now. There have been a few interesting developments...
View ArticleChasing the raspberry pi dragon: OpenGL ES2 accelerated Qt PI
The raspberry pi initiative is very compelling and (forgive me for the hype) just got even more compelling now that we have Qt 5 running with full acceleration on the target. A tagline of “An ARM Linux...
View ArticleQt Creator and Clang
As mentioned in the recent editor news blog post, we have been working on integrating Clang as a replacement for our current C++ code-model in Qt Creator. While we are still in an early stage, we feel...
View ArticleRPATH and RUNPATH
The DT_RPATH tag is commonly set in executables that depend on libraries that can’t be found in the default locations. For instance Qt Creator comes with its own copy of the Qt libraries and has an...
View ArticleQt 5, C++ and Qt Widgets
We have seen the many questions and the concerns raised about our commitment to C++ and QWidget in Qt 5. I thought now would be a good time to address some of these concerns in this post. The post on...
View ArticleChanges to the Meta-Object System in Qt 5
There are changes to the meta object-system in Qt 5, both under the hood and on the API side. Some of the changes are source incompatible with Qt 4. In this blog I’ll describe those changes and how to...
View ArticleHelp needed
So, we have the Qt 5 beta out! The next steps now are to polish it to make the Qt 5.0.0 release as impressive as possible. One big, pending task we’ve identified is making sure the class reference...
View ArticleQt Support #28 – Creating a toolbar widget that is displayed with the context...
You have probably seen applications that have a toolbar shown with a context menu. The toolbar enables the fast use of selected set of actions. Let’s take a look how you can create such a toolbar...
View Article