Bug 409729

Summary: KJob doesn't show progress dialog when used in a QCoreApplication
Product: [Frameworks and Libraries] frameworks-kcoreaddons Reporter: Alexis <contact>
Component: generalAssignee: Michael Pyne <mpyne>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: kdelibs-bugs
Priority: NOR    
Version: 5.59.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

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.