Difference between revisions of "User:Inorton/QtNotes"
From NAMIC Wiki
m |
|||
| Line 1: | Line 1: | ||
Use pyuic to generate python code from .ui files. | Use pyuic to generate python code from .ui files. | ||
| − | === | + | ==event filter== |
Event filtering requires the eventFilter to be part of the public interface (duh). | Event filtering requires the eventFilter to be part of the public interface (duh). | ||
| Line 8: | Line 8: | ||
See QEditLine handler in qSlicerModuleSelectorToolBar | See QEditLine handler in qSlicerModuleSelectorToolBar | ||
| + | |||
| + | ==UI_SRCS== | ||
| + | The .ui file configurations for cmake to drive the moc are named like: qt_module_UI_SRCS | ||
Revision as of 20:16, 22 January 2011
Use pyuic to generate python code from .ui files.
event filter
Event filtering requires the eventFilter to be part of the public interface (duh).
Example here: http://doc.trolltech.com/4.6/qobject.html#eventFilter
See QEditLine handler in qSlicerModuleSelectorToolBar
UI_SRCS
The .ui file configurations for cmake to drive the moc are named like: qt_module_UI_SRCS