PDA

View Full Version : Simple example with painting



Morea
18th March 2006, 07:13
Hi.
I would really like to find simple examples with drawing in Qt.
For example, how do I write a program that has only one button in the MainWidget and then draws 3 random lines on the MainWidget when the button is pressed?

high_flyer
18th March 2006, 09:05
did you check the qt examples?

zlatko
18th March 2006, 13:15
...and QPainter::drawLine() ;)