Difference between revisions of "User:Inorton/QtNotes"

From NAMIC Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
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>
 +
*http://qtnode.net/wiki/Qt4_with_cmake
 +
*http://invalidmagic.wordpress.com/2009/12/07/cmake-kdevelop-4/

Latest revision as of 20:22, 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 )