Hello.
I need some help with my QDockWidget. The problem is that I want to remove the two standard icons (that manage dockable,closeable features) but without losing these two features. I hope u can give me some help where I can do that.
Hello.
I need some help with my QDockWidget. The problem is that I want to remove the two standard icons (that manage dockable,closeable features) but without losing these two features. I hope u can give me some help where I can do that.
Use a custom style which doesn't render those buttons.
And how would I look for one?? In polish function? would I use casting???
If anyone else want's to know how i handled this:
I used this function:
QPixmap XISLStyle::standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt,
const QWidget *widget) const
{
switch(standardPixmap)
{
case SP_DockWidgetCloseButton:
{}
break;
default:
return QCommonStyle::standardPixmap(standardPixmap, opt, widget);
}
}
Bookmarks