Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Cannot work with components imported from QT Design Studio

Cannot work with components imported from QT Design Studio

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 627 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.
  • M Offline
    M Offline
    Marco Veglio
    wrote on last edited by
    #1

    Hi all,

    I'm trying to integrate QT Bridge, QT Design Studio and QT Creator in our development process.
    Right now I can create the UI in Adobe PS and export it to QT DS thanks to the plugin. So I have a QTDS project with all the .ui.qml files.

    Then I can import all of this to QT Creator (no qt quick timeline). From now on, let's say I have two forms, "Artboard1_form.ui.qml" and "Artboard2_form.ui.qml".

    Then I tried to add an Artboard1.qml file to add some business logic into my form. It has the following content

    import QtQuick 2.0
    import "qml/Artboard1_form.ui.qml" // <- path is correct
    Artboard1_form                     // <- but here I gen an "Unknown Component (M300)" error
    {
    }
    

    However, with this simple code I get an M300 error (unknown component) on the "Artboard1_form" line.

    Also, if in my "main.qml" I try to add a reference to either component, I get errors

    Window {              // some very generic stuff
        visible: true 
        width: 640
        height: 480
        title: qsTr("Hello World") 
        Artboard1_form    // <- here, I get an "Unknown component (M300)" error
        {
        }
    
    // line below, I get a "Could not resolve the prototype "Artboard1_form" of "Artboard1" " (M301) error
        Artboard1  
        {
        }
    }
    

    Any idea on why Qt Creator complains and how I can fix these errors?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Again, please do not post the same question in multiple sub-forum.

      One is enough.

      Duplicate

      Closing this one.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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