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                                                                             
  
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to