Question: 3 . 3 . A search function, search ( QString reg ) , receives a QString parameter representing an aircraft registration number, searches an AircraftDatabase
A search function, search QString reg receives a QString parameter representing an aircraft registration number, searches an AircraftDatabase instance, and outputs the Aircraft data associated with the registration number to the standard output. This search function needs to be run as a separate process, with its output managed by the function void Data::acceptAircraft
Write the code necessary to start the search function as a separate process passing AEEY" as a parameter and have its output managed by the acceptAircraft function. Use the start function declaration below to guide you.
void QProcess::startconst QString &program, const QStringList &arguments, QIODevice :: OpenMode mode ReadWrite
You should include instance creation where necessary.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
