QMoveEvent(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– 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 also QWidget::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 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