this is what you need http://qt-project.org/doc/qt-4.8/qtb...ing-properties look at second example