T
T
Tesla4o2018-09-21 10:41:39
Qt
Tesla4o, 2018-09-21 10:41:39

Why doesn't connect work in Qt?

Why is the connection not working? Writes candidate expects 1 argument, 0 providet;

connect(this->findChild<QPlainTextEdit*>("plainTextEdit"), 
         &QPlainTextEdit::textChanged, this, [=](QString str){
             Bus::Instance().setMessage(str.toStdString());
 });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2018-09-21
@vt4a2h

this is not needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question