I want to create a qwidgets one with raised/sunkin/groove/ridge relief similar to tkinter. I know how to do this in tkinter, but don't know the style sheet option in Pyqt5 for each one. Please find the tkinter option Widget = Tkinter.Button(top, text ="FLAT", relief=raised ). Hope you can help to translate to Pyqt5
You can do this with QFrame
. you can set QFrame.setFrameShadow(QFrame.Sunken)
. But I couldn't find for a QWidget
one.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.