Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Toolbar icons not showing up
QtWS25 Last Chance

Toolbar icons not showing up

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 8.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Indrajeet
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

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

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • I Offline
          I Offline
          Indrajeet
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              giesbert
              wrote on last edited by
              #6

              [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

              Nokia Certified Qt Specialist.
              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved