Kirigami should provide qmltypes
Open, Needs TriagePublic


QML plugins should ship qmltypes and point to them with a typeinfo declaration inside the qmldir file to provide out-of-the-box support for code completion (etc.) in IDEs and other tooling. (E.g. QtCreator). Kirigami currently does not do this.

Since as of Qt 5.7 the qmplugindump tool needs additional flags to work, currently QtCreator doesn't work for Kirigami UIs at all:

  • The code model is useless due to missing information, so code completion etc. don't work.
  • The UIs cannot be loaded into the designer, because QtCreator's fallback qmlplugindump invocations fail.

Kirigami should ship a .qmltypes file that is verified to work. Such files could possibly be generated by invoking a command during make install phase like this:

qmlplugindump -defaultplatform -nonrelocatable org.kde.kirigami 2.0 /path/to/install/prefix/lib/x86_64-linux-gnu/qml
ouwerkerk created this task.Mar 5 2017, 1:29 PM
mart moved this task from To Do to Done on the Kirigami board.Aug 18 2017, 8:33 AM