How to dim / blur the background dialog?
I have 2 dialogs:
1 - the main dialog
2 - a confirmation dialog (child of the main dialog)
I want to dim / blur the main dialog (and all the components inside it) when the confirmation dialog come up to catch the focus of the user. How can i do that?
ger
Re: How to dim / blur the background dialog?
You can make a class as follows -
just a pseudo code -
Code:
class BlurDialog
{
QPixmap pixmap;
// grab the parent widget into this pixmap, do it in ctor
void paint()
{
// paint the pixmap
}
void show()
{
confirmationDialog.exec();
}
}
Hope this may work :rolleyes:
Re: How to dim / blur the background dialog?
also, if u wanna dim, use setOpacity() of QPainter class when drawing around the background