Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

pyQt5 set style without breaking the whole of Maya

pyQt5 set style without breaking the whole of Maya

JohnDoe404
Participant Participant
513 Views
0 Replies
Message 1 of 1

pyQt5 set style without breaking the whole of Maya

JohnDoe404
Participant
Participant

Hello, 

Is there a way to set the style in this case "windowsvista" for my pyQt5 window? If I set it at app level it sets the style for all of Maya.

app = QtWidgets.QApplication.instance()
app.setStyle("windowsvista")
dialog = Manager()
dialog.show()

Only solution I've found is doing this line beside every widget which seems very tedious.

.setStyle(QtWidgets.QStyleFactory.create("windowsvista"))

JohnDoe404_0-1696173098408.pngJohnDoe404_0-1696173098408.png

 

514 Views
0 Replies
Replies (0)