Results 1 to 3 of 3

Thread: How to use QtSerialPort with out super user

  1. #1
    Join Date
    Sep 2013
    Posts
    2
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Android

    Default How to use QtSerialPort with out super user

    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.

  2. #2
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to use QtSerialPort with out super user

    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...

  3. #3
    Join Date
    Sep 2013
    Posts
    2
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Android

    Default Re: How to use QtSerialPort with out super user

    Quote Originally Posted by kuzulis View Post
    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 =(

Similar Threads

  1. calling paintEvent() of the super class
    By Cruz in forum Newbie
    Replies: 2
    Last Post: 24th March 2021, 21:29
  2. Super impose of the three images
    By Sambu in forum Qt Programming
    Replies: 0
    Last Post: 19th October 2011, 07:51
  3. Running shell script with as super user in N900
    By spylvas in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 30th April 2010, 02:05
  4. QTextEdit super slow resize
    By bunjee in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2008, 18:09
  5. super modal window!!
    By jrodway in forum Qt Programming
    Replies: 4
    Last Post: 17th April 2008, 22:25

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.