79778764

Date: 2025-09-30 06:35:47
Score: 1
Natty:
Report link

Thanks everyone for the feedback — you are right, completely hiding scrollbars and arrows is not really a good UI choice. After reconsidering, I decided not to forcefully remove them.

Instead, I just tweaked the QSS of the popup view to make the dropdown look cleaner (no border, matching background). For example:

QListView *listView = new QListView(combo);
combo->setView(listView);

listView->setStyleSheet(R"(
    QListView {
        background: #333333;
        border: none;
    }
)");

This way the popup looks simpler and more in line with my application design, without breaking the standard navigation behavior.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: yang7hi