Hi,

I try to implement a kind of datalogger to read the data from the inverters of my solar plant. The communication is done be serial port.

I decided to make it multithreaded. I'm a C# and Java professional but C++ is driving me crazy :-(

I stuck in a very simple problem. I want to create an overall handling object that will be part of the main program. It shall handle 1 database thread and multiple (number not fixed) threads for serial port handling. The serial threads shall emit signals to enqueue their data into a queue which will be written to a SQLITE database by the database thread.

How is the best structure to manage the running serial threads? I tried

private:
QVector<SerialThread> _serialThreads;

While building the solution it tells on a _serials.resize(1) line, that QObject::QObject(&QObject) is private

I have no clue how to handle these threads in the best way.

Any help will be appreciated.

Thanks in advance
HugoHiasl