Feature request #8784

Set Drag and Drop Forms windows size

Added by Pedro Venâncio over 10 years ago. Updated over 9 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:GUI
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:17488

Description

In QGIS 2.0 it is possible to define the window size of custom forms in the designer, and QGIS will respect that.

But there is no way to set the form size, in the case of drag and drop forms. Every time the form opens, returns to the default (width/height) window size.

It would be interesting to be able to define the size of the window form in the Layer properties -> Fields, together with the creation of the drag and drop form itself.

Thanks!

Associated revisions

Revision 38c2eebf
Added by Matthias Kuhn over 9 years ago

Attribute dialog: save/restore window geometry
Fix #8784

History

#1 Updated by Matthias Kuhn over 9 years ago

What do you think about saving/restoring the window geometry? So when you resize it to a comfortable size it will open the same way next time. This would also affect Qt Designer forms, but I think that this would be ok.

#2 Updated by Pedro Venâncio over 9 years ago

Hi Matthias,

I think it would be great! Much better than it is at the moment, which always returns to its original size.

Thank you very much!

#3 Updated by Nathan Woodrow over 9 years ago

Setting the size is the wrong way to go IMO it should just remember the size it was set to last like everything else.

Custom forms should should always open at the designer set size because it would be done for a reason.

#4 Updated by Pedro Venâncio over 9 years ago

Hi Nathan,

Setting the size is the wrong way to go IMO it should just remember the size it was set to last like everything else.

Yes, after Matthias suggested this way, I also thought it's even better than how I originally suggested the feature request.

Custom forms should should always open at the designer set size because it would be done for a reason.

On first use, the size will always be the defined in QT designer, right? Ie, that size will be changed only if the users modify it.

Different situation is the case where you set a fixed size to the form (I believe it is possible in QT designer). In this case, it should not be possible to change the original size of the form in any way. Does this change may interfere with that option?

Thanks!

#5 Updated by Matthias Kuhn over 9 years ago

  • Status changed from Open to Closed

#6 Updated by Matthias Kuhn over 9 years ago

Qt designer will save a fixed size in most cases, so it's not possible to distinguish if it was intentional or not.
The current implementation will remember the dialog size application wide and not on a per-dialog basis. This might be considered for future releases.

#7 Updated by Pedro Venâncio over 9 years ago

Thank you very much Matthias!!!

Best regards!

Also available in: Atom PDF