📄 qsignalmapper.3qt
字号:
'\" t.TH QSignalMapper 3qt "11 October 2001" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQSignalMapper \- Bundles signals from identifiable senders.PP\fC#include <qsignalmapper.h>\fR.PPInherits QObject..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQSignalMapper\fR ( QObject * parent, const char * name = 0 )".br.ti -1c.BI "\fB~QSignalMapper\fR ()".br.ti -1c.BI "virtual void \fBsetMapping\fR ( const QObject * sender, int identifier )".br.ti -1c.BI "virtual void \fBsetMapping\fR ( const QObject * sender, const QString & identifier )".br.ti -1c.BI "void \fBremoveMappings\fR ( const QObject * sender )".br.in -1c.SS "Public Slots".in +1c.ti -1c.BI "void \fBmap\fR ()".br.in -1c.SS "Signals".in +1c.ti -1c.BI "void \fBmapped\fR ( int )".br.ti -1c.BI "void \fBmapped\fR ( const QString & )".br.in -1c.SH DESCRIPTIONThe QSignalMapper class bundles signals from identifiable senders..PPThis class collects a set of parameterless signals, and re-emits them with integer or string parameters corresponding to the object that sent the signal..PPSee also Input/Output and Networking..SH MEMBER FUNCTION DOCUMENTATION.SH "QSignalMapper::QSignalMapper ( QObject * parent, const char * name = 0 )"Constructs a QSignalMapper with parent \fIparent\fR and name \fIname\fR. Like all QObjects, it will be deleted when the parent is deleted..SH "QSignalMapper::~QSignalMapper ()"Destroys the QSignalMapper..SH "void QSignalMapper::map ()\fC [slot]\fR"This slot emits signals based on which object sends signals to it..PPExample: i18n/main.cpp..SH "void QSignalMapper::mapped ( int )\fC [signal]\fR"This signal is emitted when map() is signaled from an object that has an integer mapping set..PPSee also setMapping()..PPExample: i18n/main.cpp..SH "void QSignalMapper::mapped ( const QString & )\fC [signal]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPThis signal is emitted when map() is signaled from an object that has a string mapping set..PPSee also setMapping()..SH "void QSignalMapper::removeMappings ( const QObject * sender )"Removes all mappings for \fIsender\fR. This is done automatically when mapped objects are destroyed..SH "void QSignalMapper::setMapping ( const QObject * sender, int identifier )\fC [virtual]\fR"Adds a mapping so that when map() is signaled from the given \fIsender\fR, the signal mapped(\fIidentifier\fR) is emitted..PPThere may be at most one integer identifier for each object..PPExample: i18n/main.cpp..SH "void QSignalMapper::setMapping ( const QObject * sender, const QString & identifier )\fC [virtual]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPAdds a mapping so that when map() is signaled from the given \fIsender\fR, the signal mapper(\fIidentifier\fR) is emitted..PPThere may be at most one string identifier for each object, andit may not be null..SH "SEE ALSO".BR http://doc.trolltech.com/qsignalmapper.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com. See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qsignalmapper.3qt) and the Qtversion (3.0.0).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -