PDA

View Full Version : How to use QtSerialPort with out super user



Scoup
9th September 2013, 16:36
I'm trying to use QtSerialPort in Linux (Lubuntu and Ubuntu) but is only working when start the application with super user.
I followed the wiki to install in QT4 and already try to use with QT5 and is the same result, only works when started with sudo.
I can compile with my user, run the application and can see the list of usb and get the usb info (like product id, vendor, etc) but I don't receive and can't send any data.

My .pro is configured like the wiki (and work like charm when running with root user), I think is some permission I have to apply to my user, but I don't know which is.

Any tips?

Thank you.

kuzulis
9th September 2013, 18:08
Just add user to dialout or modem or tty group (depends on your distro). It is not QtSerialPort problem - it is an common Linux specific.

PS: You can just resolve this issue yourself through search in google...

Scoup
9th September 2013, 22:12
Just add user to dialout or modem or tty group (depends on your distro). It is not QtSerialPort problem - it is an common Linux specific.

PS: You can just resolve this issue yourself through search in google...

Thank you, worked. I was searching in google, but for qtserialport =(