// This code is working fine for underlay and overlay with a third party graphics in middle layer as i am passing window id
/************Underlay **********************/
paint.
setPen(QColor(255,
255,
0,
100));
paint.
setBrush(QColor(255,
255,
0,
100));
paint.drawEllipse(100,150,200,200);
/************Overlay **********************/
paint.
setPen(QColor(255,
0,
0,
255));
paint.
setBrush(QColor(255,
0,
0,
255));
paint.drawEllipse(200,150,200,200);
// This code is working fine for underlay and overlay with a third party graphics in middle layer as i am passing window id
QPainter paint(this);
/************Underlay **********************/
paint.setPen(QColor(255,255,0,100));
paint.setBrush(QColor(255,255,0,100));
paint.drawEllipse(100,150,200,200);
/************Overlay **********************/
paint.setPen(QColor(255,0,0,255));
paint.setBrush(QColor(255,0,0,255));
paint.drawEllipse(200,150,200,200);
To copy to clipboard, switch view to plain text mode
Bookmarks