[Interest] Problem with QPixmap using framebuffer with omapfb. Works with qt 4.x, but dosn’t work using qt 5.x

Georg.Brand at fmc-ag.com Georg.Brand at fmc-ag.com
Mon Jan 20 12:19:20 CET 2014


Hello

As 'SGaist' from qt-project Forum suggested, I will send this Problem to 
this Mailing List:

------------------------------------
Hello
The subject describes the Problem.
Platform is a Debian armel Linux (Wheezy). Using omapfb as display driver 
to the framebuffer.
Hardware is an AM3517.
This code:
—————————— 8< ————————————— 
QPixmap image = QPixmap(“resources/images/foo.png”);
 ui->label->setPixmap(image); // label is of type QLabel
—————————— 8< —————————————
works without any problems with qt 4.8.4 [1]. No matter if i use 
./app -qws (for using linuxfb) 
or 
./app -qws -display directfb (for using directfb [3])
The same code dosen’ t work with qt 5.1.12 nor qt 5.2.0 using directfb.
A call to
./app -platform directfb
doesn’t show the picture. 
A call to
./app -platform linuxfb
shows the picture, but has really bad Performance.
I tried to break it down in the qt’s directfb code. As far as i can see, 
directfb is used to render the png using directfb’s plugin 
‘libidirectfbimageprovider_png.so’. But then there is no call to display 
it on the screen…
As a side node: If i use a css file like this
—————————— 8< —————————————
QRadioButton::indicator::unchecked { 
image: url(resources/images/radiobutton_unchecked.png);
}
—————————— 8< —————————————
the image is rendered using directfb and displayed on the widget.
Does anyone has any hints how to solve this problem?
Bye
Georg
[1]
./configure -v -release -embedded arm -confirm-license -prefix 
/opt/qt-embedded-4.8.4-arm -opensource -shared -no-fast -no-qt3support 
-plugin-sql-sqlite -no-audio-backend -no-javascript-jit -platform 
linux-g++ -xplatform qws/linux-arm-gnueabi-g++ -qt-zlib -qt-libtiff 
-qt-libpng -qt-libmng -qt-libjpeg -no-cups -separate-debug-info -no-dbus 
-little-endian -qt-gfx-directfb -force-pkg-config -openssl -nomake 
examples
[2]
./configure -separate-debug-info -opensource -confirm-license -prefix 
/opt/qt-embedded-5.1.1-arm -no-javascript-jit -no-qml-debug -qt-zlib 
-qt-libpng -qt-libjpeg -qt-xkbcommon -no-cups -no-dbus -xplatform 
linux-arm-gnueabi-g++ -force-pkg-config -directfb -qt-xcb
[3]
system=fbdev
mode=800×600
depth=32
disable-module=ps2mouse
disable-module=keyboard
disable-module=linux_input
graphics-vt
no-vt
no-vt-switching
------------------------------------

Mit freundlichen Grüßen

Georg Brand
Dipl. Informatiker

Fresenius Medical Care Deutschland GmbH
Hafenstraße 9 
97424 Schweinfurt, Germany
T +49 9721 678 673
Georg.Brand at fmc-ag.com
www.fmc-ag.com


Sitz der Gesellschaft/Registered Office: Bad Homburg, Germany
Handelsregister/Commercial Register: AG Bad Homburg, HRB 5748
Geschäftsführer/Chief Executives: Alexandra Dambeck, Roberto Fusté, Dr. 
Emanuele Gatti, Dr. Olaf Schermeier, Eberhard Sieger

Der Inhalt dieser E-Mail sowie sämtliche übermittelten Daten und Anhänge 
sind streng vertraulich. Wenn Sie nicht der vorgesehene Empfänger dieser 
E-Mail sind, bitten wir Sie zu beachten, dass jede Form der Kenntnisnahme, 
Vervielfältigung, Weitergabe oder Veröffentlichung der Inhalte dieser 
E-Mail unzulässig ist. Wir möchten Sie bitten, den Absender telefonisch 
oder per E-Mail zu informieren und diese E-Mail vollständig von Ihrem 
System zu entfernen. 

This e-mail message is intended solely for the use of the addressee and 
may contain legally privileged and confidential information. If you are 
not the intended recipient or his/her representative, please be advised 
that any dissemination, distribution, copying, or the use of this message 
or its attachments is strictly prohibited. If you have received this 
message in error, please notify the sender immediately and please delete 
this message and all attachments from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140120/e718ce4e/attachment.html>


More information about the Interest mailing list