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. Display qml components from a module in the library of Qt Quick Designer
QtWS25 Last Chance

Display qml components from a module in the library of Qt Quick Designer

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qtquickdesignerqmlcomponentmodule
1 Posts 1 Posters 1.1k Views
  • 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.
  • O Offline
    O Offline
    Okyn
    wrote on 12 Feb 2016, 14:25 last edited by Okyn 2 Dec 2016, 14:55
    #1

    Hi !

    I have developed custom qml components such as MyButton.qml and MyComboBox.qml. I created a module in order to use those files in several projects. My goal is to see them in the Qt Quick Designer library such as (Qt Quick - Basic or Qt Quick - Controls).

    So I have created a directory named MyComponents in /home/okyn/Qt5.6.0/5.6/gcc_64/qml with the following files inside :

    • MyButton.qml

    • MyComboBox.qml

    • qmldir

    In the qmldir file there is

    module MyComponents
    MyButton 1.0 MyButton.qml
    MyComboBox 1.0 MyComboBox.qml
    designersupported
    

    In a new project, when I use import MyComponents 1.0 and when I use MyButton and MyComboBox it works. The canvas of qt quick designer displays well my components.

    But to do that, i have to use the edit mode. So my problem and my question is :
    How can I have my custom components in the library of components in qt quick designer so that I can drag and drop them. (I know how to do it with qml files of a project but here it's not what I want to do, I want those components to be used in all projects by just calling import MyComponents 1.0)

    Thank you !

    okyn

    1 Reply Last reply
    0

    1/1

    12 Feb 2016, 14:25

    • Login

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