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. Qt Quick Platform support
Forum Updated to NodeBB v4.3 + New Features

Qt Quick Platform support

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 2.0k 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.
  • AlicemirrorA Offline
    AlicemirrorA Offline
    Alicemirror
    wrote on last edited by
    #1

    Hi,

    I am porting some applications on the new Qt SDK 1.1 beta both for testing purposes and because the new version has a lot of useful improvements. Regarding the Qt-Quick I appreciated that is able without great difficulties to import previous QML projects. In the documentation the process is cleared explained, but speak about only one QML file.
    Importing QML projects that use more than one file (in a subdirectory of the QML project) the main file is imported while the related QML sources are left where they are and are only linked in some ways. Everything works but the problem is that the "linked" files can't be included in the subversion repository. Is there a way to move the files? Is this a bug or it is the right way the new platform should work?

    Enrico Miglino (aka Alicemirror)
    Balearic Dynamics
    Islas Baleares, Ibiza (Spain)
    www.balearicdynamics.com

    1 Reply Last reply
    0
    • AlicemirrorA Offline
      AlicemirrorA Offline
      Alicemirror
      wrote on last edited by
      #2

      SOLVED

      The documentation reports that specifying where is the old main QML source the previous code is imported. As a matter of fact, the project is "linked" (probably there is a more precise term to describe)
      What I found in the .pro file is something like this:

      @# Add more folders to ship with the application, here
      folder_01.source = ../old_qml_folders
      folder_01.target = qml
      DEPLOYMENTFOLDERS = folder_01@

      To solve the question, simply copy (or move) the old QML directory tree in the new QT-Quick project folder and edit the .pro project file so it became something like this:

      @# Add more folders to ship with the application, here
      folder_01.source = ./
      folder_01.target = qml
      DEPLOYMENTFOLDERS = folder_01@

      Then, close and re-open the project. Don't forget to add the new files to the repository list, e.g. I have done for the git repo:

      @$>git add *
      $> git commit -m 'Moved old QML source files to the right folder'@

      That's all.

      Enrico Miglino (aka Alicemirror)
      Balearic Dynamics
      Islas Baleares, Ibiza (Spain)
      www.balearicdynamics.com

      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