<table><tr><td style="">Zren added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5170" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Thought you might want that, but wasn't sure how to expose QStandardPaths to QML. Got an example handy? All I can find is:</p>

<p><a href="https://github.com/KDE/plasma-framework/blob/master/src/declarativeimports/plasmacomponents/enums.h" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/KDE/plasma-framework/blob/master/src/declarativeimports/plasmacomponents/enums.h</a><br />
<a href="https://github.com/KDE/plasma-framework/blob/master/src/declarativeimports/plasmacomponents/plasmacomponentsplugin.cpp#L91" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/KDE/plasma-framework/blob/master/src/declarativeimports/plasmacomponents/plasmacomponentsplugin.cpp#L91</a></p>

<p>That seems to require the enum to be a child of a QObject.<br />
The actual class itself isn't a QObject.<br />
<a href="https://github.com/qt/qtbase/blob/dev/src/corelib/io/qstandardpaths.h" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/qt/qtbase/blob/dev/src/corelib/io/qstandardpaths.h</a></p>

<p>Which would mean rewriting the entire class like this guy did, with qstatic_casting either an int, or a copy of the enum.<br />
<a href="https://forum.qt.io/topic/61543/qstandardpaths-not-available-in-qml/11" class="remarkup-link" target="_blank" rel="noreferrer">https://forum.qt.io/topic/61543/qstandardpaths-not-available-in-qml/11</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5170" rel="noreferrer">https://phabricator.kde.org/D5170</a></div></div><br /><div><strong>To: </strong>Zren, hein<br /><strong>Cc: </strong>plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>