1QSignalMapper(3qt)                                          QSignalMapper(3qt)
2
3
4

NAME

6       QSignalMapper - Bundles signals from identifiable senders
7

SYNOPSIS

9       #include <qsignalmapper.h>
10
11       Inherits QObject.
12
13   Public Members
14       QSignalMapper ( QObject * parent, const char * name = 0 )
15       ~QSignalMapper ()
16       virtual void setMapping ( const QObject * sender, int identifier )
17       virtual void setMapping ( const QObject * sender, const QString &
18           identifier )
19       void removeMappings ( const QObject * sender )
20
21   Public Slots
22       void map ()
23
24   Signals
25       void mapped ( int )
26       void mapped ( const QString & )
27

DESCRIPTION

29       The QSignalMapper class bundles signals from identifiable senders.
30
31       This class collects a set of parameterless signals, and re-emits them
32       with integer or string parameters corresponding to the object that sent
33       the signal.
34
35       See also Input/Output and Networking.
36

MEMBER FUNCTION DOCUMENTATION

QSignalMapper::QSignalMapper ( QObject * parent, const char * name = 0 )

39       Constructs a QSignalMapper called name, with parent parent. Like all
40       QObjects, it will be deleted when the parent is deleted.
41

QSignalMapper::~QSignalMapper ()

43       Destroys the QSignalMapper.
44

void QSignalMapper::map () [slot]

46       This slot emits signals based on which object sends signals to it.
47
48       Examples:
49

void QSignalMapper::mapped ( int ) [signal]

51       This signal is emitted when map() is signaled from an object that has
52       an integer mapping set.
53
54       See also setMapping().
55
56       Examples:
57

void QSignalMapper::mapped ( const QString & ) [signal]

59       This is an overloaded member function, provided for convenience. It
60       behaves essentially like the above function.
61
62       This signal is emitted when map() is signaled from an object that has a
63       string mapping set.
64
65       See also setMapping().
66

void QSignalMapper::removeMappings ( const QObject * sender )

68       Removes all mappings for sender. This is done automatically when mapped
69       objects are destroyed.
70

void QSignalMapper::setMapping ( const QObject * sender, int identifier )

72       [virtual]
73       Adds a mapping so that when map() is signaled from the given sender,
74       the signal mapped(identifier) is emitted.
75
76       There may be at most one integer identifier for each object.
77
78       Examples:
79

void QSignalMapper::setMapping ( const QObject * sender, const QString &

81       identifier ) [virtual]
82       This is an overloaded member function, provided for convenience. It
83       behaves essentially like the above function.
84
85       Adds a mapping so that when map() is signaled from the given sender,
86       the signal mapper(identifier) is emitted.
87
88       There may be at most one string identifier for each object, and it may
89       not be empty.
90
91

SEE ALSO

93       http://doc.trolltech.com/qsignalmapper.html
94       http://www.trolltech.com/faq/tech.html
95
97       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
98       license file included in the distribution for a complete license
99       statement.
100

AUTHOR

102       Generated automatically from the source code.
103

BUGS

105       If you find a bug in Qt, please report it as described in
106       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
107       help you. Thank you.
108
109       The definitive Qt documentation is provided in HTML format; it is
110       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
111       web browser. This man page is provided as a convenience for those users
112       who prefer man pages, although this format is not officially supported
113       by Trolltech.
114
115       If you find errors in this manual page, please report them to qt-
116       bugs@trolltech.com.  Please include the name of the manual page
117       (qsignalmapper.3qt) and the Qt version (3.3.8).
118
119
120
121Trolltech AS                    2 February 2007             QSignalMapper(3qt)
Impressum