/** * @file main.cpp * @brief Main file. * @author Michal Policht */#include <QCoreApplication>#include "PortListener.h"intmain(intargc,char*argv[]){QCoreApplicationapp(argc,argv);QStringportName=QLatin1String("COM1");// update this to use your port of choicePortListenerlistener(portName);// signals get hooked up internally// start the event loop and wait for signalsreturnapp.exec();}