[Qgis-developer] QGIS 2.6: .ui form window size

Matthias Kuhn matthias at opengis.ch
Mon Jan 5 14:28:15 PST 2015


Hi Guillaume,

Does the following code work?

dialog.window().resize( 520, 555 )

Regards,
Matthias

On 01/05/2015 04:45 PM, Guillaume wrote:
> Hello everyone,
>
> Following a message on Georezo : 
> http://georezo.net/forum/viewtopic.php?pid=262178
> <http://georezo.net/forum/viewtopic.php?pid=262178>   I was advised to post
> a message here by calling Matthias Khun.
>
> I try to adapt tools running on QGIS 2.2 to version 2.6 but I have a
> blocking bug...
>
> I use to complete my attribute tables forms created with QT- Creator (.ui )
> associated with pythons files that allow me to create drop-down lists , data
> validation , etc. and blocking bug : *resize windows with a button or simply
> open the form.*
>
> For this I use the following code that works fine with 2.2 but has no effect
> on the 2.6:
> code :
>
>
> 	
> It works well on objects from my window ( groupbox , text box, etc.) but not
> on the size of the window even her.
>
> Do you have an explanation or idea to solve this problem?
>
> /*Note:* In terms of the explanation , I can be a track: When the form
> opens, there is now a "Actions" button that corresponds to the predefined
> actions on the tables (see PJ) . Very useful but should certainly compel
> QGIS to group the ui + provided something for this button to produce the
> window and no longer use the .ui directly.../
>
> <http://osgeo-org.1560.x6.nabble.com/file/n5180053/bouton_action.png> 
>
> Thank you in advance and Happy New year !
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-2-6-ui-form-window-size-tp5180053.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150105/9062c2c5/attachment.pgp>


More information about the Qgis-developer mailing list