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. How to get values from the slider in pyside?

How to get values from the slider in pyside?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.5k 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.
  • K Offline
    K Offline
    kramer65
    wrote on last edited by
    #1

    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
    0
    • K Offline
      K Offline
      kramer65
      wrote on last edited by
      #2

      Little bump.

      Does nobody know anything about this?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        panosk
        wrote on last edited by
        #3

        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
        0

        • Login

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