Problems with Signals & Slots of QT

  • Thread starter Christian Bruckhoff
  • Start date
C

Christian Bruckhoff

Hi.

I got a problem with Signals and Slots of QT. The program i am speaking of u
can find here: http://www.uni-koblenz.de/~brchrist/address/

If u look at gui.cpp u find a connect command at line 27. I would read this
command like this: "If pushButtonAddPerson got clicked call the function
addPerson() of this GUI-Object"

So this connect should call the function starting on line 50. But if i start
the GUI it writes "[...] No such slot QWidget::addPerson()"

As u can see this means not GUI, but QWidget. But why? I really cant find
the mistake. A friend of mine did the same in another program and it worked.

Hope u can help me.

Regards!
Christian
 
R

Rolf Magnus

Christian said:
Hi.

I got a problem with Signals and Slots of QT. The program i am speaking of
u can find here: http://www.uni-koblenz.de/~brchrist/address/

If u look at gui.cpp u find a connect command at line 27.

gui.cpp and gui.h can't be opened.
I would read this command like this: "If pushButtonAddPerson got clicked
call the function addPerson() of this GUI-Object"

So this connect should call the function starting on line 50. But if i
start the GUI it writes "[...] No such slot QWidget::addPerson()"

As u can see this means not GUI, but QWidget. But why? I really cant find
the mistake. A friend of mine did the same in another program and it
worked.

Hope u can help me.

Well, your question is actually off-topic here. in comp.lang.c++, we only
discuss ISO C++, which doesn't include Qt or signals and slots.
 
L

loufoque

Christian Bruckhoff wrote :
I got a problem with Signals and Slots of QT.

Qt is our favourite C++/MOC toolkit.
Too bad this group is about standard C++, not C++/MOC or C++/CLI or any
other C++.
 
F

Frederick Gotham

loufoque posted:
Qt is our favourite C++/MOC toolkit.
Too bad this group is about standard C++, not C++/MOC or C++/CLI or any
other C++.


What do MOC and CLI stand for?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top