Can position of Dropdown list can be fixed on screen
-
wrote on 1 Oct 2012, 13:32 last edited by
Hi all,
If we have a combo box which shows a drop down menu, it displays the list downwards or upward depending upon the selection and space.
What if I want it to be fixed, that is display either always top or bottom....will that be possible...if yes, which properties to use??thanks....:)
-
wrote on 1 Oct 2012, 15:06 last edited by
I don't believe that can be changed very easily, if at all. OTOH, why would you want to change that functionality? Isn't it bad form to have a drop down list partially off-screen potentially?
-
wrote on 3 Oct 2012, 04:24 last edited by
I also agree with you...but can't do anything its is a requirement in this project. Anyways thanks I just wanted to be sure whether it is possible or not....:)
-
wrote on 3 Oct 2012, 08:21 last edited by
Anything is possible. The question is, if it is wise.
Requirements are there to be tested against reason and good sense before spending huge amounts of efforts in realizing them.
-
wrote on 3 Oct 2012, 08:38 last edited by
The ComboBox tries to make sure all elements in the drop down are visible. I doubt that there is a requirement to have some elements rendered offscreen, depending on where the QComboBox is located.
-
wrote on 3 Oct 2012, 08:55 last edited by
Some requirements are meant to be followed directly, you cannot change them...If there is a way can you show me some light over it....thanks
-
wrote on 3 Oct 2012, 09:02 last edited by
One way would be to patch Qt I think, and tweak the algorithm that determines the placement so that it always returns "below".
[quote author="pragati" date="1349254540"]Some requirements are meant to be followed directly, you cannot change them... [/quote]
This doesn't sound as one of them...
1/7