Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. expand the ScrollBar (PageStep) Size by Dragging
Forum Updated to NodeBB v4.3 + New Features

expand the ScrollBar (PageStep) Size by Dragging

Scheduled Pinned Locked Moved Unsolved General and Desktop
qscrollbar
1 Posts 1 Posters 602 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    praveen0991kr
    wrote on last edited by
    #1

    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);           
                else
                    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:

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved