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

src.gui.painting.qcolor.cpp

//! [0]
    // Specify semi-transparent red
    painter.setBrush(QColor(255, 0, 0, 127));
    painter.drawRect(0, 0, width()/2, height());

    // Specify semi-transparent blue
    painter.setBrush(QColor(0, 0, 255, 127));
    painter.drawRect(0, 0, width(), height()/2);
//! [0]



Generated by  Doxygen 1.6.0   Back to index