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. Event in scrollbar
Qt 6.11 is out! See what's new in the release blog

Event in scrollbar

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 3.6k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    jk_mk
    wrote on last edited by
    #1

    Hello,

    In my application I want to use a verical scrollbar.Every time I change its value I want to run a function, and pass the scrollbar's value as a parameter inside this function.How could this be done? I have read several thinks, but where very general. Could someone give me a simple speciphic example?

    Thanks in advance

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      If you create the scrollbar as a widget, use signal / slot connections. This means, make yout function a slot with an int param,eter and connect it to valueChanged of the scrollbar

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #3

        We already gave you an example when you asked the same thing.

        examples > widgets > sliders [doc.qt.nokia.com]

        see your other post

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Indeed. Everall is referencing "this topic":http://developer.qt.nokia.com/forums/viewthread/6346/. Closed as duplicate.

          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