Object Detection  5.0
Image Processing Using Qt and Opencv
SerialPortModel Class Reference
+ Inheritance diagram for SerialPortModel:
+ Collaboration diagram for SerialPortModel:

Public Types

enum  type {
  PORT = Qt::UserRole + 1, PORT_NAME, PORT_DESCRIPTION, PORT_SYSTEM_LOCATION,
  MANUFACTURER, SERIAL_NUM
}
 

Public Slots

void refreshModel ()
 

Public Member Functions

 SerialPortModel (QObject *parent=nullptr)
 
virtual int rowCount (const QModelIndex &parent) const override
 
virtual int columnCount (const QModelIndex &parent) const override
 
virtual QVariant data (const QModelIndex &index, int role) const override
 
QList< QSerialPortInfo > portsInfo () const
 
void setPortsInfo (const QList< QSerialPortInfo > &portsInfo)
 
QList< QSerialPort * > avialabePorts () const
 
void setAvialabePorts (const QList< QSerialPort *> &avialabePorts)
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
virtual bool removeRows (int row, int count, const QModelIndex &parent) override
 

Detailed Description

Definition at line 9 of file serialportmodel.h.


The documentation for this class was generated from the following files: