PDA

View Full Version : Custom push button issue



tvj4218
26th March 2017, 23:27
I've got a custom button subclassed from QPushButton.
I draw an image in the button followed by some text, using painter.drawRect and painter.drawText.
Initially the button shows up fine, but when I click on it, the text disappears. The image is still there.
When I click on it again, the text reappears, the image also still there.

Not sure why the text disappears. Any ideas?

Thanks.

t

Ginsengelf
27th March 2017, 08:18
Hi, could you show some code?

Ginsengelf