Serial port QGC

I have made an app as simulator with Qt and used mavlink protocol to connect with QGC, I used UDP and can send msgs but when I used serial port way but did not work.
Note, I used a Eltima sofware for create virtual serial ports.
Can any body guide me?!