hey guys;

in my application i have Listwidegt and Qgraphics view beside to each other
in the interface, my intension is after i list my photos in the listwidget,
i want that whenever i click on the photo on listwidget it will be displayed
on the graphics view...

Any idea on how to do that?

here's the code of inserting photos into Listwidegt

files = QFileDialog.getOpenFileNames(self, self.trUtf8("Add documentation"),
QString("/home"), self.trUtf8("Images (*.png *.tiff *.jpg)")) 
                for file_ in files:
                        data = ""
                        f = open(file_)
                        #data = file.read()
                        self.listWidget.addItem(file_)

here's a screen shot of my inquiry 
http://www.nabble.com/file/p22433529/Screenshot-MainWindow-1.png 
-- 
View this message in context: 
http://www.nabble.com/linking-listwidget-with-Qgraphicsview-tp22433529p22433529.html
Sent from the PyQt mailing list archive at Nabble.com.

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to