Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    How can I see custom components in QtDesigner?

    QML and Qt Quick
    1
    1
    289
    Loading More Posts
    • 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.
    • M
      Maurizio Parafati last edited by

      I am developing a Qt Quick 2 Application using QML to define my components.

      I would like to create a folder in the project where to put common components (such as customized buttons or labels), and specifically I would like to see this components in the Qt Designer view, in order to be able to drag-drop those elements while designing new views.

      I see that the Qt Designer view only shows to you the components located at the same path of the qml that you are currently developing, but I haven't found a way to display components located in other paths.

      The project tree should be something like this:

      RootFolder
          CommonComponents
          Views
      

      where the qmls developed in the Views folder will use components defined in the CommonComponents folder.

      Does anyone know how to configure the project or the QtDesigner in order to achieve this goal? Thanks

      1 Reply Last reply Reply Quote 0
      • First post
        Last post