QSlider Vertical - Start scrolling from Top



  • Hi

    Trying on ubuntu with Vertical QSlider. I would like to have QSlider to start scrolling from top. QSlider handle starts from bottom. How can we make the slider handle to start from top ?

    I'm displaying the data in QTableView. I would like to remove the scrollbar and add my own Qslider. This slider always starts from bottom irrespective of setmax, set position etc. I have already tried with following

     slider.setValue(100);
     slider.setMaximum(100);
     slider.setSliderPosition(100);
    

    All this works If I use the QSlider without TableView. If attach the slider as part of QTableView, slider handle is always in the bottom.



  • @dheerendra ,

    Hi Sir,

    verticalSlider->setInvertedAppearance(true);

    It will make the slider handle to start from top.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.