OSX - QMenu vs QWidgetAction paints with transparent bg
Hi
Some reason below code paints a menu with transparent background. So the check box and label next to it has no background.
Any ideas why ?
Code:
connect(checkbox, SIGNAL(toggled(bool)), parent, SLOT(button(bool)));
action->setDefaultWidget(checkbox);
menuOther->addAction(action);
addMenu(menuOther);
$ uname -a
Darwin Mac-mini.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
Thanks for looking
Re: OSX - QMenu vs QWidgetAction paints with transparent bg
Check parent style, maybe it has transparent background set.
Re: OSX - QMenu vs QWidgetAction paints with transparent bg
I don't set styling anywhere.
I have the same set Else where, QMenu inside QMenu but I don't use checkboxes there with QWidgetAction. The QWidgetAction causes this transparency but no idea how to fix it.
https://bugreports.qt-project.org/br...s:all-tabpanel
Looks like a bug. But what is the hack to fix it ?
I use QT 4.7.4 no idea what is the carbon vesion.