Reputation: 21
I was setting QMainwindow background to transparent on CSS file.This was not giving any effect on my mainwindow. If i set background to red or any other color it is getting reflected on my mainwindow.
My mainwindow is transparent while i was working with the Qt4.7.1 version. after updating the qt version to 4.8 with the transparent background property i was getting black background. I was cross compiled qt4.8 to Mips and i was working on MIPS platform.
Is there any idea on this?
Thanks.
Upvotes: 2
Views: 1676
Reputation: 31048
There are several questions about how to create a transparent window:
How to make a transparent window with Qt Quick?
How to get an simple transparent window?
Transparent Windows.
You can also try to create a new simple empty transparent MainWindow and see if it works correctly. If yes than you should review your project.
Upvotes: 1