Results 1 to 2 of 2

Thread: Change gradient on a state change?

  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 18:12.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Change gradient on a state change?

    Eeemm... would you care to post some code explaining what you mean?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Change state property within a current state?
    By prophet0 in forum Qt Quick
    Replies: 1
    Last Post: 30th May 2012, 20:23
  2. Replies: 2
    Last Post: 13th November 2011, 03:30
  3. QStateMachine state change problem
    By QTie in forum Qt Programming
    Replies: 0
    Last Post: 6th June 2011, 10:09
  4. Handling window state change
    By sudhansu in forum Qt Programming
    Replies: 0
    Last Post: 10th November 2010, 13:28
  5. Change position according to QCheckBox State
    By champ in forum Qt Programming
    Replies: 5
    Last Post: 6th June 2010, 19: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.