Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    How to get values from the slider in pyside?

    General and Desktop
    2
    3
    2313
    Loading More Posts
    • 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.
    • K
      kramer65 last edited by

      Hello beautiful people,

      I'm a total newbi and am kind of stuck. I downloaded the slider example "from here":http://qt.gitorious.org/pyside/pyside-examples/blobs/blame/ce9b2dfe456f38a166314dc2807a6b27cd944127/examples/widgets/sliders.py and sobered it down to just the sliders. The code I've got right now is as follows: http://pastebin.com/EkXxdPee

      I now want to read the values from the slider and send them over to another program using zeromq. I can't however, find where I can read out the values the slider produces. Could anybody help me out a bit by pointing on which lines I could get the values from the slider?

      All tips are welcome!

      1 Reply Last reply Reply Quote 0
      • K
        kramer65 last edited by

        Little bump.

        Does nobody know anything about this?

        1 Reply Last reply Reply Quote 0
        • P
          panosk last edited by

          Hi,

          If you want to get the value of a slider, just use the value() function. For example:
          @
          sliderValue = self.slider.value()
          @

          1 Reply Last reply Reply Quote 0
          • First post
            Last post