Bug 409729 - KJob doesn't show progress dialog when used in a QCoreApplication
Summary: KJob doesn't show progress dialog when used in a QCoreApplication
Status: RESOLVED INTENTIONAL
Alias: None
Product: frameworks-kcoreaddons
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.59.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-11 18:46 UTC by Alexis
Modified: 2019-08-05 19:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis 2019-07-11 18:46:46 UTC
SUMMARY
KIO::getJobTracker()->registerJob(job) doesn't result in progress when you're a QCoreApplication and doesn't even print a warning

STEPS TO REPRODUCE
1. Use a KJob inside a QCoreApplication


OBSERVED RESULT
No progress dialog is shown.

EXPECTED RESULT
A progress dialog is shown.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon User Edition 5.16
KDE Plasma Version: 5.16.3
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.3
Comment 1 Christoph Feck 2019-08-05 19:34:28 UTC
QCoreApplication cannot connect to a graphical environment server. You need at least QGuiApplication.