Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size bug in custom UI forms displaying sub-forms #19899

Closed
qgib opened this issue Nov 14, 2014 · 1 comment
Closed

Size bug in custom UI forms displaying sub-forms #19899

qgib opened this issue Nov 14, 2014 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Nov 14, 2014

Author Name: Médéric RIBREUX (Médéric RIBREUX)
Original Redmine Issue: 11646
Affected QGIS version: 2.6.0
Redmine category:forms


Hello,

I've found a quite annoying bug in custom forms. It occurs only for custom forms that display sub-forms (the sub-forms can be autogenerated, drag'n drop or customized).
The size of the sub-form is limited to (approximatively) 258x277.

I've tried to change sizePolicy, minimumSize, size properties from all of the QWidgets that are the parent of the sub-form dedicated QWidget (QWidget that handle relation with qgisRelation property) but none of these changes made anything.
I've also tried to use QLayout objects but it also doesn't work. I tried to introspect into the custom-form (with a kind of dump method) and the drag'n drop one to find differences but I haven't seen any of them for the part that is related to the sub-form (which starts with a QGroupBox). It seems that the sub-form gets a fixed size (even if its properties tell something else).

I've found that when I manually move the size of the QGroupBox that embed the sub-form (with a Python Init function), I can resize it using the generic QWidget.resize() method.

I am not able to reproduce this bug with auto-generated or drag'n drop (parent) forms.


@qgib
Copy link
Contributor Author

qgib commented Apr 28, 2015

Author Name: Médéric RIBREUX (Médéric RIBREUX)


Hello,

As of QGIS 2.8.1, the bug is fixed ! No need to resize the sub-forms anymore.

Thanks to whoever has fixed this bug !


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms labels May 25, 2019
@qgib qgib added this to the Version 2.8 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
This was referenced May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms
Projects
None yet
Development

No branches or pull requests

1 participant