Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src_gui_painting_qbrush.cpp

//! [0]
QPainter painter(this);

painter.setBrush(Qt::cyan);
painter.setPen(Qt::darkCyan);
painter.drawRect(0, 0, 100,100);

painter.setBrush(Qt::NoBrush);
painter.setPen(Qt::darkGreen);
painter.drawRect(40, 40, 100, 100);
//! [0]

Generated by  Doxygen 1.6.0   Back to index