Results 1 to 7 of 7

Thread: color setting idiom

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jun 2011
    Posts
    56
    Qt products
    Qt4
    Thanks
    7

    Default Re: color setting idiom

    Quote Originally Posted by AlexSudnik View Post
    Why not to use QColor::setAlpha ( int alpha ) or QColor::setAlphaF ( qreal alpha ) ?
    Because doing so would not be much different to what I am doing now.


    Added after 37 minutes:


    Quote Originally Posted by SixDegrees View Post
    One of the QColor constructors takes r,g,b,a values.
    Looks like I ought to file a Qt bug.
    Last edited by ugluk; 21st July 2011 at 11:16.

Similar Threads

  1. Saving color setting
    By waynew in forum Qt Programming
    Replies: 10
    Last Post: 13th January 2015, 14:15
  2. Setting Background Color
    By SixDegrees in forum Qt Programming
    Replies: 5
    Last Post: 16th February 2011, 19:33
  3. How can I get System setting color
    By dpatel in forum Qt Programming
    Replies: 2
    Last Post: 20th July 2010, 09:20
  4. QTreeWidgetItem setting color for the text
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 29th August 2007, 18:22
  5. setting text also changes color?
    By drhex in forum Qt Programming
    Replies: 5
    Last Post: 22nd November 2006, 17:36

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.