<div dir="ltr">I managed to trim down this to a small testbed that reproduces the issue in case anyone could have a look. We ought to find out whether it is a Qt bug or a bug in my code:<div><br></div><div><a href="https://github.com/lpapp/examples/blob/main/qt-simple-hotkey-editor/hotkeyEditorWidget.cpp">https://github.com/lpapp/examples/blob/main/qt-simple-hotkey-editor/hotkeyEditorWidget.cpp</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 28, 2022 at 4:32 PM Laszlo Papp <<a href="mailto:lpapp@kde.org">lpapp@kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have authored an example keyboard shortcuts editor application. The source code is available on my github repository.</div><div><br></div><div>It has this auto-expansion issue for the first group for some reason. When I am trying to get to action in e.g. Context1 -> Category1 -> then any action to select, the first Context0 group expands. If I remove the QSortFilterProxyModel use, it does not do that.</div><div><br></div><div>Here is a visual gif representation of the issue:</div><div><br></div><div><a href="https://imgur.com/a/rxdYmZp" target="_blank">https://imgur.com/a/rxdYmZp</a><br></div><div><br></div><div>Can anyone spot the issue with my code? The code is available here:</div><div><br></div><div><a href="https://github.com/lpapp/examples/blob/main/qt-hotkey-editor/hotkeyEditorWidget.cpp" target="_blank">https://github.com/lpapp/examples/blob/main/qt-hotkey-editor/hotkeyEditorWidget.cpp</a><br></div><div><br></div><div>Thank you in advance.</div><div><br></div><div>Kind regards,</div><div>László</div></div>
</blockquote></div>