Dlgedit Help - Widget Properties
In order to set the properties for a widget created with
Dlgedit, select the widget with the left mouse button.
To set the size and position of the widget, see the help on
setting the widget layout.
In order to set more specific properties for a widget, bring
up the widget's property dialog. When the widget is selected,
choose Options:Properties from the menu bar. Or, select
Properties from the popup menu shown when the right mouse
button is clicked on the widget.
There are two types of properties that can be set for a
widget. The first type is properties that can be set for all
widgets. These are properties for a QWidget:
- Variable Mapping
- In order to make a member variable for the widget, check
the Map Variable check box and fill in a name for your
member variable. The member variable will be a pointer to
the widget and will be a protected member of the Window
data class.
Signals from the widget can be automatically connected to
member functions. Click the Add button to bring up the
Signal/Slot Connection dialog. In the dialog, choose one
of the available signals. Then, choose one of the access
modes for the slot. The mode can only be protected or
public since the slots are declared virtual in the Window
data class. If the slot were private, it couldn't be
overridden in the Window class and made to do work.
Finally, fill in a name for the slot and press Ok.
- Widget
- Common attributes of a QWidget can be defined here:
- Name - The name passed to the constructor which is
used by Qt to identify the widget.
- Caption - The caption for the widget.
- Geometry - The position and size of a widget
can be entered in the edit fields. They can also
be set by positioning and resizing the widget
graphically on the window.
- Colors & Font
- The colors and font for the widget are defined on this
page. One of the three color groups, Normal, Disabled,
and Active can be selected from the combo box. Selecting
the colored rectangle for one of the colors in the group
brings up the Color Selector dialog. One of the
predefined colors can be chosen, or the specific RGB
values can be entered. Selecting Ok will set the color.
The font for the widget can be chosen by clicking the
Choose button. This will bring up the Font Selector
dialog from which the font can be changed. The different
properties of the font can be chosen:
- Family - One of the predefined font families can be
selected from the combo box, or a new one can be typed in
the edit field of the combo box. Return must be pressed
to make any typed font active.
- Point size - One of the predefined point sized can be
selected from the combo box, or a new value can be
entered.
- Weight - One of the predefined weights can be selected
from the combo box, or the value (0-99) can be entered.
- Style hint - A style hint can be given to Qt to use
the selected font family if the specified font family is
not available.
- Character set - One of the character sets listed can
be given to Qt.
- Other styles, such as Italic, Underlined, Strikeout,
and Fixed pitch, can be chosen by clicking the appropriate
combo box.
For each combination, a sample of the resulting font is shown.
The second type of properties that can be defined for a widget
are those that are specific to each type of widget. The tabs
displayed in the property dialog are dependent on the class of
the widget that was selected. The widget classes are listed
below, and the links describe the properties that can be set
specific to the widget type.
[Home]
[Window Properties]
[Widget Creation]
[Widget Layout]
[Widget Properties]
Last modified: Wed Apr 16 21:49:48 EDT 1997