If you read further in the Qt::WidgetAttribute documentation, you will find this: Qt::WA_TransparentForMouseEvents. If that still doesn't do what you want, you may have to install an event filter on your buttons and eat mouse events. QObject::installEventFilter().
Bookmarks