Published Friday October 28th, 2011 | 6 Comments on RPATH and RUNPATH
Posted in C++ | Tags: , , , , , , , ,

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 rpath to the directory that contains them. It’s also useful when you build your own version of Qt without […]

Read More

Chasing the raspberry pi dragon: OpenGL ES2 accelerated Qt PI

Published Monday October 3rd, 2011 | 18 Comments on Chasing the raspberry pi dragon: OpenGL ES2 accelerated Qt PI
Posted in C++, Embedded, Kinetic, Lighthouse, OpenGL, Performance, Qt Quick

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 box for $25. Take a byte!” sums it up rather nicely and should get many a geeks pulse racing. […]

Read More

Qt Creator editor news

Published Wednesday September 28th, 2011 | 18 Comments on Qt Creator editor news
Posted in C++, Qt Quick, QtCreator | Tags: , , ,

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 in the C++ and QML/JS editors that I’d like to share with you. C++ We’re currently prototyping what would happen if […]

Read More

String concatenation with QStringBuilder

Published Monday June 13th, 2011 | 14 Comments on String concatenation with QStringBuilder
Posted in C++, Performance, Qt

QString and QByteArray comes with very handy operator+ which allows you to write stuff like this: QString directory = /*…*/, name = /*…*/; QString dataFile = directory + QLatin1Char(‘/’) + name + QLatin1String(“.dat”); Very convenient. The QLatin1Char and QLatin1String are just there for correctness, you could omit those while writing your application. We have something […]

Read More

C++0x in Qt

Published Thursday May 26th, 2011 | 30 Comments on C++0x in Qt
Posted in C++, KDE, News, 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 march in the C++ standard commitee, and the final specification is expected to be published this summer. If […]

Read More

Qt hidden gems

Published Friday April 1st, 2011 | 28 Comments on Qt hidden gems
Posted in C++, News, Qt, QtCreator, Rants

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 mouse entered the window. Even though it’s not really my area of expertise, I guessed it was related to painting, so after […]

Read More

QStrings and Unicode — optimising QString::fromUtf8

Published Friday March 25th, 2011 | 15 Comments on QStrings and Unicode — optimising QString::fromUtf8
Posted in C++, Performance, Qt

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 time, I attacked the problem of the conversion from Latin 1 (ISO-8859-1) to UTF-16 in QStrings. Most character literals in C++ source code are actually in ASCII, which is a subset of Latin 1, which in […]

Read More
Get started today with Qt Download now