Re: [Development] QDialog vs QPushButton and it's autoDefault default

2019-02-12 Thread Bernhard Lindner
Hi Volker! Hm, ok, I see. Thanks a lot for the explanations. Turned out the reason why the autoDefault heuristics kicks in is because the accept-role- button is disabled by default (until the user selects an item from the table). So the heuristic takes over a bit to early. To provide a non-auto

Re: [Development] QDialog vs QPushButton and it's autoDefault default

2019-02-12 Thread Volker Hilsheimer
> On 11 Feb 2019, at 22:47, Bernhard Lindner > wrote: > > Hi! > > I just experienced same strange behavior of QPushButton. I want to kindly ask > for some > explanations. > > I wrote a QDialog derived dialog. That dialog has a standard QDialogButtonBox > with > "Accept" and "Close" buttons.

[Development] QDialog vs QPushButton and it's autoDefault default

2019-02-11 Thread Bernhard Lindner
Hi! I just experienced same strange behavior of QPushButton. I want to kindly ask for some explanations. I wrote a QDialog derived dialog. That dialog has a standard QDialogButtonBox with "Accept" and "Close" buttons. It also has various other widgets, especially a table view for item selectio