PDA

View Full Version : QDockWidget - features



moowy
31st August 2006, 13:34
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.

wysota
31st August 2006, 13:43
Use a custom style which doesn't render those buttons.

moowy
31st August 2006, 13:48
And how would I look for one?? In polish function? would I use casting???

moowy
31st August 2006, 14:18
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);
}
}