Custom Window Buttons
Unsolved
Qt for Python
-
I have created a curve window class obj i want to add custom close,min,etc. buttons :-
class CurveWindow(BaseWidgetWindow): def __init__(self,w,h,color:tuple,roundness=50): super().__init__() self.setWindowFlag(Qt.FramelessWindowHint) self.setAttribute(Qt.WA_TranslucentBackground) self.rounded_widget=QWidget(self) self.rounded_widget.resize(w,h) self.resize(w,h) self.rounded_widget.setStyleSheet(f""" background:rgb({color[0]},{color[1]},{color[2]}); border-radius: {roundness}px; """ )
how to add custom btn that come top to menu bar also
-
It is not really clear what exactly you did. What is BaseWidgetWindow?
If you're imnplementing a custom title bar then take a look at https://github.com/imitatehappiness/QtCustomTitleBar