Hi,
I just wanted to know if inside the Designer :
- we can set shortcut to an action. There is a field, but when I edit my action I cannot see any way to do this.
- there is a way to set Stretch Factor to a splitter.
Thanks.
Printable View
Hi,
I just wanted to know if inside the Designer :
- we can set shortcut to an action. There is a field, but when I edit my action I cannot see any way to do this.
- there is a way to set Stretch Factor to a splitter.
Thanks.
Yes. After choosing the shortcut field, simply press the shortcut you want to assign.
Stretch factors are in the sizePolicy group.Quote:
there is a way to set Stretch Factor to a splitter.
If you're asking about stretch factors of objects within a splitter, they will work properly although as far as I remember splitters in Designer might not respect them.
Yes, sorry I forgot to tell "without going in the Property Editor", I wanted to set them directly inside the "Action Editor" when double clicking on an action.
I wasn't aware of this and when I watched the resulting code, I have doubts.
If I make it by hand, I will code something like this (it's in Python, but we don't care in fact):
Code:
self.splitter.setStretchFactor(0,6) self.splitter.setStretchFactor(1,1)
In the resulting code, I don't have any of these.
But you're right, the Designer does not seems to respect the splitters policy when previewing your form.
No, the shortcut field is read-only. I'm sure you might post a suggestion to Qt Software about it though.
"My" uic generates correct code that includes stretch factors :)Quote:
I wasn't aware of this and when I watched the resulting code, I have doubts.
I do.Quote:
In the resulting code, I don't have any of these.
No, I mean the default one Qt-C++ uses. I used "my" as an opposite to "your".