![]() |
2012-03-31
, 19:45
|
Posts: 241 |
Thanked: 324 times |
Joined on Dec 2010
|
#12
|
Page { tools: commonTools Label { id: label anchors.centerIn: parent text: qsTr("Hello world!") visible: false } Rectangle { id: header height: 72 width: parent.width color: "light blue" TextField { id: search placeholderText: "Search" maximumLength: 80 anchors.centerIn: parent width: 448 } Rectangle { id: nextBox anchors.top: header.bottom height: 72 width: header.width color: "teal" } XmlListModel{ id: data source: "http://services.tvrage.com/feeds/search.php?show=buffy" query: "/Results/show" XmlRole {name: "name"; query: "name/string()"} XmlRole {name: "country"; query: "country/string()"} XmlRole {name: "seasons"; query: "seasons/string()"} } ListView { width:50 ; height: 12 model: data delegate: Text { text: name} anchors.top: nextBox.bottom } } }
![]() |
2012-03-31
, 20:49
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#13
|
This so weird! I had that exact same code (except for the column part), and my searchbox kept shrinking. Is the SDK buggy at times or something? I restarted my pc and now it works. That's rather peculiar. Thanks a lot btw, greatly appreciate the time you took to reply to my posts
I tried putting the column and the header dissappeared and the searchbox went halfway off the screen at the top. I replaced Nextelement with a red rectangle similar to the header. Very unexpected results
anchors.fill : parent
I tried putting the column and the header dissappeared and the searchbox went halfway off the screen at the top. I replaced Nextelement with a red rectangle similar to the header. Very unexpected results
Last edited by hotnikkelz; 2012-03-31 at 14:52.