Höhe der Eingabefelder sind zu hoch

Alles rund um die Programmierung mit Qt Quick und QML
Antworten
dl8aax
Beiträge: 11
Registriert: 2. Januar 2017 16:59
Wohnort: Bei Göttingen
Kontaktdaten:

Höhe der Eingabefelder sind zu hoch

Beitrag von dl8aax »

Moin,

ich will mir eine App fürs Ubuntuhandy bzw. Tablett machen.
Mein Problem ist aber das die Eingabefelder viel zu hoch sind.
Wie bekomme ich das hin ?

Code: Alles auswählen

					Text {
                				id:lgt
                			  text: i18n.tr('Lämgengrad :')
							  color: "blue"
							   x :rectangle_1.x + units.gu(0.3)
							   anchors.top : utext.bottom
							   anchors.topMargin: units.gu(4)
				 			}
				 		Text {
				 				id:bgt
                			  text: i18n.tr('Breitengrad :')
							  color: "blue"
							   x :rectangle_1.x + units.gu(0.3)
							   anchors.top : lgt.bottom
				 			}
				 		Text {
				 				id:strt
                			  text: i18n.tr('Straße Nr. :')
							  color: "blue"
							   x :rectangle_1.x + units.gu(0.3)
							   anchors.top : bgt.bottom
				 			}
				 		Text {
				 				id:ortt
                			  text: i18n.tr('Ort :')
							  color: "blue"
							   x :rectangle_1.x + units.gu(0.3)
							   anchors.top : strt.bottom
				 			}
				 		Text {
				 				id:bemt
                			  text: i18n.tr('Bemerkung :')
							  color: "blue"
							   x :rectangle_1.x + units.gu(0.3)
							   anchors.top : ortt.bottom

				 			}	
						TextField {
                  					anchors.top: lgt.top
                  					anchors.left : lgt.right
                  					anchors.leftMargin : units.gu(1)
                  					//anchors.verticalCenter : lgt.verticalCenter
                  					id : inp_lgt
                  					inputMethodHints : Qt.ImhNoPredictiveText
                  					width : units.gu(20)
                  					  placeholderText: i18n.tr("längengrad")
                					}
                		TextField {
                					id : inp_bgt
                  					anchors.top  : inp_lgt.bottom
                  					anchors.left : inp_lgt.left
                  					//anchors.leftMargin : units.gu(1)
                  					anchors.topMargin : units.gu(1)
                  					//anchors.verticalCenter : bgt.verticalCenter
                  					placeholderText: i18n.tr("Breitengrad")
                  					inputMethodHints : Qt.ImhNoPredictiveText
                  					width : units.gu(30)
                  					 
                					}

mienimmen.png
mienimmen.png (26.58 KiB) 11684 mal betrachtet

LG Dirk
Antworten