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
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to