Toolbar icons not showing up



  • Hi All

    I use following configuration

    1.Windows 7 OS
    2.VisualStudio 10.0
    3.QT 4.7.3
    4.QTAddIn 1.1.9

    I have created QApplication project & added few toolbar icons.
    When i build my project in release mode & run on my same PC all the toolbar icons are displayed.
    But when i try to run my App on some other PC toolbar icons will not display.

    I tried to create .pro file from visualstudio QTAddIn and in .pro file
    i added following line
    RESOURCES = teststatusbar.qrc

    But even still when i run my app on PC other than PC in which App is created icons are not displayed.

    How to resolve this?



  • This question is frequently asked. Things to check:

    Do you actually use the icons from the resource file, or do you use the ones from the file system on your dev machine?

    Did you distribute the right file IO plugin to load the file type?



  • How do you deploy your application?
    do you include the imageformat plugins?



  • Hi

    I have .ico files which i added to the toolbar through QT designer.

    Andre when i add these .ico files through designer and build it in .qrc file i see those file names with relative path.

    Gerolf I kept all resource files & my .exe & other dependent .dlls in one folder & from that folder i tried to run my application on some other PC's.



  • Do you mean that you first added the icons to your resource file, and then selected them in designer from that resource file to put on your tool buttons?

    Please show the exact list of files and directories in your appliction on the other PC.



  • [quote author="Rajveer" date="1318908165"]Hi
    Gerolf I kept all resource files & my .exe & other dependent .dlls in one folder & from that folder i tried to run my application on some other PC's.[/quote]

    Then you should read the pages regarding deployment of Qt and the plugins.
    I suggest, instead of using ico files, use png files as those do not need image format plugins.

    See:

    "Qt library cross dependencies":http://developer.qt.nokia.com/wiki/Qt_library_cross_dependencies

    "Deploying an Application on Windows":http://doc.qt.nokia.com/stable/deployment-windows.html

    "QPixmap load fails on WinXP SP3":http://developer.qt.nokia.com/forums/viewthread/2927

    "Qt plugins":http://doc.trolltech.com/latest/deployment-windows.html#qt-plugins


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.