Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Binding lost in component

Binding lost in component

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 275 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi,
    I'm trying to build an advanced component using QML that would be a date picker. It looks like a combobox that pops a Calendar instead of a list of item. I have created a date property which is bi-bidirectionally bound externally. The problem I have is that inside my component there is some script that updates the date property and as soon as I do that any biding is lost. So far I couldn't figure out how that component can change internally its value without breaking bindings. I also had a look on the spinbox which somehow affects its internal value with buttons but I can see here that C++ methods are used to change the value, not Java script.
    Is it possible for a component to change one of its public properties without breaking external bindings?
    Can anybody give me a clue on how to do that?
    Help much appreciated.

    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