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

Guillaume guillaume.costes at live.fr
Fri Jan 9 02:17:02 PST 2015


Hi,

Still the same problem.

Sorry for code, but here it is:

def formTravROpen(dialog,layerid,featureid):

	global myDialog
	myDialog = dialog
	myDialog.window().resize(1263,726)    # Resizes window to the first opening
	myDialog.window().saveGeometry()
	
	global open
	open = dialog.findChild(QToolButton,"open")
	
	[......]
	
	QObject.connect(open, SIGNAL("clicked()"), fct_agrandir)
	
def fct_agrandir():                                    # Resizes window when
button is clicked
	if(myDialog.window().width() != 1263):
		myDialog.window().resize(1263,726)

	else:
		myDialog.window().resize(701,726)


Thank you very much for your time.

Guillaume



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-2-6-ui-form-window-size-tp5180053p5180746.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list