Results 1 to 2 of 2

Thread: Trolltech example - getting rid of icons?

  1. #1
    Join Date
    Feb 2009
    Posts
    13
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Trolltech example - getting rid of icons?

    I'm studying Trolltech's mainwindow example (or application example)

    http://doc.trolltech.com/4.3/mainwin...plication.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

  2. #2
    Join Date
    Feb 2009
    Posts
    13
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Trolltech example - getting rid of icons?

    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

Similar Threads

  1. no icons on the another machine (after installation)
    By roxton in forum Installation and Deployment
    Replies: 2
    Last Post: 4th July 2008, 17:24
  2. Nokia to acquire Trolltech
    By GreyGeek in forum General Discussion
    Replies: 14
    Last Post: 18th June 2008, 19:58
  3. QIcon Icons are not visible
    By harakiri in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2007, 19:11
  4. Suppressing menu icons on the Mac
    By Brandybuck in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2006, 19:00
  5. Facing problem with tool bar icons
    By jnana in forum Qt Programming
    Replies: 4
    Last Post: 20th April 2006, 08:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.