Load qml-files inside a folder as tabs in a TabView
-
wrote on 14 Sept 2014, 18:49 last edited by
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?
-
wrote on 15 Sept 2014, 08:19 last edited by
What do you want to know, how you create objects dynamically or how to read a folder or both?
-
wrote on 16 Sept 2014, 08:35 last edited by
Yeah, how to create objects dynamically and whether its possible to accomplish the folder-reading also in QML itself.
-
wrote on 16 Sept 2014, 09:45 last edited by
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
-
wrote on 25 Sept 2014, 08:02 last edited by
Please add [SOLVED] to all your solved threads because for other users it's a nice help to see if a thread is solved.