Results 1 to 5 of 5

Thread: Facing problem with tool bar icons

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

    Default Facing problem with tool bar icons

    Hi ,

    I am facing problem with tool bar icons. My problem is, in src dir I have all source codes and image directory which contains all image. It also contains gui.qrc file. bin directory contains the executable file. When I am executing binary file from source directory, all icons are coming properly. But executing the binary file any place other than source dir, icons are not coming. In qrc file images are specified by relative path. Probably it will work If I am specifying absolute path for icons in qrc file. Is there any way to provide absolute path by some environment variable. I tried with environment variable that but it is not taking environment variable.

    Thanks
    Jnana

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Facing problem with tool bar icons

    The path where you start your application from shouldn't have any meaning here. If you use qrc approach, you embed those images directly into your executable. Are you sure you are actualy using those images from the resource file in the toolbar? Do you use Designer? If so, make sure you use the "specify resource" button when you choose icons for your actions. If you are not using Designer, make sure your image paths begin with a colon.

  3. #3
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Facing problem with tool bar icons

    Hi ,

    I used designer. How should I use "specify resource" for each action?

    Thanks
    Jnana

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Facing problem with tool bar icons

    When selecting an icon for an action, there is a radio button on top of the "Find Icon" dialog.
    J-P Nurmi

  5. #5
    Join Date
    Feb 2006
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Facing problem with tool bar icons

    Hi ,

    I found how to specify resource file.

    Thanks
    Jnana

Similar Threads

  1. i am facing a problem with QTextEdit!!!
    By mismael85 in forum Qt Programming
    Replies: 9
    Last Post: 10th March 2008, 19:06
  2. Problem with unified tool bar on Mac OS X
    By m_e in forum Qt Programming
    Replies: 1
    Last Post: 7th August 2007, 12:21
  3. problem with Tool button n Layout
    By arjunasd in forum Qt Tools
    Replies: 11
    Last Post: 24th July 2007, 22:14
  4. Facing problem with Q3Canvas
    By jnana in forum Qt Programming
    Replies: 3
    Last Post: 6th May 2006, 08:00
  5. Facing problem with qt-4.1 designer
    By jnana in forum Qt Tools
    Replies: 4
    Last Post: 8th March 2006, 19:16

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.