Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to add drop shadow to qmenu widget



  • how to add drop shadow to qmenu widget ... ??

    wrote following code lines :-

    @
    QGraphicsDropShadowEffect * effectMenu = new QGraphicsDropShadowEffect();
    effectMenu->setBlurRadius(20);
    effectMenu->setXOffset(10);
    effectMenu->setYOffset(10);
    ui.menu_File->setGraphicsEffect(effectMenu);
    @

    didnt work.... i want drop shaddow to menu widget


Log in to reply