Results 1 to 6 of 6

Thread: QSlider problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    USA
    Posts
    23
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QSlider problem

    Thanks wysota.
    So how would my connect function look then?
    would it be-
    connect(slider, SIGNAL(valuechanged(int)), mysignalproxy, SLOT(dosomething(value)) );

    where-mysignalproxy is a pointer to SignalProxy
    and function dosomething(value) would take the new value and call AddRGB(value,g,b) within it.
    Is this how it works, to make sure I understand it, correctly?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,371
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSlider problem

    Yes, you understand it correctly. Just remember that the signal is called "valueChanged", not "valuechanged". Also remember that connect() is a method of QObject, so you'll probably have to call it as QObject::connect or mysingalproxy->connect as you'll probably be doing it from outside of any QObject.

Similar Threads

  1. QSlider Update Problem
    By December in forum Qt Programming
    Replies: 4
    Last Post: 10th September 2006, 04:02
  2. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  3. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.