View Full Version : transparence of Color in qt3???
Stephano
17th May 2006, 10:41
hello ,
Can i define the transparence of color with Qt3.4?
I mean that qt 4 define QRgba.
thanks
zlatko
17th May 2006, 11:33
Hm...qRgba available in Qt3..what you want to do?
Stephano
17th May 2006, 15:44
QColor *couleur=new QColor( qRgba ( 255,0,0,0 ) , 0xffffffff ) ;
tab_text[text_actif]->setPaletteBackgroundColor(*couleur);
but, what value of "a" in the expression (BOLD) make the text transparent?
Stephano
18th May 2006, 07:29
When i define QRgba with 'a'=0,
the color will nt be transparent..
So, please,what 's the problem?
Thanks to all!!!!!!!!!!
I think alpha in QColor is just to be used with qglColor() only. (When you use QGLWidget for OpenGL)
From the QT docs:
---------------------------
QGLWidget::qglColor ( const QColor & c ) const
Convenience function for specifying a drawing color to OpenGL. Calls glColor3 (in RGBA mode) or glIndex (in color-index mode) with the color c. Applies to the current GL context.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.