How can I customize the QCompleter popup window in PyQt?
问题 I have a few things for a QLineEdit's QCompleter I'm interested in customizing. I want to make it behave similar to the address / search bar in Chrome. How can I limit the number of rows that are displayed? For example, even if there are 15 matches, I only want the QCompleter to show 5. How can I resize the popup window? For example, I want to make the popup window nice and snug. As per the above example, I want the popup window to resize to 5 rows exactly without any showing any ugly scroll