New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add jpg support for Qt::Pixmap on Windows #32
Comments
Workaround:
app = Qt::Application.new ARGV
app.add_library_path('./plugins') OR app = Qt::Application.new ARGV
app.add_library_path('path/to/gems/qtbindings/bin/plugins') |
Update to previous comment app.add_library_path(Gem::Specification.find_by_name("qtbindings").gem_dir + '/bin/plugins') |
The good news is that the current QtBindings built using the QT 4.8 works out of the box. When I run your program I get this for supported_image_formats: kanfet thanks for the workaround. |
Since I am using the version from rubygems.org I am still using 4.6, but I am looking forward to the new version. @ kanfet: Thanks a lot, your solution works like a charm. |
Ryan just pushed the new 4.8.3.0 qtbindings gem. Let me know if this fixes your problem. |
On the system mentioned on top the behaviour is still the same, even with qtbindings 4.8.3.0 x86-mingw32. But for me including the plugins path works fine. |
JPG is still not supported out-of-box. |
After creating your application, you just need to add this line: Qt::Application.instance.addLibraryPath(Qt::PLUGIN_PATH) I will update the README. |
Still not working, even after hardcoding the plugin path... JPEG SHOULD BE OUT OF THE BOX. No... plugins.. . these are known to be a pain in the ass! (for example: "windows plugin"... ahhhh) |
Creating a QPixmap with a jpg file does not work on Windows and results
in a null pixmap (on Linux it works just fine).
System:
The text was updated successfully, but these errors were encountered: