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. compiled qml components
Forum Updated to NodeBB v4.3 + New Features

compiled qml components

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 267 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.
  • D Offline
    D Offline
    damianatorrpm
    wrote on last edited by
    #1

    Hi!

    I know you can create a cutom c++ extension for QML which resides in /usr/lib/qml/....
    and than import that and use in you QML program.

    Is it possible though to have QML components that are compiled (using qtquickcompiler thus the code is not shown) in such library?
    //BlueRectangle.qml
    Rectangle
    {
    color: "blue"
    }

    //in your application
    import Tools 1.0

    BlueRectangle {}

    1 Reply Last reply
    0
    • fcarneyF Offline
      fcarneyF Offline
      fcarney
      wrote on last edited by
      #2

      If you have an extension already created will it allow you to create a qrc file? When you bring in that extension does it recognize the files in that qrc file? Maybe give it a college try?

      C++ is a perfectly valid school of magic.

      1 Reply Last reply
      1
      • D Offline
        D Offline
        damianatorrpm
        wrote on last edited by
        #3

        It's pretty complicated because in the custom component I use functions of the c++ lib part
        so they contain import Tools 1.0 (which the custom components should be part of)

        I supposed it wouldn't be as easy...
        But somehow due to some magic it simply works, thanks a lot for the suggestion!!

        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