@p3c0 said in qmlscene and Qt Quick Controls 2: styling:
@morte Are you sure you are setting it correctly ? I just tried it with Qt 5.7 and it works. Can you try the same with Qt 5.7 ?
export QT_QUICK_CONTROLS_STYLE=universal; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml
Or
export QT_QUICK_CONTROLS_STYLE=material; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml
No, thats on Windows. Now it's start to work after i add environment variable in QtCreator for "Desktop" kit instead of setting it for external tool. Thanks for your assistance.
Well i have tried to port the programm to use regular QMainWindows.
But then i have issues to handle the maximum, minimum controls and to constrain the maximized window to my own mdiarea.
Any advice?
After scouring the web, it appears that the only way to do this is the very complex technique of subclassing the widget. It's easier to just put another button on it, but then I had the problem where I couldn't pass a hover event to the QPushButton underneath it. This lead me to learn the technique on StackOverflow of building an eventFilter.