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. In Loader don't work item.height

In Loader don't work item.height

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 305 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.
  • M Offline
    M Offline
    Mihaill
    wrote on last edited by
    #1

    Hi!
    I use win 10, Qt 6.8. In Loader don't work item.height

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bandler
      wrote on last edited by
      #2

      This is very little of information. Can you provide a piece of code, please. With just your writing, it is more or less guessing what your problem is.

      First guess: Your sourceComponent is not properly set, so the item of the loader is empty.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mihaill
        wrote on last edited by
        #3

        It's source:

        Rectangle {
            id: confItemsList
            height: 200
            ............
        

        It's loader:

                    Loader {
                        id: loader
                        width: parent.width
                        height: status === Loader.Ready ? item.height : 0
        

        And loader get height 0

        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