View Full Version : Custom SpinBox
Luis Rodriguez
13th March 2006, 16:06
I need to customize the drawing for the QSpinBox. I implemented the paintEvent method in my subclass but the base class QSpinBox insists on drawing a small borderless rectangle over part of my drawing. How do I stop this?
jrideout
13th March 2006, 16:43
Try spinbox>setFrame(false);
Luis Rodriguez
13th March 2006, 17:52
Thanks. Tried that but it didn't help. I don't understand why this is happening. The QSpinBox must be creating a child widget that is doing the drawing. Is there some way to intercept paint events going to the children of a widget?
Luis Rodriguez
13th March 2006, 18:25
AHA! It was the QSpinBox's QLineEdit object. I just moved the QLineEdit over to the proper location for my custom SpinBox and all is well.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.