[Interest] Beginning with graphics effects
bob smith
qtnewbie at outlook.com
Thu Nov 28 10:35:29 CET 2013
Hi
I apologies if this message appears twice -
was having problems registering with list (I surely am a noob!)
I am new to Qt and have started playing with graphics effect and cannot quite achieve what I want.
I have a an object of type QWidget that has a QButton as a child.
I want to apply a different effect to the QWidget and the button -
m_effect1 = new QGraphicsOpacityEffect();
m_effect2 = new QGraphicsOpacityEffect();
m_effect1->setOpacity(1.0);
m_effect2->setOpacity(1.0);
ui.pushButton->setGraphicsEffect(m_effect2);
ui.stackedWidget->setGraphicsEffect(m_effect1);
When I run the Qt complains the a paint device can only be painted by one painter at a time
Could anyone be kind enough to help me?
Thanks
Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131128/92457463/attachment.html>
More information about the Interest
mailing list