Qt list elements quantity [solved]
-
I just want to make a window same size as ListView can anyone on earth help me? thank you
-
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 ?
-
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 -
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]. -
Thank you for last reply didn't know that I had to do that
-
Just in case if someone came across a similar situation he/she may understand that this post has a solution.