migel
5th July 2011, 17:48
Some reason only mac showing white background for qml. The screenshots is showing the issue, I want of course the base gui bg color.
I tried set the color to yellow to see if that have some effect, no difference. if would I could apply bg from c++ by contextProperty but does not work.
Rectangle {
color: "yellow"
Why there is white bg ??6636
This is how I add the qml
QDeclarativeView *qmlSearchField = new QDeclarativeView;
qmlSearchField->rootContext()->setContextProperty("qmlmainview",_mainView);
qmlSearchField->setSource(QUrl("qrc:/qml/SearchField.qml"));
Added after 39 minutes:
FIX:
qmlSearchField->setStyleSheet("background-color: transparent;");
but anyway, bizare
I tried set the color to yellow to see if that have some effect, no difference. if would I could apply bg from c++ by contextProperty but does not work.
Rectangle {
color: "yellow"
Why there is white bg ??6636
This is how I add the qml
QDeclarativeView *qmlSearchField = new QDeclarativeView;
qmlSearchField->rootContext()->setContextProperty("qmlmainview",_mainView);
qmlSearchField->setSource(QUrl("qrc:/qml/SearchField.qml"));
Added after 39 minutes:
FIX:
qmlSearchField->setStyleSheet("background-color: transparent;");
but anyway, bizare