|
|
It must be some sort of resource leak....
Check for new connections being made... I had a similar bug, where each
of my sub widgets was accidentally getting reconnected... So not only
were my connections taking longer, the list of signals/slot connections
each object had to delete took longer..
Scott
-----Original Message-----
From: Dave Smith [mailto:dave@xxxxxxxxxxxxxxx]
Sent: Saturday, April 12, 2008 10:15 PM
To: qt
Subject: Re: How to speed up QWidget delete
Stephan Rose wrote:
> On Sat, 2008-04-12 at 12:29 -0600, Dave Smith wrote:
>
>> So my question is: How can I make QWidget deletion faster?
>>
>
> Totally different question. I'm wondering if there maybe isn't a
better
> solution to your problem than throwing 100 widgets at it?
>
> Sounds to me that whatever you're trying to solve may be better solved
> by writing a custom control for that purpose...then you only have 1
> widget.
>
A fair question. I'm using designer to create a simple custom widget
composed of 6 QLabels and a couple buttons, and I put about 20 of these
custom widgets in a list (QScrollArea) programmatically. The labels use
rich text and stylesheets to make them look nice. In my opinion,
creating a custom widget to do that would be serious overkill, not to
mention very time consuming (not that I'm afraid to create custom
widgets when the circumstances call for it).
The really strange thing is that the delete time increases
proportionally with the amount of time the app has been running.
--Dave
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|