Thank you for the reply.
I have tried this as follows:
setAttribute(Qt::WA_TranslucentBackground, true);
setStyleSheet(KDialogStyle);//where KDialogStyle = "QDialog {color: rgb(32, 37, 240); border: 1px solid #FFFFFF;border-radius: 6px; background-color: rgba(220, 150, 220, 155); }"
setAttribute(Qt::WA_TranslucentBackground, true);
setStyleSheet(KDialogStyle);//where KDialogStyle = "QDialog {color: rgb(32, 37, 240); border: 1px solid #FFFFFF;border-radius: 6px; background-color: rgba(220, 150, 220, 155); }"
To copy to clipboard, switch view to plain text mode
But this does not work - the window gets a new color but it is no where near to the color I have set, nor the default color.
Also the default background is seen on the borders of the dialog.
Either I am missing something, or this feature is not yet supported in Qt for Symbian.
My understanding:
To make a window transparent/translucent in Symbian, the window will have to do something like this
Window().SetRequiredDisplayMode(EColor16MA);
Window().SetTransparencyFactor(0);
TRgb backgroundColour = KRgbWhite;
if(KErrNone == Window().SetTransparencyAlphaChannel())
{
backgroundColour.SetAlpha(155);//set a value from 0 to 255
}
Window().SetBackgroundColor(backgroundColour);
Window().SetRequiredDisplayMode(EColor16MA);
Window().SetTransparencyFactor(0);
TRgb backgroundColour = KRgbWhite;
if(KErrNone == Window().SetTransparencyAlphaChannel())
{
backgroundColour.SetAlpha(155);//set a value from 0 to 255
}
Window().SetBackgroundColor(backgroundColour);
To copy to clipboard, switch view to plain text mode
I checked the Qt code to find such a thing. But it is not present anywhere.
I am trying to modify the Qt code....
If there are any Qt developers on the forum - who has developed Qt for Symbian, please confirm if this feature is supported.
Bookmarks