Giter Site home page Giter Site logo

stigal / qtserialportwidgets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from martonmiklos/qtserialportwidgets

0.0 2.0 0.0 79 KB

Widgets for applications using QtSerialPort

License: GNU Lesser General Public License v3.0

C++ 94.19% QMake 5.14% C 0.67%

qtserialportwidgets's Introduction

QtSerialWidgets

This library contains configuration widgets to be used in Qt widgets based applications using the QSerialport class.

You can use it as a a library: compile the qtserialportwidgets.pro project and use the library files in the bin folder. Or you can also include the qtserialportwidgets.pri file directly to your project and compile the widgets directly to your application.

If you are using Qt Designer for designing your user interface promote your widgets on the layout to the necessary settings widget. (Right click on the QComboBox and select promote to.) The pri file adds the QtSerialWidgets project's path to the INCLUDEPATHS so use global include for the delegation.

The library contains the following widgets:

SerialPortSettingsDialog:

SerialPortSettingsDialog

  • A standard dialog for manipulating the serial port parameters.
  • It also displays the retrived information about the current serial port.
  • This dialog is based on the QtSerialport Terminal example.
  • The dialog provides two methods for loading a QSerialPort settings to the gui and applying the gui settings to a QSerialPort instance (loadSettingsFromPort and applySettingsToPort).
  • There is also an option for passing a QSerialPort pointer to the dialog to handle the configuration of the port by the GUI.
  • In this case all configuration changes are taken into place after the pressing of the Apply button.
  • The settings of the dialog can be saved and restored through a configured QSetting object with the saveSettings(QSettings &) and loadSettings(QSettings &) methods.
  • The displayed ports can be filtered by the VID:PID identifiers

SerialPortComboBox:

SerialPortSettingsDialog

  • A combobox which populates itself with the serial ports present on the system. The list is regenerated every time when the QComboBox's showPopup is called, so the plug'n play devices could be detected without any external coding.
  • The port informations (provided by the QSerialPortInfo) like serial number, manufacturer, etc. can be accessed from the itemData method with the roles above Qt::UserRole

BaudRateComboBox:

BaudRateComboBox

DataBitsComboBox:

  • A combobox for specifying the number of data bits.

ParityComboBox:

  • A combobox for specifying the parity.

StopbBitsComboBox:

  • A combobox for specifying the number of stop bits.

qtserialportwidgets's People

Contributors

martonmiklos avatar jonas-meyer97 avatar

Watchers

James Cloos avatar Stepan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.