PDA

View Full Version : How to dim / blur the background dialog?



german@it-missions.com
18th February 2009, 07:56
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

aamer4yu
18th February 2009, 08:27
You can make a class as follows -
just a pseudo code -

class BlurDialog
{
QPixmap pixmap; // grab the parent widget into this pixmap, do it in ctor
QDialog confirmationDialog;

void paint()
{
// paint the pixmap
}
void show()
{
confirmationDialog.exec();
}
}


Hope this may work :rolleyes:

talk2amulya
18th February 2009, 08:40
also, if u wanna dim, use setOpacity() of QPainter class when drawing around the background