Hi everybody.

I have a problem with windows (widgets) in qt.

In my mainwindow.cpp has

Qt Code:
  1. th = new QThread;
  2. features = new Features(&Manager);
  3. features ->moveToThread(th);
  4. th->start();
  5.  
  6. Hardware cl(status,&Manager,features,this);
  7. a.exec();
To copy to clipboard, switch view to plain text mode 

The hardware class call other widgtet. This widget has a cancel button with done(REJECTED);
But the window(hardware) doesnt close.