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. Qt list elements quantity [solved]
Forum Updated to NodeBB v4.3 + New Features

Qt list elements quantity [solved]

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 2 Posters 1.5k Views 1 Watching
  • 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.
  • Z Offline
    Z Offline
    Zubalama
    wrote on last edited by
    #1

    I just want to make a window same size as ListView can anyone on earth help me? thank you

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi and Welcome to Qt Devnet.

      Could be a silly question. But did you try binding ListView's width and height to that of Window's ?

      157

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        Zubalama
        wrote on last edited by
        #3

        yes and I already figured out how thank you for your attention height: es.count * ListElementsize
        es is listView Id
        ListElementsize in my case was 100*27 I mean perfect one

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          Glad that you found out the issue. But just out of curiosity, why do you want it in other way? Normally one would like to keep the Window size fixed and according to it change the size of it's child elements.

          157

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            Zubalama
            wrote on last edited by
            #5

            I would like to have window size to be exactly how much will listview need because it will be dynamic, the project is for TV_s and every channel should have its own quantity of listelements for example languages some channels have 2 languages some 3 or even more so basically my boss wants to have a dynamic window, However I think it's not neccesarry, but you know... he's the boss

            1 Reply Last reply
            0
            • p3c0P Offline
              p3c0P Offline
              p3c0
              Moderators
              wrote on last edited by
              #6

              Haha. In that case you can't do anything.
              Now since you have solved it, please mark the post as solved by editing the post title and prepending [Solved].

              157

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                Zubalama
                wrote on last edited by
                #7

                Thank you for last reply didn't know that I had to do that

                1 Reply Last reply
                0
                • p3c0P Offline
                  p3c0P Offline
                  p3c0
                  Moderators
                  wrote on last edited by
                  #8

                  Just in case if someone came across a similar situation he/she may understand that this post has a solution.

                  157

                  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