Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt Embedded webkit can not display jpeg and gif?
Forum Updated to NodeBB v4.3 + New Features

Qt Embedded webkit can not display jpeg and gif?

Scheduled Pinned Locked Moved Qt WebKit
5 Posts 3 Posters 5.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adewang
    wrote on last edited by
    #1

    Hi,

    I am cross-compiling Qt Embedded 4.7.3, but the demo browser can not display jpeg and gif, only pngs can work.
    i have added the following config options:
    -qt-gif, -qt-libjpeg.

    Could somebody explain me what are the requirements to get jpeg and gif with
    Qt/WebKit, and maybe how it is supposed to work?s

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      Never tried embedded but I think that like on desktop one you need plugins for imageformats.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adewang
        wrote on last edited by
        #3

        i have copied the whole plugins directory to the application's directory~
        and write a qt.conf like as follow:
        [Paths]
        Prefix = ./
        Libraries = lib
        Plugins = plugins

        still can not display jpeg.
        do i need to add something to the app's .pro file when building it?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          Nope. Nothing is needed in .pro. Maybe something with linking specifics at embedded systems, not sure.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            privet
            wrote on last edited by
            #5
            1. you have to copy the plugins directory to the target device
              (as you correctly described)

            2. you have to add a new pluginspath to your qApp->addLibraryPath(qApp->applicationDirPath()+"/plugins")

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved