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. How can the combobox update the popup's size after adding item

How can the combobox update the popup's size after adding item

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 346 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.
  • MihanM Offline
    MihanM Offline
    Mihan
    wrote on last edited by
    #1

    Hi
    I want to make the combobox's popup to be able to auto-update size after adding item.
    e.g.
    when I clicked the combobox, the popup would be shown. Then other module would search something and it will add items into combobox. Generally, the popup's size will not be changed and the popup will show a scrollbar in it(current items count < max visible items count).
    So how to make it.

    Regards
    Mihan

    jsulmJ 1 Reply Last reply
    0
    • MihanM Mihan

      Hi
      I want to make the combobox's popup to be able to auto-update size after adding item.
      e.g.
      when I clicked the combobox, the popup would be shown. Then other module would search something and it will add items into combobox. Generally, the popup's size will not be changed and the popup will show a scrollbar in it(current items count < max visible items count).
      So how to make it.

      Regards
      Mihan

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Mihan See https://doc.qt.io/qt-5/qcombobox.html#maxVisibleItems-prop, but read the "Note" there also.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      • Login

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