![]() ![]() How come I can receive a readdyReadStandardOutput during a waitForFinished? Hum probably because it's a DirectConnection? So that the QProcess that executes them. I'm still quite interested to understand why my current implementation is working. I may think about doing a more Qt spirit implementation when I'll have more time. Well those compression processes have been added as a new feature, it was much faster/easier to keep the existing sequential logic as anyway I don't want to do anything during those QProcess. This means I need a dedicated slot in my main worker (not the HMI) that would then trigger the following tasks. I kind of see what you mean with a non blocking implementation that would rely on the QProcess::finished. I've added the QCoreApplication::processEvents to help populate the signals that update the HMI as I think it was lagging. That was a bit unexpected but I noticed it was working straight away on my first draft. Well I'm receiving the QProcess::readyReadStandardOutput signals while I'm on the QProcess::waitForFinished. Void NgPost::onExtProcReadyReadStandardOutput() _error(QString("Error compressing: %1").arg(exitCode)) _log(QString("rar exit code: %1\n").arg(exitCode)) Here is a compiling code to illustrate the issue: (main.cpp) #include After that, just type unrar after the prompt. I've tried several things but I couldn't manage to figure out a way to bypass it. Re: NZBGet Unrar Issues With terminal (on a mac) you'd enter ssh root nas-ip-address (using the real IP address of course) and then enter your NAS admin password. NOTE: You may get a TLS handshake error if the news server does not. So it seems to me there is an issue with QProcess passing the password argument to the rar command. Sample configuration file for NZBGet On POSIX put this file to one of the. If I run it in a terminal, then it is working AND I can decompress using the password. I output the command that I'm doing in the QProcess. The command is simple: rar a -inul -m0 compressed.rar -hp"myPassword" file_to_compressīUT when I try to unrar my compressed.rar, then the password is incorrect. I'm fighting for few hours on this one: I'd like to compress some files using rar as an external command and using a password.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |