PDA

View Full Version : Where to add slot



garry_3peace
24th August 2008, 09:17
Hello, sorry for a very stupid question. I am learning QT4 Designer, but not about how to design widget or component. What I want to know, after designing qmake will generate the blabla.h right? We create main.cpp manually. The problem is, if I want to add slot or methods in the widget, where should I put it? If I put at the .h file, it will replaced by the new one. If I create blabla.cpp, doesn't it mean, I can't create my own slot function?

PS: I have try to find in google and in QT Assistant, but no result. May someone point out where should I find?

ktk
24th August 2008, 10:43
There are several options explained on
http://doc.trolltech.com/4.4/designer-using-a-component.html

garry_3peace
24th August 2008, 14:24
Thank you :)