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. confused about the layout when comboBox added

confused about the layout when comboBox added

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 331 Views
  • 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.
  • johnson54J Offline
    johnson54J Offline
    johnson54
    wrote on last edited by
    #1

    I put several comboBox in a widget, and when I click on the comboBox, it pops up the menu, and at the same time, the whole widget size changed, what should I do to prevent the widget size change. I tried to use grid layout or horizental layout and put spacer around the comboBox, but it still changes size when comboBox pop up menu

    1 Reply Last reply
    0
    • mrjjM mrjj

      Hi
      That normally do not happen.
      Do you use plain comboBoxs ?
      alt text

      alt text

      johnson54J Offline
      johnson54J Offline
      johnson54
      wrote on last edited by
      #3

      @mrjj thanks, I know why this happens, I overload the mouseMoveEvent function, when click on the comboBox, although we didnot see the mouse move, but the mouseMoveEvent is triggered

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi
        That normally do not happen.
        Do you use plain comboBoxs ?
        alt text

        alt text

        johnson54J 1 Reply Last reply
        1
        • mrjjM mrjj

          Hi
          That normally do not happen.
          Do you use plain comboBoxs ?
          alt text

          alt text

          johnson54J Offline
          johnson54J Offline
          johnson54
          wrote on last edited by
          #3

          @mrjj thanks, I know why this happens, I overload the mouseMoveEvent function, when click on the comboBox, although we didnot see the mouse move, but the mouseMoveEvent is triggered

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved