How setStylesheet ocuppy resolution 1366 by 254 only
-
I'm not sure I understand you correctly but do you mean you don't want the image to repeat? If so then set the repeat mode:
w.setStyleSheet("background-image:url(:/file/left.png); background-repeat: no-repeat");
-
So... have you tried my suggestion? It should do what you want.
-
yes i have,
w.setStyleSheet("background-image:url(:/file/left.png); background-repeat: no-repeat");It only fills up PC monitor width, thus i add setFixedWidth to set the width i want
w.setFixedWidth(1366);On my laptop it work perfectly, but when i cross-compile and test it on the ARM target.
The mainwindow is expanded over the whole screen. Is there any workaround?