Last active
June 19, 2018 09:00
-
-
Save tpoveda/6e567393153d6a6a30f6f4e495f9179a to your computer and use it in GitHub Desktop.
Revisions
-
tpoveda renamed this gist
Jun 19, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
tpoveda created this gist
Apr 23, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ opt = QStyleOptionSlider() self.view.horizontalScrollBar().initStyleOption(opt) style = self.view.horizontalScrollBar().style() handle = style.subControlRect(style.CC_ScrollBar, opt, style.SC_ScrollBarSlider) sliderPos = handle.center()