Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi , i build my own database and i have draw a chart for my database , i add a widget it's QgraphicsView widget PyQt4 , i need now to show my chart on this widget how i can do something like this ??
Posted

1 solution

<pre>scane = QtGui.QGraphicsScene()
pic = QtGui.QPixmap("testbar.png")
scane.addPixmap(pic)
self.graphicsView.setScene(scane)
self.graphicsView.show()</pre>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900