QMoveEvent(3qt)
π QMoveEvent β the 3qt manual page, bestie edition π
okay so this is QMoveEvent(3qt) from the Qt 3 man pages, and it's literally just the little info packet that shows up when a widget moves. tiny class, big main character energy. let's get into it π¦
β¨ NAME β¨
QMoveEvent β Event parameters for move events
πΈ SYNOPSIS πΈ
#include <qevent.h>
Inherits QEvent.
π Public Members
QMoveEvent ( const QPoint & pos, const QPoint & oldPos )
const QPoint & pos () const
const QPoint & oldPos () const
π DESCRIPTION π
The QMoveEvent class contains event parameters for move events. that's the whole vibe, she's a container, she holds the details, she does not do the moving herself π
Move events are sent to widgets that have been moved to a new position relative to their parent. so like, widget got relocated, and the system is like "hey bestie, heads up, you moved" π¦β‘οΈπ¦
The event handler QWidget::moveEvent() receives move events. that's where you go to react to it.
See alsoQWidget::pos,QWidget::geometry, and Event Classes.
π MEMBER FUNCTION DOCUMENTATION π
π QMoveEvent::QMoveEvent ( const QPoint & pos, const QPoint & oldPos )
Constructs a move event with the new and old widget positions, pos and oldPos respectively.
so you hand it where the widget is now, and where it was before. both are QPoints. cute, simple, no cap β¨
π const QPoint & QMoveEvent::oldPos () const
Returns the old position of the widget.
that's the "before" pic, the throwback, the place it used to be at πΈ
π¦ const QPoint & QMoveEvent::pos () const
Returns the new position of the widget.
Important caveat, do not skip this: This excludes the window frame for top level widgets. so for a top-level widget you're getting the position without the frame counted in. fr fr, that detail matters π«Ά
π 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, the author is literally a script. iconic honestly. the robots ate π)
π 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 (qmoveevent.3qt) and the Qt version (3.3.8).
and that's the whole page bestie, that's a wrap πβ¨ this one came to you from Trolltech AS, dated 2 February 2007, and it's the qmoveevent.3qt page for Qt version 3.3.8 β go forth and move your widgets, mwah ππ
π¦ 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