QComboBox::showPopup() gets called whenever the popup view is about to be shown. So what you could do is to reimplement it, initialize contents if appropriate and call the base class implementation to actually show the popup.
Qt Code:
void MyComboBox::showPopup() { if (!initialized) { initializeContents(); } }To copy to clipboard, switch view to plain text mode
Bookmarks