Most likely, you need to create a QApplication
, without it many things like events and signals/slots won't work:
int main()
{
QApplication app;
QextSerialPort *port = new QextSerialPort("COM7");
port->open(QIODevice::ReadWrite);
cout << port->isOpen();
system("pause");
return app.exec();
}