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. Item3D / mesh : restore original effect after it has been altered?
QtWS25 Last Chance

Item3D / mesh : restore original effect after it has been altered?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.6k 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.
  • B Offline
    B Offline
    billouparis
    wrote on last edited by
    #1

    Hello I have this Item3D i want to be able to dynamically change its effect. First I want to display the standard effect already coded inside the mesh file itself. After a certain time/action I want to update the effect to something I would set up. Then after another period of time I want to come back to the original effect described in the mesh file:
    @
    Item3D {
    id: my3DItem
    mesh: "blahblah";
    }

    onSomeEvent1 {
    my3DItem.effect = Effect { color: "red"}
    }

    onSomeEvent2 {
    // here I want my mesh to restore its original effect/ clear the red color on it
    //what do I have to write here?
    }

    @

    Thank you,
    Bill

    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