Skip to content
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

Read data from any URL not just files #16

Closed
farling42 opened this issue Nov 16, 2017 · 3 comments
Closed

Read data from any URL not just files #16

farling42 opened this issue Nov 16, 2017 · 3 comments

Comments

@farling42
Copy link
Owner

farling42 commented Nov 16, 2017

When loading data into an external object (e.g. picture or image), allow the path to be any URL rather than just a local file.

@farling42
Copy link
Owner Author

See example in the QNetworkAccessManager class for how to download a file.

It sends a signal when the download is complete, so this will complicate generation of the RW export file.

@farling42
Copy link
Owner Author

Wait for the finished signal with something like:

QNetworkReply *reply = network_access_manager->get(QUrl(...));
while (!reply ->isFinished())
qApp->processEvents(QEventLoop::WaitForMoreEvents);
// check reply->error()

@farling42
Copy link
Owner Author

URL access implemented, including web redirects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant