2

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.

1 Answers1

1

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.

Community
  • 1
  • 1
totymedli
  • 29,531
  • 22
  • 131
  • 165
  • I read all the posts and tried all the possibilities.still i could not done it. as mentioned earlier it was working with Qt4.7 But not working on qt4.8. – user1838641 Nov 20 '12 at 12:23
  • Updated the answer. Maybe this procedure changed in Qt4.8. I will try this out at home. – totymedli Nov 20 '12 at 12:39
  • In Qt4.8 also except transparent property i can able to set all other colors to my Mainwindow. In my application i was running video on back of my Mainwindow. so i was setting the mainwindow background property to transparent. – user1838641 Nov 20 '12 at 12:51