Hi,

I need to use a custom scroll bar for the QScrollArea widget which I am setting using the setVerticalScrollBar() member function. However, my custom scroll bar is showing up complete, it's being cut. The custom scroll bar has a width of 48px.

MyScrollBar::MyScrollBar(QWidget *parent) :
QWidget(parent),
ui(new Ui::MyScrollBar)
{
scrollWidget = new ScrollWidget(this);
scrollBar = new ScrollBar(Qt::Vertical, this);

ui->setupUi(this);
scrollBar->setMaximumWidth(46);
scrollBar->setMinimumWidth(46);
ui->scrollArea->setVerticalScrollBar(scrollBar);

//ui->scrollArea->widget()->show();
}

See image below..

ScrollBarPushed.PNG

NormalScroll.PNG