Hello,
I'm creating a plugin for Qt Designer, it's a simple QLabel and QLineEdit. When I use it in the designer I cannot set the tab order to the plugin. How I can do it ? it's a property ?
Thank you.
Hello,
I'm creating a plugin for Qt Designer, it's a simple QLabel and QLineEdit. When I use it in the designer I cannot set the tab order to the plugin. How I can do it ? it's a property ?
Thank you.
Of the plugin or of the line edit and label? If the latter, then it's not possible as the custom widget is treated as a single whole, not as two separate widgets. So if you want to set the tab order, set it when designing the custom widget and not when using it in Designer. If the problem is the former, then you might need to set a focus proxy for your custom widget.
Hello Wysota,
The tab order is for plugin. I tried the setFocusProxy without exit. This is my code of my custom widget:
Qt Code:
{ 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); }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.
Last edited by wysota; 23rd April 2007 at 13:52. Reason: missing [code] tags
What does it mean that you can't? The square with a number doesn't appear next to your widget or what exactly happens?
Yes, the square with the number doesn't appear
Change the focus policy of your widget to something different than NoFocus.
fpujol (23rd April 2007)
Bookmarks