Difference between revisions of "User:Inorton/QtNotes"
From NAMIC Wiki
Line 10: | Line 10: | ||
==UI_SRCS== | ==UI_SRCS== | ||
− | The .ui file configurations for cmake to drive the moc are named like: qt_module_UI_SRCS | + | The .ui file configurations for cmake to drive the moc are named like: qt_module_UI_SRCS in CMakeLists.txt |
+ | <pre> | ||
+ | 33 # UI files | ||
+ | 34 SET(qt_module_UI_SRCS | ||
+ | 35 Resources/UI/qSlicerModelsModule.ui | ||
+ | 36 Resources/UI/qMRMLModelDisplayNodeWidget.ui | ||
+ | 37 ) | ||
+ | </pre> |
Revision as of 20:18, 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 in CMakeLists.txt
33 # UI files 34 SET(qt_module_UI_SRCS 35 Resources/UI/qSlicerModelsModule.ui 36 Resources/UI/qMRMLModelDisplayNodeWidget.ui 37 )