[Development] QKeySequenceEdit: Unable to assign tab
Laszlo Papp
lpapp at kde.org
Fri Jun 24 17:50:33 CEST 2022
Hi,
I am unable to assign tab to QKeySequenceEdit. Do you know what the issue
may be?
Is this a Qt bug or am I doing something wrong?
You can find the small testbed code below that reproduces the issue.
Working version: https://imgur.com/a/Mng0Rpv
Non-working version: https://imgur.com/a/tSle7W9
Thanks.
Kind regards,
László
---
#include <QApplication>
#include <QKeySequenceEdit>
#include <QPushButton>
#include <QVBoxLayout>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QWidget mainWindow;
QVBoxLayout* layout = new QVBoxLayout;
// If I comment the button out, I can assign tab to keySequenceEdit
QPushButton *okButton = new QPushButton("Ok");
layout->addWidget(okButton);
QKeySequenceEdit* keySequenceEdit = new QKeySequenceEdit();
layout->addWidget(keySequenceEdit);
mainWindow.setLayout(layout);
mainWindow.show();
return app.exec();
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20220624/63d5e801/attachment.htm>
More information about the Development
mailing list