ryanmelt / qtbindings

An easy to install gem version of the Ruby bindings to Qt
http://github.com/ryanmelt/qtbindings
Other
340 stars 63 forks source link

Not rendering jpg and ico #105

Closed kochd closed 9 years ago

kochd commented 9 years ago

Hey first of all: Thanks for this great project !

I dont know if this is realy an issue because i am new this the gem:

qtbindings (4.8.6.0 x86-mingw32) as fetched by ruby 2.0.0 is not rendering jpg and gif image formats while png and gif is just fine. plugins/imageformats seams to provide the required dlls.

Tested with Qt::SystemTrayIcon and Qt::WebView

Reproduce:

require 'Qt'
require 'qtwebkit'

Qt::Application.new(ARGV) do
  Qt::WebView.new do
    self.load Qt::Url.new('http://www.google.de/imghp?q=test')
    show
  end
  exec
end
ryanmelt commented 9 years ago

From the README:

To use Qt plugins (Reading jpgs, etc) on Windows, you should add this line after creating your Qt::Application.

Qt::Application.instance.addLibraryPath(Qt::PLUGIN_PATH)