Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Load qml-files inside a folder as tabs in a TabView
Qt 6.11 is out! See what's new in the release blog

Load qml-files inside a folder as tabs in a TabView

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      What do you want to know, how you create objects dynamically or how to read a folder or both?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Yeah, how to create objects dynamically and whether its possible to accomplish the folder-reading also in QML itself.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Please add [SOLVED] to all your solved threads because for other users it's a nice help to see if a thread is solved.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved