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. Error: Empty property assignment?
Forum Updated to NodeBB v4.3 + New Features

Error: Empty property assignment?

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

    Hello,

    is it possible to use QML folders that are stored in a different folder? I am trying to use a composite ("screens/splashscreen.qml") in a file that is one folder up ("main.qml")?

    I tried import "screens" but get the error: _qrc:/main.qml:8:5: Empty property assignment _

    main.qml:
    @
    import Qt 4.7
    import "screens"

    Rectangle {
    width: 640
    height: 480

    splashscreen {
    
    }
    

    }
    @

    screens/splashscreen.qml:
    @
    import Qt 4.7

    Rectangle {
    width: 640
    height: 480
    color: red

    }
    @

    Cheers
    Tom

    [EDIT: code formatting - please use @-tags, Volker]

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tomjanssens
      wrote on last edited by
      #2

      Just resolved the problem myseld. Apparently the file Splashscreen.qml must be written with a capital. Some kind of QT magic.

      Cheers
      Tom

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbrasser
        wrote on last edited by
        #3

        For reference, the documentation regarding component naming is at http://doc.qt.nokia.com/4.7-snapshot/qml-extending-types.html#defining-new-components. The error message isn't very helpful in this case; I'll try to see if it can be improved.

        Regards,
        Michael

        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