Results 1 to 4 of 4

Thread: Qt displays only png, not jpeg/jpg

  1. #1
    Join Date
    Mar 2013
    Location
    Hyderabad,Bangalore,India
    Posts
    70
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt displays only png, not jpeg/jpg

    I have an application where i need to place some images on QPushBUttons.
    i have different icons such as, jpeg, jpg and png.

    Initially( a month ago) every thing was ok, and i got to display all images on buttons.
    today i run the same application , but i can only see png images, i cannot see jpeg/jpg images on buttons

    is there any dependency for displaying jpegs.


    Regards,

  2. #2
    Join Date
    Feb 2013
    Location
    India
    Posts
    153
    Thanks
    27
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qt displays only png, not jpeg/jpg

    Hei,

    PNG, JPG, AND JPEG images are supported by Qt if it link to their plugins.

    You can check the image plugins in your Qt installed folder. C:\QtSDK\Desktop\Qt\4.8.1\mingw\plugins\imageforma ts

    If your app successfully link to that libraries then check if the app uses the valid path for image files.

    CHEERS

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt displays only png, not jpeg/jpg

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Mar 2013
    Location
    Hyderabad,Bangalore,India
    Posts
    70
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt displays only png, not jpeg/jpg

    Thanks a lot, i will look into it.

Similar Threads

  1. QMovie displays only last frame
    By dbrayford in forum Qt Programming
    Replies: 8
    Last Post: 2nd July 2012, 17:38
  2. QGL: Tearing in Fullscreenmode with two displays
    By beetleskin in forum Qt Programming
    Replies: 0
    Last Post: 18th January 2011, 17:16
  3. Qt displays large size jpg
    By omegas in forum Qt Programming
    Replies: 14
    Last Post: 22nd April 2010, 05:07
  4. Multiple displays on X11
    By alisami in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2009, 17:25
  5. QMenu always displays icons aty 16x16 px
    By ghassett in forum Qt Programming
    Replies: 3
    Last Post: 21st May 2009, 18:41

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.