[Interest] Whole edit window closes.

Elvis Stansvik elvstone at gmail.com
Sun Mar 17 10:25:55 CET 2019

Den tis 12 mars 2019 kl 21:40 skrev Bill Crocker <william.crocker at analog.com>:
> Hello:
> Sorry. A boring old desktop widget problem...

Just wanted to comment on this: I'm doing 99% widgets and 1% QML, so I
for one welcome some good'ol fashioned widgets posts :) Keep them


> I have a QTableView.
> I use a QStyledItemDelegate on each cell.
> The delegate opens a custom, modal editor on double click.
> The editor is based on a QDialog and contains a number of widgets,
> one of which is a QComboBox.
> When I press <Return> in the text entry area of the QComboBox,
> the whole edit window closes, but I am not done "editing". Arg.
> (Most of the time that is what you want because the QComboBox is
>   the only widget in the editor, but not here.)
> I have tried a number of things related to focus, default buttons
> but nothing has worked.
> How do I keep the editor open
> until I press the OK button.
> Thanks.
> Bill
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest

More information about the Interest mailing list