Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9207117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:19:11+00:00 2026-06-18T00:19:11+00:00

I have a app developed in PyQt4. It has icons set for windows and

  • 0

I have a app developed in PyQt4.

It has icons set for windows and QMenus.

All client systems have installed python. And PyQt4 is loaded from network location (\\system_xyz\PyQt4).

The app works fine in developer systems with icons loaded properly.
But when the same script is run on clients, app works but icons are not loaded.

In my app i used Qsql drivers also. It too had the same issue. works at developer system but not at client system.

I could able to overcome this sql driver issue by adding sql plugin path to the app like below

SQLDriverPath = (r'\\system_xyz\PyQt4\plugins\sqldrivers')
QtGui.QApplication.addLibraryPath(SQLDriverPath)

I came to understand that pyqt4 needs qico4.dll to read .ico files.
so i added the imageformats path to the app. but it did not work.

ImageDriverPath = (r'\\system_xyz\PyQt4\plugins\imageformats')
QtGui.QApplication.addLibraryPath(ImageDriverPath)

Can any one suggest me a correct approach to solve my issue loading .ico in PyQt app from network

MY UPDATES

i did following to list the supported image formats.

import sys

sys.path.append(r'r'\\system_xyz')

from PyQt4 import QtGui

for imageType in QtGui.QImageReader.supportedImageFormats():
    print imageType

OUTPUT

bmp
pbm
pgm
png
ppm
xbm
xpm

I tried to list as above after adding imageformats, The OP is the same
even tried after creating QtGui,QApplication(). Same result no change.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:19:12+00:00Added an answer on June 18, 2026 at 12:19 am

    You can set the paths in qt.conf file and place this file in the location of your executable file of your application.

    Accessing PyQt4 from Network Location say \somesystem\Share\PyQt4

    you can find a qt.conf file in \\somesystem\Share\PyQt4 copy it and paste the .conf file in the location of your executable file of your application.

    edit the below lines in qt.conf

    [Paths]
    Prefix = //somesystem/Share/PyQt4
    Binaries = //somesystem/Share/PyQt4
    

    Everything works fine, even sqldrivers will be loaded. No Need of using app.addLibraryPath
    You can also include this file in your setup so that it will be automatically installed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an app that in testing has worked fine but when it
My company has a desktop app originally developed for Windows XP. The original programmer
I have developed an app that runs as a windows service and regularly does
I have developed an app that has work successfully for the last 4 months
I have musical app developed for OS X, which has following features, Play multiple
I have an app that was developed for Windows but runs fine on MacOS
Supposing I have a windows app developed based on C#. I want to ensure
I have developed an app in which I display data in Gridview . All
I have developed an app running successfully on all the versions of android phones
I have a Win32 app developed in C++ Builder XE, which has worked great

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.