Originally Posted by anda_skoa It doesn't matter if the signal is emitted in your own code or in Qt's code, the emit always works the same way. The values passed to the signal at emit are the values the slots receive. E.g. if the emit code looks like this Qt Code: Switch view emit loadFinished(false); emit loadFinished(false); To copy to clipboard, switch view to plain text mode or if it looks like this Qt Code: Switch view bool someStatus = false; emit loadFinished(someStatus); bool someStatus = false; emit loadFinished(someStatus); To copy to clipboard, switch view to plain text mode then the slot will receive "false". The signal/slot connection just transports the values to the slot, the value itself is determined by the code that emits the signal. Cheers, _ What could be the reason why the QT code is emitting a false value to 'ok'?
emit loadFinished(false);
bool someStatus = false; emit loadFinished(someStatus);
View Tag Cloud
Forum Rules
Bookmarks