Тёмный

C++ Qt 62 - Viewer Feedback Signals and Slots in depth 

VoidRealms
Подписаться 84 тыс.
Просмотров 50 тыс.
50% 1

QML Beginners: www.udemy.com/course/qml-for-...
Qt Core Beginners: www.udemy.com/course/qt-core-...
Qt Core Intermediate: www.udemy.com/course/qt-core-...
QT Core Advanced: www.udemy.com/course/qt-core-...
Qt Widgets Beginners: www.udemy.com/course/qt-widge...

Развлечения

Опубликовано:

 

13 мар 2011

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@PuchoMacker
@PuchoMacker 9 лет назад
Love your videos man... Easier than listening to Indian accent (No offense, Indian community) and very clear teaching method. I grant you 100 coolness points.
@Abhimanyu999p
@Abhimanyu999p 6 лет назад
I agree with you buddy, though I am an Indian.
@husaynvohra
@husaynvohra 4 года назад
Yes very true
@craigdanielmaceacher
@craigdanielmaceacher 5 лет назад
One major stumbling block for me was realizing that many kinds of “emit” statements happen automatically, that you don’t need to declare them. For example, say you create a button with object name of pushButton, if you right click on the button in the designer and choose “Go to slot..” and choose “clicked()”, Qt creator will fill out the stub implementation and the declaration for it in the header under slots. Now for this function (I.e. slot) to be called, the only thing that needs to be done is for user to click on the button. You don’t have to code an emit for these common actions (basically any of the ones you see listed when you choose “go to slot...”). You only need to emit a signal when you are defining one that isn’t built in to Qt and emitted automatically, like a custom one. This really confused me for a while-I didn’t realize Qt would auto emit clicked() signal and coded my own, the result being that my slot for the button clicked signal would be called twice!
@joelsonrocha5006
@joelsonrocha5006 5 лет назад
Thank you so much. I was with so much difficult but now i really know implement signals and slots in my QT projects.
@TheBaywatchMan
@TheBaywatchMan 10 лет назад
Thanks for this! Have an exam today on QT so this has helped me with the basics needed for signals and slots. Quite easy when explained properly. :) Now on to run through the Observer design pattern
@oddarnebeck
@oddarnebeck 10 лет назад
This is an excellent video, thanks a lot :) Hope this message receives you and your loved ones in perfect health, best regards from Norway :)
@thenaserov
@thenaserov 3 года назад
Pure example of "old but gold" Thanks a million bro...
@Abhimanyu999p
@Abhimanyu999p 6 лет назад
Brain, you're just awesome man. Love all your videos.
@maveasna2096
@maveasna2096 4 года назад
I really love your videos which make me learn a lot of knowledge and how to be a good educator. thank you so much.
@P0mpal0
@P0mpal0 10 лет назад
Thank you very much for your great tutorial! Very helpfull!
@gorkemtok3417
@gorkemtok3417 3 года назад
wow I really understood. This example is so compatible for signal and slots. You're like teacher, good one.
@JakobRobert00
@JakobRobert00 11 лет назад
awesome tutorial, now i understood signals and slots much better!
@timfeirg
@timfeirg 10 лет назад
you are a great human being
@Dev_Everything
@Dev_Everything 9 лет назад
Nice video man! Thanks
@yaroslavzelinskyy1415
@yaroslavzelinskyy1415 4 года назад
Great tutorial! Thank you very much.
@myrahnaeem9276
@myrahnaeem9276 6 лет назад
i am learning alot from your videos. you are next level superhero :D
@bitwigglers
@bitwigglers 12 лет назад
No need for the WaterCooler. You could have created and connected Cathy and Bob in main() too.
@johnsongetdown
@johnsongetdown 12 лет назад
haha great start :D
@GalaxyStranger01
@GalaxyStranger01 7 лет назад
TIMELINE!! I'm trying to add slots to my MainWindow class, but my connection isn't firing. Is it because MainWindow is already inheriting from QMainWindow?
@ulisesmerlan8641
@ulisesmerlan8641 7 лет назад
from the slot you can access the sender: QObject::sender() "Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. The pointer is valid only during the execution of the slot that calls this function from this object's thread context."
@user-pi5sn3ky1o
@user-pi5sn3ky1o 7 лет назад
Thank you so much, Nice Vedio
@weezilla
@weezilla 9 лет назад
Great videos man. You're really at another level in teaching. Anyway, questions: In the person header, you define void Listen under the slots section, but also define it in person.cpp. To gauge my understanding, I was playing around and defined void Person::Speak { } in person.cpp . Not too surprisingly, the compiler complained about fcn definitions in the same class. But why does it not matter that void Listen is defined twice? Thanks !
@kevalthakker9928
@kevalthakker9928 3 года назад
Thank you for sharing. Can you please tell us about some real time usage of s & s as well?
@ACBoredz
@ACBoredz 13 лет назад
Hi I have a question. Do you know why when I try to do a signal slot it says something like "function" was not declared even though in the header file i did signals: void update(); and in a function in the .cpp file I did (along with some other code) emit update();
@DilipNambuthirippad
@DilipNambuthirippad 8 лет назад
Hey Bryan, I am developing a desktop app and it has lots of QLineEdit controls. I wanted to capture the lostFocus signal on each of them and do a validation. Can you please help me on how to do it? From the help docs, I understood I need to override the focusOutEvent(QFocusEvent * e). However I am stuck here on how to write this code and into which file (mainwindow.cpp or some where else)... Please help me. I am really stuck... :(
@MyGonorrheaOnU
@MyGonorrheaOnU 12 лет назад
Wow, that was really hard to wrap my head around. I need to watch this video a few more times... Do you have any videos (besides the very first one) that explain how to use signals and slots in a Gui application?
@joseacunacarrera3466
@joseacunacarrera3466 4 года назад
Can this be done between objects of a diferent type?
@Moronicsmurf
@Moronicsmurf 9 лет назад
Isnt there any way of setting up a 2 way communication easier than defining signals and slots one way twice?
@FerintoshFarmsPhotography
@FerintoshFarmsPhotography 5 лет назад
ah, okay I was trying to connect in main; I bet that'll solve some of my issues lol.
@benceblazsovics9123
@benceblazsovics9123 2 года назад
It would make so much more intuitive sense if SIGNALS were not VOID. But the signal-slot system now makes sense in a way that it bridges exactly this gap. So the SLOTS get all params of SIGNALS, thats how this works, right?
@lopo8000
@lopo8000 2 года назад
omg because of the crap school i never heard about this in 2011
@alexanderp7521
@alexanderp7521 3 года назад
You also could make Chatty Cathy to listen to Silly Sally and create real life situation
@FJProject
@FJProject 6 лет назад
In Qt 5 signals are public.
@vallierickfacunla3627
@vallierickfacunla3627 3 года назад
now that's why i can recall signals, thanks for the clear up
@commentkori567
@commentkori567 3 года назад
This doesn't work now
@annaoaulinovna
@annaoaulinovna 5 лет назад
Silly Sally
@bijaynayak6473
@bijaynayak6473 12 лет назад
hi brayn please let me know ur mail id or home page ,i am very much appropriate videos for the qt beginners , thanks very much
@reactdev101
@reactdev101 2 года назад
wow NOT an INDIAN guy!!!!!!!!!!! Runtime error;;;;;;;;;;
@VoidRealms
@VoidRealms 2 года назад
You're likely using an older version of QT I would instead encourage you to watch my QT6 videos also on my channel
Далее
C++ Qt 66 - QTCPSocket using signals and slots
16:34
Просмотров 57 тыс.
Викторина от ПАПЫ 🆘 | WICSUR #shorts
00:56
🎸РОК-СТРИМ без ФАНЕРЫ🤘
3:12:10
Просмотров 1,4 млн
C++ Qt 50 - QItemDelegate - delegates in a QTableview
16:42
Using Libraries in C++ (Static Linking)
18:43
Просмотров 433 тыс.
How Qt Signals & Slots Work
20:10
Просмотров 23 тыс.
How to use Signals & Slots
8:26
Просмотров 15 тыс.
C++ Qt 47 - Intro to model view programming
11:16
Просмотров 137 тыс.