Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    At a loss

    QML and Qt Quick
    3
    4
    971
    Loading More Posts
    • 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.
    • D
      dstudentx last edited by

      How can I have this only be shown is a specific state?

      @ ListView {
      width: 800; height: 600
      FolderListModel {
      id: folderModel
      nameFilters: ["*.jpg"]
      folder: "film_images"
      }
      Component {
      id: fileDelegate
      Column {
      Image {
      width: 165; height: 244
      // fillMode: Image.PreserveAspectFit
      smooth: true
      source: folderModel.folder + "/" + fileName
      }
      Text { text: fileName }
      }
      }
      orientation: ListView.Horizontal
      spacing: 42
      x: 260
      y:422
      model: folderModel
      delegate: fileDelegate
      }@

      1 Reply Last reply Reply Quote 0
      • M
        melghawi last edited by

        It is not clear what you are trying to accomplish here.

        1 Reply Last reply Reply Quote 0
        • W
          weiyuemin last edited by

          visible: state=="specific_state"

          Do you need this?

          1 Reply Last reply Reply Quote 0
          • D
            dstudentx last edited by

            Thanks.
            I have another question.
            Instead of the images being loaded from a folder can I have the images come from a .js

            1 Reply Last reply Reply Quote 0
            • First post
              Last post