Results 1 to 2 of 2

Thread: Change gradient on a state change?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2013
    Posts
    32
    Thanks
    9
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Change gradient on a state change?

    Selecting entirely different gradients work for state changes.
    but
    Adjusting the properties of the current gradient through a function, and returning that gradient does not work unless it is going from a state with no gradient, to a state with a gradient. (Edit: okay I just realized how strange that last sentence was... What I mean, is that the gradient object I am using; the changes to it do not register unless the gradient property of my button is removed, and then reintroduced.)

    There is some programming logic I am not considering... Any thoughts?
    Last edited by Akiva; 15th June 2014 at 17:12.

Similar Threads

  1. Change state property within a current state?
    By prophet0 in forum Qt Quick
    Replies: 1
    Last Post: 30th May 2012, 19:23
  2. Replies: 2
    Last Post: 13th November 2011, 02:30
  3. QStateMachine state change problem
    By QTie in forum Qt Programming
    Replies: 0
    Last Post: 6th June 2011, 09:09
  4. Handling window state change
    By sudhansu in forum Qt Programming
    Replies: 0
    Last Post: 10th November 2010, 12:28
  5. Change position according to QCheckBox State
    By champ in forum Qt Programming
    Replies: 5
    Last Post: 6th June 2010, 18:37

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.