Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business


OverviewFelgo 3 Support (Qt 5) › Problem creating a PathView

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #9766

    I have been trying to get a simple 5 img pathview slider working for the past little
    while now but ca'nt seem to get the thing centered properly. Also my images seem to have
    the tops cut off and the pathview does not center in the window correcly. can someone
    give me some pointers.
    GameWindow {
        property int imgHeight:150
        property int imgWidth:165
        Backgrounds {}
        Scene {
            id: scene
            width: 960
            height: 640
            PathView {
                id: view
                width: imgWidth*pathItemCount
                height: imgHeight
                anchors.horizontalCenter: parent.horizontalCenter
                cacheItemCount: 2
                pathItemCount: 5
                snapMode: "SnapToItem"
                focus: true
                clip: true
                preferredHighlightBegin: .5
                preferredHighlightEnd: .5
                highlightRangeMode: PathView.StrictlyEnforceRange
                model: sliderModel
                delegate: Image {
                    id: name
                    source: front
                    width: imgWidth
                    height: imgHeight
                    Text {
                        text: albumid
                path: Path {
                    startX: view.x
                    startY: view.y
                    PathLine { x: view.x + (imgWidth * view.pathItemCount); y: view.y  }



    Felgo Team

    This is a general Qt-related question about PathView. Please try to ask in the Qt support forums about it.

    Cheers, Chris

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded