XuvTools is developed in a cooperative effort from:
  • Chair of Pattern Recognition and Image Processing [www]
  • Friedrich Miescher Institute for Biomedical Research [www]
  • Center for Biological Systems Analysis [www]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
devel:qt_designer [2009/12/07 17:28]
mario added qt screenshot
devel:qt_designer [2009/12/17 21:04]
mario added link to Qt designer notes
Line 1: Line 1:
 ====== Qt Designer ====== ====== Qt Designer ======
  
-When designing a user interface element with Qt designer, several ways to include this new element into the GUI are possible. In order to have a defined coding style for XuvTools, please stick to the following instructions when using the designer.+When designing a user interface element with Qt designer, several ways to include this new element into the GUI are possible. In order to have a defined coding style for XuvTools, please stick to the following instructions when using the designer. ​The detailed explanation of this approach can be found in Qt's Designer manual, in the section "​Multiple Inheritance"​ (for Qt-4.6.0 here: http://​doc.qt.nokia.com/​4.6/​uitools-multipleinheritance.html). 
 + 
 +==== Special Settings and Attributes ==== 
 + 
 +=== Layout Margins and Sizes === 
 + 
 +The default layout sizes are good for many elements, so only change them if the value looks bad or waists too much space. One example, where default values fail, is when a frame is added around a text label. Default layout margin would be 9,9,9,9,6, which is by far too wide. When decreasing margins, use the following values: 
 + 
 +^ LayoutLeftMargin |  4  | 
 +^ LayoutTopMargin |  4  | 
 +^ LayoutRightMargin |  4  | 
 +^ LayoutBottomMargin |  4  | 
 +^ LayoutSpacing |  2  |
  
 ==== Copy-Paste Sample Code: QuickStart with GuiElement example ==== ==== Copy-Paste Sample Code: QuickStart with GuiElement example ====
Line 49: Line 61:
  
  
-=== (2) Create a corresponding C++ class (as few Qt as possible) ​===+=== (2) Create a corresponding C++ class header, inherits from UI class ===
  
 The header of your new class file should have the following layout: The header of your new class file should have the following layout:
Line 82: Line 94:
 </​code>​ </​code>​
  
 +
 +=== (3) Create a corresponding C++ class implementation (as few Qt as possible) ===
  
 The source of your new class file should have the following layout: The source of your new class file should have the following layout:
devel/qt_designer.txt · Last modified: 2009/12/17 21:04 by mario
Contact: admin(a)xuvtools.org