[Development] [Proposal] Future QtSerialPort with plugins architecture

Blasche Alexander alexander.blasche at theqtcompany.com
Mon Feb 15 08:05:30 CET 2016




> -----Original Message-----
> From: Denis Shienkov [mailto:denis.shienkov at gmail.com]

> I would like to discuss new idea of transition of QtSerialPort to
> an architecture with the plug-ins/backends.
> The user can use/change desired plugin, e.g. via the
> QT_SERIALPORTINFO_PLUGIN environment, or via command line e.g.:
> 
> {code}
> set QT_SERIALPORTINFO_PLUGIN=wmi // on windows
> myapp.exe
> {code}
> 
> {code}
> export QT_SERIALPORTINFO_PLUGIN=sysfs // on linux
> myapp
> {code}
> 
> {code}
> myapp -qspi sysfs // on linux
> {code}

In principle I have no problem. Maybe you forgot to mention it in your mail but choosing the plugin via env or app parameter is not sufficient. The system must support the concept of a default plugin for the current platform. 

--
Alex


More information about the Development mailing list