Quote Originally Posted by bunjee View Post
Here is the implementation for a 1 pixel painted + 4 pixels draggable area.

(this code is from QtCreator, licensed in GPL)

Doesn't seem to work on Qt 4.4.3, anyone could confirm this ?
I believe there is a small piece of extra code defined in the manhattanstyle.cpp files

Qt Code:
  1. QSize ManhattanStyle::sizeFromContents(ContentsType type, const QStyleOption *option,
  2. const QSize &size, const QWidget *widget) const
  3. {
  4. QSize newSize = d->style->sizeFromContents(type, option, size, widget);
  5.  
  6. if (type == CT_Splitter && widget && widget->property("minisplitter").toBool())
  7. return QSize(1, 1);
  8. else if (type == CT_ComboBox && panelWidget(widget))
  9. newSize += QSize(10, 0);
  10. return newSize;
  11. }
To copy to clipboard, switch view to plain text mode