deviceDispatcher = new JDeviceDispatcher(this); player = new JPlayer(this, deviceDispatcher); cashRegister = new JCashRegister (this,deviceDispatcher); configModel = new JConfigModel(deviceDispatcher);
class JDeviceDispatcher : public QThread{Q_OBJECTpublic: JDeviceDispatcher(QObject *_parent = 0); ~JDeviceDispatcher(); void run(); bool flagReady; bool isReady() { return flagReady; }........
deviceDispatcher = new JDeviceDispatcher(this); deviceDispatcher->start(); while(1){ if ( deviceDispatcher->isReady() == true) break; } player = new JPlayer(this, deviceDispatcher); cashRegister = new JCashRegister (this,deviceDispatcher);
player = new JPlayer(this, deviceDispatcher); cashRegister = new JCashRegister (this,deviceDispatcher); configModel = new JConfigModel(deviceDispatcher); Раздизабливаем окно
Создаем JDeviceDispatcher Конектим ContinueInit и StopedInit Вызываем StartInit Дизаблим окно