Results 1 to 3 of 3

Thread: How to modify shadow of QMenu?

  1. #1

    Default How to modify shadow of QMenu?

    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

  2. #2
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 26 Times in 23 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: How to modify shadow of QMenu?

    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.
    Magicians do not exist

  3. #3

    Default Re: How to modify shadow of QMenu?

    Quote Originally Posted by mentalmushroom View Post
    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.

Similar Threads

  1. Text drop-shadow using CSS (text-shadow)
    By xtal256 in forum Qt Programming
    Replies: 2
    Last Post: 13th July 2018, 11:08
  2. Get rid of shadow build!!!
    By alizadeh91 in forum Qt Programming
    Replies: 5
    Last Post: 3rd March 2013, 20:10
  3. QMenu without shadow
    By furj in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2013, 22:00
  4. Replies: 6
    Last Post: 3rd August 2012, 07:48
  5. how to remove shadow of QMenu?
    By lonewsj in forum Qt Programming
    Replies: 5
    Last Post: 2nd April 2011, 09:40

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.