Hmm... going to give up on getting this centered for now and going to work on a weather plugin... this is about the current status:
http://imgur.com/QWRrwAs you rotate the icons at the top to go to the different main menu items (media, sound, telephony, etc) it loads up the submenu items that apply to 1) that main menu item, 2) that user and 3) that room.
As you can see, the icons at the bottom aren't centered... I've also found that my circle is too large and it makes it difficult to switch between main menu items, so looking to change that.
The solution to my question before is here:
PathView {
anchors.fill: parent
anchors.horizontalCenter: parent.horizontalCenter
// model: ContactModel {}
model: contactModel
delegate: delegate
path: Path {
startX: style.orbiterW/6-25; startY: 100
PathAttribute { name: "iconScale"; value: 1.5 }
PathAttribute { name: "iconOpacity"; value: 1.0 }
PathQuad { x: style.orbiterW/6-25; y: 0; controlX: style.orbiterW/6-style.orbiterW/1.5; controlY: 50 }
PathAttribute { name: "iconScale"; value: 0.3 }
PathAttribute { name: "iconOpacity"; value: 0.0 }
// PathPercent { value: 0.50 }
PathQuad { x: style.orbiterW/6-25; y: 100; controlX: style.orbiterW/6+style.orbiterW/1.5; controlY: 50 }
// PathPercent { value: 0.50 }
}
onCurrentIndexChanged: {
console.log(currentIndex, contactModel.get(currentIndex).location);
menuLoader.source = contactModel.get(currentIndex).location;
}
The last bit especially takes your current position (index) in the pathview (as an integer) and looks to the list items to see which item to pull up:
onCurrentIndexChanged: {
console.log(currentIndex, contactModel.get(currentIndex).location);
menuLoader.source = contactModel.get(currentIndex).location;
}