HomeОбразованиеRelated VideosMore From: Qt

Qt Training: Fundamentals of Qt - Objects in Qt, part 2/3 - Signals and slots: Mirko Boehm, by KDAB

81 ratings | 11792 views
Fundamentals of Qt - Objects in Qt, part 2/3 - Signals and slots as a way to connect an event to an 2010 Presented by: Mirko Boehm Part 3: http://youtu.be/ByelQPI9Z6s Agenda and learning objectives: Callbacks in the Qt world What are signals and slots? Connecting signals and slots Demo: signals and slots in action Custom signals and slots The "Q_OBJECT" macro and the "moc" compiler Returning to the need for reactions
Html code for embedding videos on your blog
Text Comments (9)
Alina Voropaeva (2 years ago)
Cute trainer :)
Alex Boyd (2 years ago)
To create a 2-way connection, would you create a signal on the spinbox and a slot on the slider and connect the two? It seems like that would create an infinite loop. Is there another class that is used for 2-way connections?
Alfio Alessi (2 years ago)
QObject::connect(slider, SIGNAL(valueChanged(int)), spin, SLOT(setValue(int))); QObject::connect(spin, SIGNAL(valueChanged(int)), slider, SLOT(setValue(int)));
Jigar Gada (4 years ago)
In the slide of connecting signals to slots, shouldn't the function of the slot be void QSpinBox::setValue(int value) instead of QSlider::setValue(int value) ??
Ahmed Abdellatif (1 year ago)
yes i also wanted to comment about this! but unfortunately no one replies
Jonecir Souza (5 years ago)
Would you mind sending me a small piece of code showing how I can access a Parent property from a Child? ([email protected]) Thanks a lot.
Jose Miracy (5 years ago)
Fantastic, I´d like to learn more. Could ou provide other links like yours ?
Abdul Basit Mehrabi (5 years ago)
Really really useful ...
doug65536 (6 years ago)
Excellent video!

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.