[Qt-interest] Customized QWidget item not visible on QMainWindow

Andreas Diehl Andreas_Diehl at abs.org
Thu Aug 6 08:37:51 CEST 2009


Hmm. According to what you said about the tooltip I suggest that the
solution must be in you painting methods. I'm not experienced in
overwriting those but I looked at the Qt Analog Clock Example (search
for 'analog' in your Qt Assistant) and realized that you never call
setBrush() and setPen() on your painter object. Perhaps it just has the
same color as its parent widget and is therefore invisible?

Regards,
	Andreas
--
Mit freundlichen Gru?en
Andreas Diehl 
 
-------------------------- ABS -------------------------
ABS Systemberatung OHG          Tel: +49 (0)7053/9290-03
Hauffstr. 9                     Fax: +49 (0)7053/9290-
D-75385 Bad Teinach-Zavelstein        http://www.abs.org
Registergericht Calw HRA 1031
[mailto:Andreas_Diehl at abs.org]
 
----- Loesungen fuer den Maschinen- und Anlagenbau -----



More information about the Qt-interest-old mailing list