Results 1 to 3 of 3

Thread: QTextBrowser doesn't display JPG's

  1. #1
    Join Date
    Sep 2011
    Posts
    21
    Qt products
    Platforms
    Unix/X11 Windows

    Default QTextBrowser doesn't display JPG's

    This is a strange one...

    I have a QTextBrowser in a pyQT (Python 2.7.2) application.

    It works great and displays the .jpg fine on the development system.

    However, when running in portable mode everything works except the display of the .jpg inside the QTextbrowser.

    I suspect there is a Windows DLL somewhere that is missing.

    Does anyone have a clue what this DLL might be.

    We are trying not to have to install Python, pyQT and pyVISA on the target system to avoid Information Assurance issues.

    Any ideas would be greatly appreciated.

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QTextBrowser doesn't display JPG's

    You are missing the jpeg image plugin. See inside the imageplugins folder inside plugins.

  3. #3
    Join Date
    Sep 2011
    Posts
    21
    Qt products
    Platforms
    Unix/X11 Windows

    Default Re: QTextBrowser doesn't display JPG's

    For some reason, my earlier post this morning didn't take?

    Anyway...

    The jpeg plug-in wasn't missing.

    But, that clue set me on the right path to solve the problem.

    When pyQT is installed it creates to copies of a file qt.conf

    These files are located in your Python root and Lib/site-packages/PyQt4/

    They can be edited with Notepad and need to point to the actual location of the PyQt4 files.

    In my case the path became: /App/Lib/site-packages/PyQt4

    /App is a copy of my entire Python 2-7-2 install folder.

    Hope this helps anyone else trying to run PyQy Portable...

Similar Threads

  1. QTextBrowser setSearchPaths doesn't work
    By poporacer in forum Newbie
    Replies: 16
    Last Post: 7th April 2012, 17:19
  2. QTextBrowser does not display CSS as QwebView?
    By mismael85 in forum Qt Programming
    Replies: 1
    Last Post: 6th March 2011, 08:25
  3. Replies: 0
    Last Post: 12th August 2010, 16:05
  4. How to display images in QTextBrowser ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 12th January 2007, 08:58
  5. QTextBrowser display logo ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 11th January 2007, 15:53

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.