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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.