Bug report #11698
Max size of qwidget in QGIS 2.6
|Affected QGIS version:
|Pull Request or Patch supplied:
|Crashes QGIS or corrupts data:
|Copied to github as #:
I found a bug while using UI form (made in QT4) in QGIS 2.6, which doesn't popup in previous versions. I am using relation between layers: pipes and damages (defined in project properties). To edit pipes attributes I use my UI form which contains qwidget, with 'dynamic property' qgisRelation called as relation ID. The problem is that in QGIS 2.6 max size of qwidget window is set on 300x300 (I guess) and I can't make it bigger! In QGIS 2.4 size od qwidget depends on size defined in QT, but QGIS 2.6 ignore every size bigger than 300x300 (if size is smaller it works but up to 300x300).
Please have a look at a small project that I prepared to explain what I mean. If you open it in 2.4 QGIS the size of qwidget (in Tab 2) will be 700x400 but in QGIS 2.6 it's max 300x300.
PS. If I roll up relation 'damage_relation' in Tab2 (using triangle button) I can't get it back - in QGIS 2.4 damages tables still are shown.
#2 Updated by Giovanni Manghi about 9 years ago
Seb Radzimski wrote:
Come on, guys ;) Maybe it's something I am doing wrong ? Because of that issue I can't update to 2.6. Do you see this problem too, or it's just me? (please check attached projekt)
If you need quick feedback the best chances are writing also to the developers mailing list and/or using the #qgis irc channel.
#4 Updated by Giovanni Manghi about 9 years ago
Seb Radzimski wrote:
There is no rush, but I am curious if I have done something wrong, or maybe it is a bug ? If it is, it can be fix in next version, but I just wanted to report what I have noticed.
anyway here you a reach a relatively small audience, so really better write also in the dev mailing list.
#5 Updated by Matthias Kuhn about 9 years ago
- Status changed from Open to Closed
It should work as before with the latest fix.
For 2.6 there is already a custom widget for the relation reference. If you use that instead of the QWidget, it should work also with 2.6.
In general I would recommend you to also assign a layout to your containers (main dialog, tabs...) so the contents expand when the window is resized.