[Qt-interest] hovering problem in QGraphicsItem

chandrasekar wagmare sekarwagmare at gmail.com
Fri Mar 13 14:33:42 CET 2009


thanks ... it works i set setPalette(QColor) and it works ...
           but how ...? why this stylesheet is not rendering quickly ...
On Fri, Mar 13, 2009 at 3:53 PM, Jesús Fernández <jsfdez at gmail.com> wrote:

> Try changing the background color without using style sheets. I think using
> style sheets is slower than changing the palette.
>
> On Fri, Mar 13, 2009 at 11:15 AM, chandrasekar wagmare <
> sekarwagmare at gmail.com> wrote:
>
>> hi friends,
>> i tried an QGraphicsPixmapItem() hovering method like the
>> *example : drilldown *
>>
>> i add that item to my QGraphicsScene and its working fine ...... i add
>> that GraphicsView to a dialog say .. mainwindowdialog ...
>> there also it works fine .. when i hover the mouse over the item it scaled
>> perfectly ..
>>
>> the problem starts when i set styleSheet to mainwindowdialog in Qt
>> designer
>>                     right click->changeStyleSheet
>> *background-color: rgba(107, 121, 118, 220);*
>>
>> then the scaling of the item become slower comparing to the previous time
>> ... i think the paintEvent takes more time to repaint with the new color
>> value when the mouse hover over the item ...
>> i need to set the background color ... so how can i rectify this problem
>> ...
>> please help
>>
>>
>> --
>> CHANDRU
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>


-- 
CHANDRU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090313/b53e4ae1/attachment.html 


More information about the Qt-interest-old mailing list