Results 1 to 12 of 12

Thread: Deploying Qt Application on Windows - Load JPG Images Problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    10
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Deploying Qt Application on Windows - Load JPG Images Problem

    Hi folks,

    Basic Description:
    I made Qt application that loads BMP, JPG, PNG... files. It works perfectly on PC with installed QtSDK.

    Problem:
    When I deploy it to PC without installed QtSDK (by deploying I mean only copying exe file and some dll files to the same folder) then problems occure.
    The application can still load BMP and PNG files, but can not load JPG files.

    Code:
    Qt Code:
    1. void Widget::OpenImage()
    2. {
    3. QString fileName = QFileDialog::getOpenFileName(this, tr("Open File"), QDir::currentPath());
    4.  
    5. if (!fileName.isEmpty())
    6. {
    7. QPixmap pixmapP(fileName); //HERE IS THE PROBLEM !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    8.  
    9. if (pixmapP.isNull())
    10. {
    11. QMessageBox::information(this, tr("Image Viewer"), tr("Cannot load %1.").arg(fileName));
    12. return;
    13. }
    14.  
    15. m_pixmapImage = pixmapP;
    16. }
    17. }
    To copy to clipboard, switch view to plain text mode 

    Question:
    Can anyone give me some directions how to deploy Qt application that loads JPG files?
    I visited http://doc.qt.nokia.com/latest/deployment-windows.html but it wasn't helpful for me (configure command not recognized in Qt command prompt).

    Notes:
    I have attached my complete source code and print screens that show the structure of my "deploy" folder
    Attached Images Attached Images
    Attached Files Attached Files

Similar Threads

  1. Problem deploying qt application using qsqlite on Windows XP/7
    By anoraxis in forum Installation and Deployment
    Replies: 4
    Last Post: 8th April 2011, 13:18
  2. Problem deploying a two library + executable application to windows
    By joseprl89 in forum Installation and Deployment
    Replies: 8
    Last Post: 15th March 2011, 20:52
  3. Deploying an application on windows
    By dmcr in forum Installation and Deployment
    Replies: 1
    Last Post: 23rd September 2009, 09:23
  4. problem with deploying static application in windows
    By remy06 in forum Installation and Deployment
    Replies: 3
    Last Post: 2nd June 2009, 06:46
  5. Deploying debug Qt application - failed to load ODBC driver
    By sureshbabu in forum Installation and Deployment
    Replies: 1
    Last Post: 1st November 2007, 12:35

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.