Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ListView won't display
Forum Updated to NodeBB v4.3 + New Features

ListView won't display

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 3 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    literA2
    wrote on last edited by
    #1

    Hi, i am having this issue with the listview of images won't display once used in Qt 5.5 for iOS while it works perfectly in Qt 5.4(windows desktop).

    This is the structure of my code:

        Flickable {
          Layout.fillHeight: true
          Layout.fillWidth: true
          contentHeight: stack.currentItem.implicitHeight 
          contentWidth: stack.currentItem.implicitWidth
    
          StackView {
            id: stack
            anchors.fill: parent
            delegate: StackViewDelegate {}
          }
        }
    

    This is the listview page which will be push into the stack.

    ColumnLayout
    {
       Item {
          Layout.fillHeight: true
          Layout.fillWidth: true
          clip: true
    
          ListView {
            property int delegateArea
    
            anchors.fill: parent
            focus: true
            boundsBehavior: Flickable.StopAtBounds
            highlightRangeMode: ListView.StrictlyEnforceRange
            orientation: ListView.Horizontal
            snapMode: ListView.SnapOneItem
            cacheBuffer: delegateArea
            model: guideModel
    
            delegate: DelegateItem {
                Component.onCompleted: {
                   tutorialList.delegateArea = width*2;
               }
             }
           }
         }
       }
    

    Please advise. Thanks.

    1 Reply Last reply
    0
    • SikarjanS Offline
      SikarjanS Offline
      Sikarjan
      wrote on last edited by Sikarjan
      #2

      I am no expert but I would try to log the width/height of all components to see if one is zero and therefore not displayed.

      L 1 Reply Last reply
      0
      • V Offline
        V Offline
        vladstelmahovsky
        wrote on last edited by
        #3

        what is default value for delegateArea?

        1 Reply Last reply
        0
        • SikarjanS Sikarjan

          I am no expert but I would try to log the width/height of all components to see if one is zero and therefore not displayed.

          L Offline
          L Offline
          literA2
          wrote on last edited by
          #4

          Thanks for the replies.

          @Sikarjan said:

          I am no expert but I would try to log the width/height of all components to see if one is zero and therefore not displayed.

          Yes, I tried this already, though they're showing 0 values, but it is working when in desktop.

          @vladstelmahovsky said:

          what is default value for delegateArea?

          I didn't set default value on it.

          V 1 Reply Last reply
          0
          • L literA2

            Thanks for the replies.

            @Sikarjan said:

            I am no expert but I would try to log the width/height of all components to see if one is zero and therefore not displayed.

            Yes, I tried this already, though they're showing 0 values, but it is working when in desktop.

            @vladstelmahovsky said:

            what is default value for delegateArea?

            I didn't set default value on it.

            V Offline
            V Offline
            vladstelmahovsky
            wrote on last edited by
            #5

            @literA2 so, this might be a reason, since cache might be any undefined value

            L 1 Reply Last reply
            0
            • V vladstelmahovsky

              @literA2 so, this might be a reason, since cache might be any undefined value

              L Offline
              L Offline
              literA2
              wrote on last edited by
              #6

              @vladstelmahovsky Thanks, but it didn't resolved the issue.

              V 1 Reply Last reply
              0
              • L literA2

                @vladstelmahovsky Thanks, but it didn't resolved the issue.

                V Offline
                V Offline
                vladstelmahovsky
                wrote on last edited by
                #7

                @literA2 ok, what about Qt 5.6?

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved