PDA

View Full Version : Trolltech example - getting rid of icons?



teele
26th February 2009, 17:57
I'm studying Trolltech's mainwindow example (or application example)

http://doc.trolltech.com/4.3/mainwindows-application.html

The code uses resources and .png images, which i don't have and which i don't need.

How should i modify the code so that it compiles without the images. I just would like to get the window without the tool bar at this stage.

teele

teele
26th February 2009, 18:59
I reply to myself.

The clue was to change the QAction constructor calls so that they do not need icons. This could be done just by commenting the first parameter out in the parameter list.

Create tool bar functions should be commented out.

In main.cpp the Q_INIT_RESOURCE(application); needed to be commented out. In addition, application.qrc was renamed into äö#¤.(mo.

As a result, the code compiled and runs fine, without tool bar.

teele