User:Inorton/QtNotes

From NAMIC Wiki
Jump to: navigation, search

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 in CMakeLists.txt

 33 # UI files
 34 SET(qt_module_UI_SRCS
 35   Resources/UI/qSlicerModelsModule.ui
 36   Resources/UI/qMRMLModelDisplayNodeWidget.ui
 37 )