Results 1 to 2 of 2

Thread: QML Autocompletition

  1. #1
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default QML Autocompletition

    Hello friends,

    when I create my object dynamically like:

    Qt Code:
    1. var oObj = Qt.createComponent("myobject.qml");
    2. oObj = oObj.createObject(root);
    To copy to clipboard, switch view to plain text mode 

    I have no autocompletition in QtCreator is this normal behavior?

    When I create it in main.cpp:

    Qt Code:
    1. engine.rootContext()->setContextProperty("oObj", new MyObject());
    To copy to clipboard, switch view to plain text mode 

    I have no problem in autocomplete in editor!


    Any suggestion/Informations to this behavior?


    Yours,

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QML Autocompletition

    Yup that is normal. Its not a problem in Qt creator. Its a dynamic member which needs to be access only at the run time as in every scripting language.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.