[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    DataEngine and Qt UI thread safe
From:       Weng Xuetian <wengxt () gmail ! com>
Date:       2012-04-10 7:37:03
Message-ID: CAKiDycE6_G7n5Gtgk-5-YRpz8BmONiqZJFASPpPonehsoR4Mzw () mail ! gmail ! com
[Download RAW message or body]

Hi,
I'm meeting a problem when fixing a rare bug with my dataengine, case
is like this.
Some program interact with dataengine via DBus, and dataengine set
data and notify plasmoid to display it.
The DBus notification maybe at a very high rate, say 1 times/ms, and
it updates a visibility property of a QWidget.

I use a stupid check (which is removed now), like this:
Widget::updateVisible(bool v)
{
     if (isVisible() != v)  // a stupid check removed now
         setVisible(v);
}

And here's the problem, the widget might be not visible, but
isVisible() returns true in very rare case.. so I wonder am I doing
something really wrong here?

Thanks!
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic