Unsolved QCalendarWidget background
-
when i set QCalendarWidget background transparent,but the center QCalendarView‘s background become black,like this:
so how i can set QCalendarWidget whole background transparent? -
How do you set the transparency? With style sheets or with the help of window opacity?
-
with style sheets,like this :
QCalendarWidget QTableView{
background-color: transparent;
} -
@yunjungao Does this help https://forum.qt.io/topic/75661/stylesheet-to-calender-popup/5 ?
-
@jsulm thanks your reply, I have read this example,and when i change background-color of calendarWidget , different colors like blue, red result is ok,but if i Change to transparency, Its background-color become black,See figure above
-
@yunjungao Not sure, but maybe you need to set transparency on the parent of calendar widget as well?