I want to set cursor shape for QComboBox
and his items. With setCursor
affecting only LineEdit
part of QComboBox
, how do I access items view to change cursor shape?
QComboBox *combo = new QComboBox();
combo->addItem("One");
combo->addItem("Two");
combo->addItem("Three");
combo->setCursor(Qt::PointingHandCursor); // changes cursor only for LineEdit part, on popup cursor is still arrow
combo->view()->setCursor(Qt::PointingHandCursor); // does not affect popup view
we use Qt 5.5.1