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

  • Home
  • SEARCH
  • 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 7088429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:47:59+00:00 2026-05-28T07:47:59+00:00

I have an application written with pyside where a user can load an image,

  • 0

I have an application written with pyside where a user can load an image, via either drag&drop or through a dialog box, and the image name and a thumbnail will show up in a QTreeWidget. When I run normally (within Eclipse) everything works fine. When I package the project with py2exe it no longer displays the image. I assume it is because py2exe is not finding the image libraries used by pyside. I do not know enough about pyside and py2exe to know if this is the actual issue. After doing some searches I found a lot of information on people not able to display images that are apart of the application (icons) which I have already resolved (Edit – These were png files which is why they showed up after I bundled the images in the py2exe step).

I am using QPixMap to load the thumbnail image into a QIcon. I then add the icon to a QTreeWidgetItem.

icon = QIcon()
icon.addPixmap(QPixmap(url),QIcon.Normal,QIcon.Off)
item = QTreeWidgetItem([...])
item.setIcon(0,icon)
  • 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-05-28T07:48:00+00:00Added an answer on May 28, 2026 at 7:48 am

    Im assuming you are using probably a jpeg and not png. Png will work natively but jpeg requires an image plugin to be properly packaged into your exe

    Enabling JPEG support for QImage in py2exe-compiled Python scripts?

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

Sidebar

Related Questions

I have an application written in VB.NET that interacts with Excel via interop. I
I have an application written in .NET 1.1 that calls XmlDocument.Load on a URL.
I have an application written in HTML5 that uses localstorage. The user should be
I have Application written with GWT 1.7. I have one page where I upload
I have application written in Visual Studio 2008 which I deploy with ClickOnce to
I have an application written in java, and I want to add a flash
I have an application written in Delphi 7 which does not require an admin
I have an application written in C#.Net (Framework 2.0 if it matters). It calls
We have an application written in C#, using .NET Framework 3.0 or 3.5 or
I have web application written in java using Eclipse. It has just one servlet

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.