QSignalMapper(3qt)
π QSignalMapper π
okay bestie, so this is the man page for QSignalMapper, from the 3qt manual β she's a Qt 3 queen and she's here to bundle up your signals like the icon she is β¨
β¨ NAME β¨
QSignalMapper β bundles signals from identifiable senders π
πΈ SYNOPSIS πΈ
#include <qsignalmapper.h>
She Inherits QObject. Periodt.
π Public Members
QSignalMapper ( QObject * parent, const char * name = 0 )
~QSignalMapper ()
virtual void setMapping ( const QObject * sender, int identifier )
virtual void setMapping ( const QObject * sender, const QString &
identifier )
void removeMappings ( const QObject * sender )
π Public Slots
void map ()
π¦ Signals
void mapped ( int )
void mapped ( const QString & )
π DESCRIPTION π
The QSignalMapper class bundles signals from identifiable senders, no cap π―
So here's the tea: this class collects a whole set of parameterless signals, and then re-emits them β but with integer or string parameters that correspond to the object that actually sent the signal π«Ά like she's taking attendance and yelling out who did it.
See also Input/Output and Networking.
π MEMBER FUNCTION DOCUMENTATION π
QSignalMapper::QSignalMapper ( QObject * parent, const char * name = 0 )
Constructs a QSignalMapper called name, with parent parent. And like all QObjects, she gets deleted when the parent is deleted β generational, fr fr π
QSignalMapper::~QSignalMapper ()
Destroys the QSignalMapper. bye bestie π
void QSignalMapper::map () [slot]
This slot emits signals based on which object sends signals to it. she's basically the group chat admin relaying messages π£
Examples:
void QSignalMapper::mapped ( int ) [signal]
This signal is emitted when map() is signaled from an object that has an integer mapping set.
See also setMapping().
Examples:
void QSignalMapper::mapped ( const QString & ) [signal]
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
This signal is emitted when map() is signaled from an object that has a string mapping set.
See also setMapping().
void QSignalMapper::removeMappings ( const QObject * sender )
Removes all mappings for sender. And guess what β this is done automatically when mapped objects are destroyed, so she cleans up after herself, very mature of her π
void QSignalMapper::setMapping ( const QObject * sender, int identifier ) [virtual]
Adds a mapping so that when map() is signaled from the given sender, the signal mapped(identifier) is emitted.
There may be at most one integer identifier for each object. one per object, she does NOT do duplicates β
Examples:
void QSignalMapper::setMapping ( const QObject * sender, const QString & identifier ) [virtual]
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Adds a mapping so that when map() is signaled from the given sender, the signal mapper(identifier) is emitted.
There may be at most one string identifier for each object, and it may not be empty. π¨ empty string? not on her watch.
π SEE ALSO π
β COPYRIGHT β
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.
π§ AUTHOR π§
Generated automatically from the source code. (yes bestie, nobody hand-wrote this one, she manifested herself from the source π«)
π BUGS π
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. π
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qsignalmapper.3qt) and the Qt version (3.3.8). lowkey important, don't skip that part π
okay that's the whole thing, you ate that π this was Trolltech AS, dated 2 February 2007, running Qt version 3.3.8 β mwah, see you in the next man page bestie π«Άπβ¨
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms