Quote Originally Posted by marcel View Post
Yes, but the only problem is that sizeHint and minimumSizeHint are virtual public and const in QWidget, not virtual protected.
New class:

Qt Code:
  1. class CScrollBar : public QScrollBar
  2. {
  3. public:
  4. CScrollBar(QWidget * parent): QScrollBar(parent) {}
  5.  
  6. QSize sizeHint() { return QSize(55, 22); }
  7.  
  8. QSize minimumSizeHint() { return QSize(55, 22); }
  9. };
To copy to clipboard, switch view to plain text mode 

Result is the same however. The scrollbar is invisible, and the space it would have been taking up is no bigger.

Derek