Questions tagged [qprocess]
The QProcess class, part of the Qt framework, provides a way to start external programs and to communicate with them.
qprocess
679
questions
0
votes
1
answer
71
views
QProcess and std::thread - Cannot create children for a parent that is in a different thread
I am getting a run-time message
QObject: Cannot create children for a parent that is in a different thread.
when starting a QProcess in a std::thread. The program runs, but I feel that this message ...
0
votes
0
answers
29
views
How to convert GB2312 to Unicode in QT
I want to get the output from a sub-process that I created by QProcess. The code looks like follows:
while(this->m_pythonProcess.canReadLine()){
QByteArray output_line = this->...
1
vote
0
answers
34
views
How to let QProcess class emit output signal immediately when sub process running the print statement
I have following code in the constructor of MainWindow class:
QObject::connect(&m_pythonProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(on_ready_read()));
Then I created a slot memeber ...
-4
votes
2
answers
174
views
`QProcess::startDetached` deprecated: any alternatives?
im trying to launch the cmd on windows. i used the following code to launch the terminal, and it worked 100% fine.
but the Qt Creator keep saying that QProcess::startDetached(const QString &) is ...
0
votes
1
answer
28
views
Open a file inside a network inside a script run by QProcess(Pyside6)
A Python script is executed by a QProcess. Within this script, a specific file should be opened and written to. The file path should always be \\127.0.0.1\folder\myfile.json.
def write_to_json(IP, ...
1
vote
0
answers
21
views
QProcess::startDetached() hangs out when executing google-chrome
The issue is present only on CentOS 7, using Qt 5.12.6
In the Qt application we open a configuration tool using the following command:
QProcess::startDetached("google-chrome", {"http://...
0
votes
0
answers
166
views
How to solve the segmentation fault and UI crash issue during the QProcess
I'm currently developing a MultiThreading window form application using Python that functions by executing QProcess commands via buttons and signaling start and end with a record that is displayed on ...
0
votes
1
answer
104
views
Kill the process with processId
I have a Q_Object class.
In this class, I want to start and stop a process with the send and stop function
My send function is working fine and when I click it my process is running but when I click ...
0
votes
2
answers
120
views
How to close dumpcap.exe using WinAPI? Dumpcap.exe is work by cmd.exe
I'm capturing packets with dumpcap.exe in a cmd.exe window:
dumpcap.exe -i 5 -w:\\Users\\xyz.abc\\Desktop\\allPacketTMC.pcapng
This capturing method works in a QT GUI. When I click the "Start LOG&...
1
vote
0
answers
570
views
SSH connection in a Qt application
I have a Qt application in C++ that runs on a Windows host and has to execute some commands via SSH in a Linux machine.
I tried everything that came to my mind but without a single success:
QProcess()...
0
votes
1
answer
75
views
QProcess prints output with some commands
I'm facing a weird problem with Qt5 and C++ on windows 10.
I have to run a QProcess and detect its output, but it prints only with some commands (actually just one):
with the ping command, it prints ...
0
votes
0
answers
34
views
QProcess cannot create pipe even if all the processes are closed
I use this function to check if an host is online:
MyClass.h
class MyClass : public QObject
{
Q_OBJECT
public:
explicit MyClass(QObject *parent = nullptr);
private:
QProcess _processPing;...
0
votes
1
answer
158
views
How can i run a C# program from Qt C++ program?
I have a program written in C# (.net framework 4.0) and i have a main program written in Qt C++, i need to run this program (C# program) from my main program, the problem is if i use QProcess to run ...
0
votes
0
answers
151
views
Qt QProcess: shell for openssh
I need to make a shell over OpenSSH as part of Windows 10. I can't get the output of the console application using QProcess. If an error occurs and the application shuts down, I will get the output. ...
0
votes
0
answers
46
views
QProcess signal/slot not working after Ctrl+Z and bg
I have a Qt GUI application that runs on Linux.
It is a QApplication that uses QProcess to do some work when a button is clicked.
The finished signal on the QProcess is connected to a slot:
connect(...