I have dozens of QAction
objects creating in the constructor of widget without giving them variable names.
Many of properties of QAction
can be set right in the constructor (e.g. shortcut
, signals connections, statusTip
, etc.).
Is it possible to set QAction
as a separator right in constructor and how to do it?
P.S. I think it's not a language-specific question but FYI here's what I'm using:
Python 2.7.6; PyQt4 4.10.3; Qt 4.8.5.