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 Creator 4.0 qml specifics files ignored
QtWS25 Last Chance

Qt Creator 4.0 qml specifics files ignored

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qt creator 4.0qmldirqmldesignermodules
3 Posts 3 Posters 1.3k 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 23 May 2016, 09:02 last edited by
    #1

    Hi,
    I switched from qt creator 3.6 to 4.0 and there is something very strange.
    I have custom QML files in a directory like this :

    MyModule (folder)
            MyFile1.qml
            MyFile2.qml
            qmldir
            designer (folder)
                    MyFile1Specifics.qml
                    MyFile2Specifics.qml
                    MyModule.metainfo
    

    and the content of qmldir file is

    module MyModule
    MyFile1 1.0 MyFile1.qml
    MyFile2 1.0 MyFile2.qml
    designersupported
    

    In qt creator 3.6 when I import this directory with QML2_IMPORT_PATH the .specifics files from the designer folder where taken into account but with qt cretaor 4.0 it doesn't work. QML files are displayed in the library but the layout I have defined in the .specifics files is not display.

    If you have an idea to solve my problem I would be happy :)

    Thanks !

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 May 2016, 20:56 last edited by
      #2

      Hi,

      Looks like something has changed. I'd recommend asking this on the Qt Creator mailing list. You'll find there Qt Creator's developers/maintainers. This forum is more user oriented.

      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
      0
      • T Offline
        T Offline
        Thomas Hartmann
        wrote on 31 May 2016, 11:25 last edited by
        #3

        Hi,

        I am not aware of any changes to the lookup of the the specifics files.
        And everything you describe looks good.
        Can you try to use the QML_IMPORT_PATH variable of qmake instead of the QML2_IMPORT_PATH environment variable?

        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