PDA

View Full Version : Open a dialog from a (editor) widget created by a delegate leads to crash



nightghost
11th February 2010, 09:33
Hello,

The editor widget: I've created a widget with a QLineEdit and with a extra button (open a QFileDialog) for the user to select a path. This path is inserted into the QLineEdit. Works fine and works also when I use the widget as a cellWidget in a view.

The delegate: I've created a custom delegate that returns this widget as a editor, but if I click on the button to select a path the application crashes. I assume this is because the the editor widget loses focus to the Dialog and is deleted.

Does anyone know something more?