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 6358353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:21:26+00:00 2026-05-24T23:21:26+00:00

A user installed our application to a server PC, shared the install directory as

  • 0

A user installed our application to a server PC, shared the install directory as network drive Z: and now opens the app from different client PCs all over his shop. Everything works fine except for a naggling bug on one of the PCs:

On the Problem PC, the app can load .jpg files for inventory items just fine and show the corresponding QPixmap in a QLabel. When the inventory item he is currently viewing does not yet have an image assigned to it, he can open a file dialog, choose an image and display that correctly. However, saving the (new/changed) QPixmap as a .jpg stores it to disc as a series of colored vertical lines on a black background:

(this should actually be some jewellery)

Saving is done via QPixmap::save( const QString & fileName, ...) with the file name set programmatically to “<some_id>.jpg” to designate the desired file format. Returns true, but the resulting file looks like modern art.

However, saving images works fine on the server and the other clients.

Both the server and the Problem PC run Windows XP at an identical patch level.

Process Explorer shows identical DLLs for the app process on server and Problem PC except for the Problem PC using dnsapi.dll, which the server doesn’t.

Process Explorer also shows that on both server and client the Qt DLL used to deal with JPEGs is
\Device\LanmanRedirector\<server>\<app>\plugins\imageformats\qjpeg4.dll, and a drive-wide search on the Problem PC for qjpeg*.dll came up empty, so the app should use the same JPEG handling code on both computers.

Any suggestions?

(EDIT: added OS and patch status to problem description.)

EDIT: Solution: on the problem machine we had a 16 bpp colour depth. Setting that to 32 bpp solved our problem instantly. I also replaced
_pm.save( sDestFileName )
with
_pm.toImage().convertToFormat( QImage::Format_RGB32 ).save( sDestFileName )
so that we won’t run into this on every old client PC running less than 32 bpp.

  • 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-24T23:21:27+00:00Added an answer on May 24, 2026 at 11:21 pm

    Here are a few things to try to isolate the problem:

    • Copy qjpeg4.dll to the client’s working directory
    • Is the image corrupted when saving as PNG or GIF?
    • Convert your data to a QImage and work from that.
    • Consider the byte format (I usually use ARGB32 because it is int-aligned)
    • To test where the problem occurs, you might try converting the image to JPG format then viewing it in a debugging window.

    The function below is from an OSS program I wrote. You might try using it then displaying the contents of the QImage referred to in the second parameter:

    //! Saves image with JPEG compression in given quality (0 - 100, Qt's scale)
    //! @param[in] in The lossless input image
    //! @param[out] out The image to save to using JPEG compression
    //! @param quality The quality level (0 - 100, 0 the most compressed)
    //! @return The size of the saved image
    quint32 Window::imageSaveLossy(QImage &in, QImage &out, quint8 quality)
    {
            quint32 retval;
            QByteArray ba;
            QBuffer buffer(&ba);
            buffer.open(QIODevice::WriteOnly);
    
            QImage temp(in.size(), QImage::Format_ARGB32);
            temp.fill(QColor(Qt::white).rgb());
            QPainter painter(&temp);
            painter.drawImage(0, 0, in);
    
            temp.save(&buffer, "JPG", quality);
            out.loadFromData(ba, "JPG");
            retval = (quint32)ba.size();
            buffer.close();
            return retval;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed ASP.NET application with database on our server. ASP.NET application created database
We have a .NET web application installed on our server at the location: C:\Inetpub\fmtool\
Our software has data to store, so it also install MYSQL, a root user
So I installed VisualSVN Server and TortoiseSVN client. And I created a user on
In a situation where a BlackBerry application is installed to a user's device via
We have really strange and inconsistent behavior with Linq-to-SQL here. Our application is installed
Our networks guys installed this patch over the weekend to our single server sharepoint
Scenario: Our install package used to add User DSN. We changed this to install
We are receiving an application from a third party that will eventually be installed
I have a simple console app that clients will install on their server which

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.