Results 1 to 4 of 4

Thread: Binding and onCompleted signal

  1. #1
    Join Date
    Apr 2014
    Posts
    125
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default Binding and onCompleted signal

    Hello

    For the qml components supporting the Component.onCompleted slot. Can I assume that all the binded properties are correct (binding has occurred) when this slot is called?

    When does biding is resolved?

    I guess my question is when one can be sure that all biding has been resolved? is there a signal for that?

    Thanks;

    Mut
    Last edited by mut; 2nd April 2016 at 03:23.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Binding and onCompleted signal

    No, I don't think that all bindings have necessarily been evaluated by the time the onCompleted handler is called.

    But each property has an associated changed signal, so you can react to the initial or any further value change.

    Usually the elements themselves can easily deal with value changes over time.

    Cheers,
    _

  3. #3
    Join Date
    Apr 2014
    Posts
    125
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default Re: Binding and onCompleted signal

    Thanks you for the reply. But my QML component has a lots lots of properties (from its subcomponent). I cannot monitor all of them. Is there a global signal that I can use?

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Binding and onCompleted signal

    There is no such global signal, each property's binding is handled individually.

    Cheers,
    _

Similar Threads

  1. binding to qInstallMessageHandler
    By TorAn in forum Qt Programming
    Replies: 4
    Last Post: 21st December 2013, 16:51
  2. c++ and qml binding
    By ganeshgladish in forum Newbie
    Replies: 8
    Last Post: 8th May 2013, 14:19
  3. qt binding?
    By giugio in forum Qt Programming
    Replies: 4
    Last Post: 15th November 2012, 14:33
  4. binding text in QMl to c++
    By rajeshk.ict in forum Newbie
    Replies: 1
    Last Post: 16th March 2012, 08:40
  5. binding
    By mickey in forum General Discussion
    Replies: 9
    Last Post: 26th September 2006, 21:54

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.