@CristianoNarcisiVidex said in Run test as superuser inside QtCreator:
because of my OS is Ubuntu, i need the super user permission for opening that port
That's wrong.
You simply have to add your user to the group which has access to the device file of your serial port.
See https://askubuntu.com/questions/58119/changing-permissions-on-serial-port
"The issue with the permissions for /dev/ttyACM0 can be permanantly solved by adding yourself to the dialout group.
You can do this with:
sudo usermod -a -G dialout $USER
Logout and then log back in for the group changes to take effect.
"