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. At a loss

At a loss

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 1.2k 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.
  • D Offline
    D Offline
    dstudentx
    wrote on last edited by
    #1

    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
    0
    • M Offline
      M Offline
      melghawi
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • W Offline
        W Offline
        weiyuemin
        wrote on last edited by
        #3

        visible: state=="specific_state"

        Do you need this?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dstudentx
          wrote on last edited by
          #4

          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
          0

          • Login

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