How can i change the cursor style of the qwebview's scrollbar?



  • i want to change the cursor style of the qwebview's scrollbar,such as 'crosshair ' ,how can do that?


  • Moderators

    the scrollbars are not really widgets, instead they are painted by webkit itself. the only way i can think of is to use webkit specific CSS. See "this":http://davidwalsh.name/custom-scrollbars

    You can set the stylesheet via QWebSettings::setUserStyleSheetUrl()
    If you don't want to provide it accessible via an url you need to pass an base64 encoded url data.


Log in to reply
 

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