1

Topic: QComboBox and its drop down list

Is certain . It would be desirable to get access to object of its drop down list (the screenshot see). I plan to hang for this list separate , but I can not  as it to make. It is possible?

2

Re: QComboBox and its drop down list

Hello, XOOIOOX, you wrote:... I plan to hang for this list separate , but I can not  as it to make. It is possible?... What for there to draw a shade? What for to force an open door? It there is available for a long time already: It is a screen-shot in Windows 7/64 (SP1). P.S. I Qt v 5.10.1 - both in Win-10, and in Win-7 have a shade from QComboBox...

3

Re: QComboBox and its drop down list

Hello, AlexGin, you wrote: AG> What for there to draw a shade? It  a shade. If the user disconnected shades in Windows it, accordingly, here will not be. And then,  a shade poor. At me the style of application which implies appropriate (beautiful)  in proper places.

4

Re: QComboBox and its drop down list

Hello, XOOIOOX, you wrote: XOO> Is certain . It would be desirable to get access to object of its drop down list (the screenshot see). I plan to hang for this list separate , but I can not  as it to make. It is possible? XOO> Image: 9494a547eca136d2d075ae10130f7efe.png If you are not afraid , please: int main (int argc, char *argv []) {QApplication a (argc, argv); QWidget w; auto * cmb = new QComboBox (&w); cmb-> addItems (QVector <QString> (20, "Foo foo foo...").toList ()); QAbstractItemView *list=cmb-> view (); QWidget* pop = list; while (pop-> parentWidget () && pop-> parentWidget ()! =cmb) pop=pop-> parentWidget (); qDebug () <<list <<pop; pop-> setWindowFlags (Qt:: Popup | Qt:: FramelessWindowHint | Qt:: NoDropShadowWindowHint//shade switching-on/deenergizing.); w.show (); return a.exec ();} This window of class QComboBoxPrivateContainer. (The Word private hints that in the future implementations all can change.)

5

Re: QComboBox and its drop down list

Hello, Chorkov, you wrote: a C> This window of class QComboBoxPrivateContainer. (The Word private hints that in the future implementations all can change.) not, does not work. I add: QGraphicsDropShadowEffect *effect = new QGraphicsDropShadowEffect (); effect-> setBlurRadius (35); effect-> setColor (QColor (0, 0, 0, 255)); effect-> setOffset (0); pop-> setGraphicsEffect (effect); And as, for example, we try to change the size: pop-> resize (500, 100); Not .  there is no also a same size.