-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QEventLoop: Cannot be used without QApplication #45
Comments
QtDropbox is supposed to be used within a Qt application context only. This thereby requires you to start a QApplication in your code so that a EventLoop and signal/slot handling are available to you. Did you start the application or only define it? |
My main.cpp
Then, it executes the Main Window. The QDropbox lib is supposed to be included and executed in a dialog inside this main window. In the Dialog.cpp there is no redefinition of QApplication and there aren't any reference to it. |
I can unfortunately not reproduce this issue. Can you provide a minimal example code that shows the erroneous behaviour? |
You have to execute app.exec() to start event loop
|
Hi,
First I want to show my code:
connect(api,SIGNAL(tokenExpired()),this,SLOT(showAuthError()));
The problem I am getting is that when api->requestToken() is being executed, the following error is shown on console "QEventLoop: Cannot be used without QApplication" so neither the requestToken() or showAuthError() is executed. Basically, I want to access and login with a Dropbox account whose credentials was previously inserted in a QDialog. The QApplication is defined in main.c...
I have no idea what is happening here as I am only following the Doxygen documentation.
Thanks.
The text was updated successfully, but these errors were encountered: