Results 1 to 2 of 2

Thread: Qt5.5 QSerialPortInfo::AvailablePorts returns empty list

  1. #1
    Join Date
    Nov 2012
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Symbian S60 Android

    Question Qt5.5 QSerialPortInfo::AvailablePorts returns empty list

    Hi,
    I'm writing a Qt program which does communication over serial port. At some point, I need to display the list of all available ports on the system so the user can choose which one to use.
    So i'm using QSerialPort::availablePorts().
    Under Windows, it works great, but under my Linux (Linux Mint 17.2, all updates applied), it only returns an empty list.
    The behaviour is the same when I try Qt examples fors QSerialPortInfo.

    Does someone has an idea of what is happening ? ( or rather not happening ? )

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt5.5 QSerialPortInfo::AvailablePorts returns empty list

    Does your Linux machine have serial ports? Are they enabled? Is there kernel support for serial ports? Do the serial port device files exist e.g. /dev/ttyS0 ? Are the ports usable from another program?

Similar Threads

  1. QItemSelectionModel::selectedColumns returns empty list
    By MarkoSan in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2014, 17:55
  2. trouble with the QSerialPortInfo::availablePorts()
    By xiongxiongchuan in forum Qt Programming
    Replies: 1
    Last Post: 22nd June 2014, 09:42
  3. QGrapchisSvgItem childItems list empty
    By Hogwarts in forum Qt Programming
    Replies: 1
    Last Post: 6th April 2011, 12:18
  4. QSplitter::saveState returns empty string
    By miraks in forum Qt Programming
    Replies: 2
    Last Post: 21st September 2008, 21:30
  5. QDataStream, QTreeWidgetItem, empty list
    By baca in forum Qt Programming
    Replies: 2
    Last Post: 15th February 2007, 14:43

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.