Qt multi-window and multi-thread architecture

455 views Asked by At

I am new to Qt5 and I am working on an embedded project, following is the technical background:

Embedded OS: Linux

Qt version: 5.3

LCD: 7 inch

Finally two programs run on the system, one is the main control unit (with xenomai) using C language, the other is Qt for the LCD GUI. In the Qt program, I need two extra threads, one for the socket communication between the Qt and the main control unit, the other thread is used for the serial port (I have a customized keyboard using RS232).

It will have around 10 windows, so I need to switch them one by one, only one is shown on the LCD at a time. The Qstackedwidget is good for this? And how to manage the communication between the windows and the main Qt application? I am a little confused about the whole architecture.

Should I created these 10 windows at the very beginning?

Thanks for your support.

0

There are 0 answers