From f772b8e48c91869215e2527556a95f55c1c2ad8b Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Thu, 15 Oct 2020 13:28:30 +0200 Subject: Document (some) Qt6 changes for QtWidgets Change-Id: I8185e7c4d46f77fa80ad351e1e73d53ca30201a6 Reviewed-by: Lars Knoll Reviewed-by: Paul Wicking --- src/widgets/doc/src/qt6-changes.qdoc | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'src/widgets/doc') diff --git a/src/widgets/doc/src/qt6-changes.qdoc b/src/widgets/doc/src/qt6-changes.qdoc index 47e02dc6c9..681d9a3813 100644 --- a/src/widgets/doc/src/qt6-changes.qdoc +++ b/src/widgets/doc/src/qt6-changes.qdoc @@ -43,6 +43,12 @@ \section1 Kernel classes + \section2 QWidget + + The virtual QWidget::enterEvent() handler now receives a QEnterEvent* + parameter which has information about the pointer position, rather than + a plain QEvent*. + \section2 QDesktopWidget and QApplication::desktop() QDesktopWidget was already deprecated in Qt 5, and has been removed in @@ -55,4 +61,45 @@ Use QWidget::setScreen() to create a QWidget on a specific display; note that this does not move a widget to a screen in a virtual desktop setup. + + \section2 QAction, QActionGroup + + These classes have been moved into the QtGui module. Member functions that + depend on types defined in QtWidgets (such as QAction::menu() and + QAction::setMenu()) are implemented as templates that will be instantiated + only when called. + + \section2 QPixmap, QBitmap, and QCursor + + QBitmap and QCursor can no longer be implicitly created from a QPixmap; use + the explicit constructor and factory function instead. + + \section1 Widgets + + \section2 QAbstractButton + + The default timeout parameter for QAbstractButton::animateClick() is + removed to allow modern connection syntax without the need for qOverload. + + \section2 QComboBox + + The QComboBox::setModel() function is now virtual. + + \section1 Styling Classes and related APIs + + All versioned QStyleOption subclasses are consolidated, and the version + numbers are reset to 1. + + The various initStyleOption() methods in widget classes are now virtual. + + \section1 Printing Classes + + \section2 QPagedPaintDevice, QPrinter, QPageSize, QPageLayout + + The various enums and types for \l{QPageSize}{page sizes}, + margins, and orientation have been consolidated. QPrinter APIs to set + paper sizes and margins explicitly have been removed; use + QPagedPaintDevice::setPageLayout(), QPagedPaintDevice::setPageSize(), + QPagedPaintDevice::setPageOrientation(), and + QPagedPaintDevice::setPageMargins() instead. */ -- cgit v1.2.3