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 to emit signal when total items count reaches a threshold in QListWidget
QtWS25 Last Chance

How to emit signal when total items count reaches a threshold in QListWidget

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 863 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.
  • S Offline
    S Offline
    sargeslash
    wrote on last edited by
    #1

    How can I get a signal when total items added in a QListWidget reaches a threshold(say listbox.count()=8)?
    Also is there any way to limit number of items to be added in a QListWidget (such as a max limit or something)?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tilsitt
      wrote on last edited by
      #2

      Hi,

      the only way is to sub-class QListWidget.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sargeslash
        wrote on last edited by
        #3

        yeah i have subclassed it and now trying, btw thanks

        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