Change close button in windowsTitleBar
-
hi guys. can you help me how can i change close button in qwidget or other window in qt ?
tnx a lot -
In what way to you mean change? Remove it? Change its appearance? Generally the native title bar buttons are controlled by the underlying OS (and/or window manager.) While you can give the widget hints on which buttons to show, it's beyond the scope of Qt to paint the or render them differently.
-
i want to change and draw my icon instead of X close button of windows. in some of theme we can do this.
-
Qt does not support doing this. You might be able to using windows API directly, but not through Qt itself.
-
can i do this with CSS (setstylesheet) ? or with QStyle (PE_indicatorTabClose)?
-
Nope. Like I said: there is no Qt API.
-
ok tnx alot