PDA

View Full Version : how to create circular dialog



Askar
24th April 2012, 12:42
Dear Friends,
Is it possible to create circular dialog in Qt, if so, how can i create it

qlands
24th April 2012, 18:34
Place this code in the constructor of the your dialog.



int side = qMin(width(), height());
QRegion maskedRegion(width() / 2 - side / 2, height() / 2 - side / 2, side,
side, QRegion::Ellipse);
setMask(maskedRegion);