setEnabled(False) does not work on menu actions
Bug #876947 reported by
Andrew G
This bug report is a duplicate of:
Bug #787946: [Qt] Unity ignores application's attempt to disable menu item..
Edit
Remove
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
New
|
Undecided
|
Unassigned | ||
unity (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
This is reported as a Qt-bug (link below), but was closed as it seems to be a bug in the Unity desktop (in both Ubuntu 11.04 and 11.10). As far as I can see it has not been followed up. Sorry I am not able to say exactly which package the bug is in.
https:/
See also:
http://
The bug prevents database program Qercus (Python + PyQt4) from working correctly with the Unity desktop.
http://
Andrew.
affects: | ubuntu → unity (Ubuntu) |
To post a comment you must log in.
Example of non-working code:
class QercusApp( QtGui.QMainWind ow):
self. functionMenu = QtGui.QMenu( self.tr( "F&unctions" ), self) functionMenu. addAction( self.overviewAc t)
self.
self. menuBar( ).addMenu( self.functionMe nu)
## This line has no effect on Unity (but is ok on Kubuntu). functionMenu. setEnabled( False)
self.
I will soon release program Qercus 0.23b2 - which will delete rather than disable unwanted entries in the menu bar. This looks neater anyway. So fixing this bug is not a priority for me.
Andrew.