OK
Do you want the button to be a Part of the Widget Just like the Slider Or Do you want the Button to be A Seperate Widget That Interacts with the LcdSlider Widget ?
if It is a Part of Widget then Add a QPushButton * to the LcdSlider and
Create a Slot may be f oo () {
}
Connected the Click Signal to the foo () & with in
foo () {
display ( 25 ) ;
}
if a Signal needs to be Generated
Then Create a signal clicked ( int ) and then emit it inside the foo ()
But please note that you must keep the emit inside an if ( ... ) so as to Avoid any Cyclic Calls
My Suggestion to U is to Do what is told in the tutorial and try repeating it!.
This will help U get aquainted with the concept of Signal & Slot ;
There are Events also. This will follow shorty.
When you are done with the tutorial and understood the Concepts then Start Experimenting . I think this will be better and more Productive than trying to do thing with little knowledge.
Please don't misunderstand me.
This is what i do. I study a concept, imitate, then Experiment
There is also a good tutorials at
www.digitalfantastic.org
I hope you know that the official book by Trolltech is free for download
Don't Create an aversion for QT. Believe me This is one of the best frame works you can ever get