Hello Wysota,
The tab order is for plugin. I tried the setFocusProxy without exit. This is my code of my custom widget:
AKLbField
::AKLbField(QWidget *parent, Qt
::WFlags f
){
createObjects();
init();
}
AKLbField::~AKLbField()
{
}
void AKLbField::createObjects()
{
akLabelName = new AKLabel();
akFieldEdit = new AKField();
setFocusProxy(akFieldEdit);
qHBoxLayout->addWidget(akLabelName);
qHBoxLayout->addWidget(akFieldEdit);
qVBoxLayout->addLayout(qHBoxLayout);
setLayout(qVBoxLayout);
}
AKLbField::AKLbField(QWidget *parent, Qt::WFlags f)
: QWidget(parent, f)
{
createObjects();
init();
}
AKLbField::~AKLbField()
{
}
void AKLbField::createObjects()
{
akLabelName = new AKLabel();
akFieldEdit = new AKField();
setFocusProxy(akFieldEdit);
QHBoxLayout *qHBoxLayout = new QHBoxLayout();
qHBoxLayout->addWidget(akLabelName);
qHBoxLayout->addWidget(akFieldEdit);
QVBoxLayout *qVBoxLayout = new QVBoxLayout();
qVBoxLayout->addLayout(qHBoxLayout);
setLayout(qVBoxLayout);
}
To copy to clipboard, switch view to plain text mode
When I go to the designer I cannot assign tab order to my custom widget whole.
Bookmarks