How to access Qt GUI from an library using qt designer form
-
Let me rephrase that: what toolkit does it use ?
Is it already using Qt ?
Are you building that app yourself or are you writing a plugin for it and have no access to its internals ?
-
@SGaist
Its a tool for managing and validating a pkcs#11 module..
For more info please refer Cryptoki manager -
Can you post your code from which you call
show_dialog1( );
? -
I suspect you are not creating the application. try
Q_ASSERT(QCoreApplication::instance());
if it asserts (i.e. instance() returns NULL) then it means you simply forgot to crate the QApplication before creating any QWidget -
The question you are not answering is: are you working on that software code source directly ?
-
Ok, then are you converting it to a full-blown Qt application ?
-
@SGaist
If you are talking about- Cryptoki manager then i am not working on that application. I working on the library that is used to test with cryptokimanager(thrid party standard application).
As specified earlier, in my library there is a need of dialog part. -
So you are going to call the Cryptoki manager application from your code ?
-
What's still not clear is whether you are writing a full-blown Qt application for that. Is it the case ?
-
-
@Srujan Your Qt application could write to stdout and your library would read stdout of that application and parse it. See the documentation for QProcess.
23/29