I want to set the button with transparent background while I paint the button byI know use the style sheetCode:QApplication::style()->drawControl(QStyle::CE_PushButton,&buttonOption, painter);can make the background transparent. But how to set stylesheet for the QStyleOptionButton? Or other ways for set transparent background for QStyleOptionButton ?Code:setStyleSheet("QPushButton{background: transparent;}");




