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"
Rectangle {
color: "yellow"
To copy to clipboard, switch view to plain text mode
Why there is white bg ??shot2.png
This is how I add the qml
QDeclarativeView *qmlSearchField = new QDeclarativeView;
qmlSearchField->rootContext()->setContextProperty("qmlmainview",_mainView);
qmlSearchField
->setSource
(QUrl("qrc:/qml/SearchField.qml"));
QDeclarativeView *qmlSearchField = new QDeclarativeView;
qmlSearchField->rootContext()->setContextProperty("qmlmainview",_mainView);
qmlSearchField->setSource(QUrl("qrc:/qml/SearchField.qml"));
To copy to clipboard, switch view to plain text mode
Added after 39 minutes:
FIX:
qmlSearchField->setStyleSheet("background-color: transparent;");
qmlSearchField->setStyleSheet("background-color: transparent;");
To copy to clipboard, switch view to plain text mode
but anyway, bizare
Bookmarks