expand the ScrollBar (PageStep) Size by Dragging

  • Hi All,

    I have been Trying to increase the width of scrollbar using setPageStep() and I have written this code I know it would not work as per mouse drag location :

    if (e->pos().x() > previousLoc)
                    this->setPageStep(this->pageStep() - 20);           
                    this->setPageStep(this->pageStep() + 20);   

    This is incrementing the width of the ScrollBar but not as per mouse Dragged I have passed QCursor::pos().x() but Still the width of Scrollbar not increment as per the mouse movement as I have to drag mouse a long to move Scrollbar handle a bit;

    Thanks and Regards
    Praveen Kumar

    So help me out in this:

Log in to reply