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

src_gui_painting_qregion_unix.cpp

//! [0]
QRegion r1(10, 10, 20, 20);
r1.isNull();                // false
r1.isEmpty();               // false

QRegion r2(40, 40, 20, 20);
QRegion r3;
r3.isNull();                // true
r3.isEmpty();               // true

r3 = r1.intersected(r2);    // r3: intersection of r1 and r2
r3.isNull();                // false
r3.isEmpty();               // true

r3 = r1.united(r2);         // r3: union of r1 and r2
r3.isNull();                // false
r3.isEmpty();               // false
//! [0]

Generated by  Doxygen 1.6.0   Back to index