Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
4.5.3
-
None
-
None
Description
Report from mail-list:
=========================
I have a dialog which contains a QListWidget, a progress bar, softkeys (Select/Cancel) and some hidden buttons (Select/Cancel) which would be used on a desktop instead of the softkeys.
2. Focus gain/loss (On 5800XM)
The softkeys appear with the dialog and all appears good. However if I press select or cancel on the softkeys the listwidget disappears but the keys and background dialog appear still to exist. I have to press select twice or cancel twice to get them to both go.
The dialog is constructed using the Qt designer (in carbide) with the softkeys added in the dialog constructor. The dialog is launched using a static constructor:
QBluetoothAddress QBluetoothRemoteDeviceDialog::getRemoteDevice ( QWidget * parent)
{
QBluetoothRemoteDeviceDialog w(parent); //object deleted when this goes out of scope.
w.discoverBt->startSearch();
if (w.exec() == QDialog::Accepted)
{ return w.selectedDevice(); }else
{ return QBluetoothAddress::invalid; }}
I would expect the "w" to go out of scope and delete itself, removing the softkeys. Any idea why this wouldn't be working?