Qt list elements quantity [solved]
-
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 ?
-
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.
-
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
-
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]. -
Just in case if someone came across a similar situation he/she may understand that this post has a solution.