Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can position of Dropdown list can be fixed on screen
Qt 6.11 is out! See what's new in the release blog

Can position of Dropdown list can be fixed on screen

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 3.0k 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.
  • P Offline
    P Offline
    pragati
    wrote on last edited by
    #1

    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....:)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      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?

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pragati
        wrote on last edited by
        #3

        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....:)

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pragati
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andre
                wrote on last edited by
                #7

                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 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