How to auto connect serial port without any clicking on button ?
-
Hello everyone, I have a question .
I wonder if Qt can auto connect a device through serial by itself ?
I mean when i run program, qt looks for a serial port - just one port as the same time, and auto connect it without any clicking on button.
Please help me answer this question. Thank you ! -
Hello everyone, I have a question .
I wonder if Qt can auto connect a device through serial by itself ?
I mean when i run program, qt looks for a serial port - just one port as the same time, and auto connect it without any clicking on button.
Please help me answer this question. Thank you ! -
You need to write a code for this. During the startup of the program you can call function which connects to SerialPort. By looking at your explanation, you are clicking on button and this click must be connected a slot(function) which does connections to serial port. In scenario call the slot directly. Slot is like any other member function. No special treatment!!! for slot.