Give the qml-widget transparent background
This commit is contained in:
parent
51e87ffa88
commit
61331e7da3
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,9 @@ public:
|
|||
QMLView::QMLView(const QDir &dir, const QScriptValue &object) :
|
||||
QDeclarativeView()
|
||||
{
|
||||
setAttribute(Qt::WA_TranslucentBackground);
|
||||
setStyleSheet("background:transparent;");
|
||||
|
||||
d = new PrivateData;
|
||||
d->baseDir = dir;
|
||||
d->object = object;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue