<div dir="ltr"><div class="gmail_default" style="font-family:monospace">Tab is likely being grabbed by the window itself (or maybe the QKeySequenceEdit is ignoring) because it's using the tab as a switch to the next thing in the tab order action.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 24, 2022 at 9:51 AM 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:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br><br>I am unable to assign tab to QKeySequenceEdit. Do you know what the issue may be?<div><br></div><div>Is this a Qt bug or am I doing something wrong?</div><div><br></div><div>You can find the small testbed code below that reproduces the issue.</div><div><br></div><div>Working version: <a href="https://imgur.com/a/Mng0Rpv" target="_blank">https://imgur.com/a/Mng0Rpv</a></div><div>Non-working version: <a href="https://imgur.com/a/tSle7W9" target="_blank">https://imgur.com/a/tSle7W9</a><br><br>Thanks.<br><br>Kind regards,<br>László<br><br>---<br><br>#include <QApplication><br>#include <QKeySequenceEdit><br>#include <QPushButton><br>#include <QVBoxLayout><br><br>int main(int argc, char *argv[])<br>{<br>  QApplication app(argc, argv);<br>  QWidget mainWindow;<br><br>  QVBoxLayout* layout = new QVBoxLayout;<br><br>  // If I comment the button out, I can assign tab to keySequenceEdit<br>  QPushButton *okButton = new QPushButton("Ok");<br>  layout->addWidget(okButton);<br><br>  QKeySequenceEdit* keySequenceEdit = new QKeySequenceEdit();<br>  layout->addWidget(keySequenceEdit);<br><br>  mainWindow.setLayout(layout);<br>  mainWindow.show();<br>  return app.exec();<br>}<br></div></div>
_______________________________________________<br>
Development mailing list<br>
<a href="mailto:Development@qt-project.org" target="_blank">Development@qt-project.org</a><br>
<a href="https://lists.qt-project.org/listinfo/development" rel="noreferrer" target="_blank">https://lists.qt-project.org/listinfo/development</a><br>
</blockquote></div>