PDA

View Full Version : How to modify shadow of QMenu?



HellWolf
3rd April 2018, 02:29
Hi, I need to modify the shadow of a QMenu. I am developing a custom style, and I need to change the position of QMenu's shadow. Any help would be apreciated.

Thanks

mentalmushroom
4th April 2018, 07:27
Look at Qt::NoDropShadowWindowHint and Qt::FramelessWindowHint window flags in conjunction with Qt::WA_TranslucentBackground widget attribute. This way you can remove the standard QMenu frame and create a custom border including the shadow by the means of your own image.

HellWolf
4th April 2018, 20:24
Look at Qt::NoDropShadowWindowHint and Qt::FramelessWindowHint window flags in conjunction with Qt::WA_TranslucentBackground widget attribute. This way you can remove the standard QMenu frame and create a custom border including the shadow by the means of your own image.

Thanks, I will look into it.