Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Passing String from Main to Slot

$
0
0
Hi All, i tried to pass the string UG to my slot void Manuals::on_QRG_clicked(QString UG), so that the process is started. But i got QMetaObject::connectSlotsByName: No matching signal for on_QRG_clicked(QString) . My idea is that the string UG is not passed. Whats wrong? Manuals::~Manuals() {     delete ui;     QString UG = "acroread reference.pdf";     }   void Manuals::on_QRG_clicked(QString UG) {     QProcess acrobat;     acrobat.start(UG);     acrobat.waitForFinished(-1); } Thanks alot..

Viewing all articles
Browse latest Browse all 13965