Load qml-files inside a folder as tabs in a TabView
-
I've got a Qt Quick (and C++ application) and would like to enable my users to write their own plugins in QML. Therefore I'd like to load all qml-files inside a folder as tabs in a TabView.
What's the best way to achieve that?
-
What do you want to know, how you create objects dynamically or how to read a folder or both?
-
Yeah, how to create objects dynamically and whether its possible to accomplish the folder-reading also in QML itself.
-
Both questions are answered here in the forum. Simply use search function or google. So here are your answers.
"Here":http://qt-project.org/doc/qt-4.8/qdeclarativedynamicobjects.html
"Here":http://qt-project.org/doc/qt-5/qml-qt-labs-folderlistmodel-folderlistmodel.html
-
Please add [SOLVED] to all your solved threads because for other users it's a nice help to see if a thread is solved.