>> it looks like both 4.3.4 and 4.4 are doing the right thing. I did not have 4.3.x installed any more so I didn't test that. Our application is definitely showing different behavior with 4.4, though. I'm sure there is something with deferred delete. You're saying that it is correct for the line edit to cover the combo box when editing has been disabled?
I understand that this is probably lower priority, so we've restructured our app a little so that this doesn't happen. This is no longer a problem for us, but it probably will affect others. Rob ----- Original Message ----- From: Bradley T. Hughes <[EMAIL PROTECTED]> To: LEFEBVRE,ROB (A-USA,ex1) Cc: [email protected] <[email protected]>; PARKER,TOM (A-Sonoma,ex1) Sent: Tue Mar 11 03:18:58 2008 Subject: Re: Combo Box Problem (Deferred delete) Hi Rob, Sorry for the late reply, it's been a bit busy around here after the 4.4.0 beta. [EMAIL PROTECTED] wrote: > There is an issue with the deferred delete that effects the combo box. > Put a combo box on a dialog, and construct the dialog from an event handler. > Set > and reset the editable property. This will create a line edit that is then > marked for deferred deletion at line 1563 of qcombobox.cpp in void > QComboBox::setEditable(bool editable). The problem is that the line edit > never gets deleted because we are in an event handler, so it stays on the > dialog box. (Perhaps setting it invisible would help???) I've replicated it > on 32-bit Windows Vista. > > This code works in Qt 4.3.4. It also works if the combo box is on the > main window, which made initial replication of the problem in a simple program > tricky! I've tried your code on Windows XP with both 4.3.4 and 4.4, and I see the exact same behavior in both versions (the line edit is not deleted and covers the combobox). I'll have a colleague of mine try on Vista as well, but at first glance, it looks like both 4.3.4 and 4.4 are doing the right thing. -- Bradley T. Hughes - bhughes at trolltech.com Trolltech ASA - Sandakervn. 116, P.O. Box 4332 Nydalen, 0402 Oslo, Norway
