QXcbConnection: XCB error: 8 (BadMatch),
-
Check whether you have any path that might be relative in your code.
-
Strange these error .... Finally I found these ....
As I said the problem is a Qdialog ... these dialog is only a Waiting charge dialog with a circular progress bar .... first of insert my openCvWidget the code to start it was:
m_dia2 = new Dia2(this); m_dia2->setAttribute(Qt::WA_DeleteOnClose, true); m_dia2->setWindowFlags(Qt::Widget | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); m_dia2->setAttribute(Qt::WA_NoSystemBackground, true); m_dia2->setAttribute(Qt::WA_TranslucentBackground, true); m_dia2->AutoBmecdia2Value(AutoCount); m_dia2->Stepbmecdia2Value(WaitingStep); m_dia2->show();but now with "this" flag I Obtain QXcbConnection:XCB error 8 ......
for solve the error now the code is:m_dia2 = new Dia2(); m_dia2->setAttribute(Qt::WA_DeleteOnClose, true); m_dia2->setWindowFlags(Qt::Widget | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); m_dia2->setAttribute(Qt::WA_NoSystemBackground, true); m_dia2->setAttribute(Qt::WA_TranslucentBackground, true); m_dia2->AutoBmecdia2Value(AutoCount); m_dia2->Stepbmecdia2Value(WaitingStep); m_dia2->show();in these way the dialog can exist when myapp is close and not found other solution to close these dialog when my app close .... Why firt to add a new code I can use:
m_dia2 = new Dia2(this);and after only:
m_dia2 = new Dia2();???
regards
Giorgio -
From what widget are you calling this code ?
-
void is a type, do you mean in a slot from MainWindow ?
-
How did you connect the signal from that QThread ?
-
Why are you forcing a direct connection ?
This means that the slot will be called in the context of the thread managed by QThread which is not the GUI thread thus you are doing GUI related stuff from another thread which is not allowed.