Muffin
28th October 2009, 15:30
Hi
Is there any one that have tried to use Qt (with Gui) together with COM?
and if so where have you placed the QApplication part?
I have it within a function i an interface of the COM class like this:
STDMETHODIMP CRGraph::GraphRun(CHAR* inData, CHAR* outResult)
{
// TODO: Add your implementation code here
int argc;
char *argv;
QApplication app(argc,&argv);
QMessageBox msgBox;
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.show();
app.exec();
return S_OK;
}
the problem is that nothing shows and i'm not shure how to proceed.
Is there any one that have tried to use Qt (with Gui) together with COM?
and if so where have you placed the QApplication part?
I have it within a function i an interface of the COM class like this:
STDMETHODIMP CRGraph::GraphRun(CHAR* inData, CHAR* outResult)
{
// TODO: Add your implementation code here
int argc;
char *argv;
QApplication app(argc,&argv);
QMessageBox msgBox;
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.show();
app.exec();
return S_OK;
}
the problem is that nothing shows and i'm not shure how to proceed.