[Qt-jambi-interest] open and show image from .jpg file
Dawid Sip
vad at poczta.onet.pl
Fri Mar 14 17:36:20 CET 2008
Hi,
I cant seem to find any good snippets for QT Jambi, otherwise I wouldnt
probably have to ask this, but i have problems with simple things like
to show an image in some QObject instance like QLabel. The examples and
demos are not entirely documented so i also cant find answers there.
What I want is to show an image which i open using string provided by
the OpenFile dialog.
This:
"ui.label.setPixmap(QPixmap.grabWindow(QApplication.desktop().winId()));"
works ok and i get a screenshot in the labels place,
but this: "ui.label.setPixmap(new QPixmap(fileName));"
wont show anything.
Could someone point me to some easy snippets or forum, or simply explain
how it should work?
Thans in advance.
Dave
More information about the Qt-jambi-interest
mailing list