C++ API changes▲
Qt 5 introduces some source incompatible changes. Here we list some important ones, but you can find more complete lists in <Qt 5 Install Dir>/qtbase/dist/changes-5.x.x.
The following sections list the API changes in each module and provide recommendations for handling those changes.
Changes to Qt Core▲
-
https://() now returns a function pointer instead of void pointer.
-
QLibraryInfo::buildKey() and the corresponding QT_BUILD_KEY macro are removed. You must remove all references to this function and macro, as build key is not necessary now.
-
The https://() function signature is changed to set the default value of n to -1. We recommend you to update the implementation of this virtual function in your sources.
-
QBool is removed. In Qt 4, https://(), https://(), and https://() returned an internal QBool type so that the Qt3 code if (a.contains() == 2) would not compile anymore. If your code uses QBool, replace it with bool.
-
The QUuid::operator QString() implicit conversion operator is removed. Use the https://() function instead.
-
https:// no longer forwards the output to the GUI applications on the Windows platform, unless those applications create a console.
-
QSystemLocale is not public anymore. Use https:// instead.
-
Default value of the https:// property is changed to true.
-
QTextCodecPlugin is removed as all the text codecs are part of Qt Core now.
-
QFSFileEngine, QAbstractFileEngine, QAbstractFileEngineIterator, and QAbstractFileEngineHandler are no longer public. We recommend you to avoid using these classes as there is no compatibility promise.
-
https://(), https://(), https://(), and https://() are changed to macros now to track the origin of the message in source code. The information to be printed can be configured (for the default message handler) by setting the new QT_MESSAGE_PATTERN environment variable. https:// is deprecated, so we recommend using qInstallMessageHandler() instead.
-
https:// is changed to use https://. The old guard mechanism has been removed, which causes a slight change in behavior when using https://. In earlier Qt versions, if a https:// is used on a https:// (or a subclass of https://), the https:// was cleared by the https:// destructor. In Qt 5, the https:// is cleared by the https:// destructor along with the https://s. Any https:// tracking a widget is not cleared before the https:// destructor destroys the children for the widget being tracked.
-
Qt::WFlags is deprecated, use https:// instead. This typedef dates from the Qt 1 days, and such abbreviations are not current Qt style.
-
https:// typedef is now defined as void * on all platforms.
-
The non-atomic convenience methods of https:// and https:// (that is, operator=, operator int, operator T*, operator!, operator==, operator!=, and operator->) have been removed as they performed implicit loads and stores of unspecified memory ordering. Code dealing with loading and storing is expected to use load(), loadAquire(), store(), and storeRelease(), instead.
-
The return type of QFlags<Enum>::operator int() matches the enum's underlying type (signed or unsigned) instead of always being int. This allows https:// over enums of the unsigned type (for example, https://).
-
Because of major changes in the behavior of https://(), the StartWord and EndWord enum values were replaced with the StartOfItem and EndOfItem values to enforce revision of the affected code.
-
A number of functions in <QtAlgorithms> are deprecated. Use the implementations available in the STL, as described in https://.
-
setSharable() and isSharable() in Qt containers are deprecated and will be removed in Qt 6. You should not use them in new applications. If you used them in existing applications, even though they are not documented, you should port away from them.
Changes to QAction▲
The Softkeys API is removed, so the following functions and enums are removed:
-
QAction::setSoftKeyRole()
-
QAction::softKeyRole()
-
QAction::SoftKeyRole
-
Qt::WA_MergeSoftkeys
-
Qt::WA_MergeSoftkeysRecursively
-
Qt::WindowSoftkeysVisibleHint
-
Qt::WindowSoftkeysRespondHint
Changes to QChar▲
-
QChar::NoCategory is removed. The https:// enum value is returned for unassigned codepoints now.
-
https:// and https://() are deprecated. Use the https:// enum and https://() function instead.
Changes to QCoreApplication▲
-
https://() no longer returns the source text if the translation is empty. Use the Qt Linguist Release tool (lrelease -removeidentical) instead for optimization.
-
QCoreApplication::setEventFilter() and QApplication::x11EventFilter/macEventFilter/qwsEventFilter/winEventFilter are replaced with https://() and https://() for an API much closer to https:// filtering.
The native events that can be filtered this way depend on the https:// backend chosen at runtime. On X11, XEvents are replaced with xcb_generic_event_t due to the switch to XCB, which requires porting the application code to XCB as well.
-
QCoreApplication::Type and QApplication::type() are removed. These Qt 3 legacy application types did not match the application types available in Qt 5. Use qobject_cast instead to dynamically find out the exact application type.
-
https:// and https:// are deprecated.
Changes to QEvent▲
-
QEvent::AccessibilityPrepare, QEvent::AccessibilityHelp, and QEvent::AccessibilityDescription are removed.
-
https:// is introduced to use it on systems where it makes sense to differentiate between a regular https:// and abrupt touch sequence cancellations caused by the compositor. For example, when a swype gesture is recognized.
Changes to QFile▲
-
QFile::setEncodingFunction() and QFile::setDecodingFunction() are deprecated.
-
https://() and https://() are now hard-coded to operate on https://() and https://() only. The old behavior is still possible using https://(), but the new code should not make assumptions about the file system encoding and older code should remove such assumptions.
Changes to QFont▲
-
QFont::handle() is removed.
-
https://() and https://() are deprecated.
Changes to QMetaType▲
-
QMetaType::construct() is renamed as https://().
-
QMetaType::unregisterType() is removed.
-
https:// now records whether the type argument inherits https://. Such information can be useful for scripting APIs, so that custom https:// subclasses are treated as https:// pointers. For example, in https:// this means QScriptValue::isQObject() can be true, where it was false before.
-
QMetaType::QWidgetStar is removed. Use https://() or https://() instead.
-
Q_DECLARE_METATYPE(type) now requires type to be fully defined. This means, Q_DECLARE_METATYPE(QSharedPointer<t>) and Q_DECLARE_METATYPE(QWeakPointer<t>) also need type to be fully defined. In cases where a forward declared type is needed as a meta-type, use Q_DECLARE_OPAQUE_POINTER(type).
Changes to QMetaMethod▲
-
QMetaMethod::signature() is renamed as https://(), and the return type is changed to https://. This change is to enable generating the signature string on demand, rather than storing it in the meta-data.
-
https://() no longer returns an empty string if the return type is void, instead it returns "void". The recommended way of checking whether a method returns void is to compare the return value of https://() with https://.
Changes to QObject▲
-
https://() and https://() now need a https:// argument that identifies the signal, rather than a const char pointer.
-
https://() and QCoreApplication::Encoding are deprecated. Qt assumes that the source code is encoded in UTF-8.
Changes to QVariant▲
-
The https:// constructor which takes https:// argument is removed. Code constructing such variants must explicitly call https:// constructor now. For example, instead of QVariant(Qt::red), use QVariant(QColor(Qt::red)) to create a https:// instance.
-
Implicit creation of https:// objects from the enum values https://, https://, and https:// has been removed. Create objects explicitly or use static_cast<int>(Qt::SolidLine) to create a https:// of type int with the same value as the enum.
Changes to QAbstractEventDispatcher▲
-
The signature for the pure-virtual registerTimer() function is changed. All subclasses of https:// must re-implement the function with this new signature:
SélectionnezvirtualvoidregisterTimer(inttimerId,intinterval,Qt::TimerType timerType, QObject*object)=0; -
https:// is no longer a typedef of QPair<int, int>. It is now a struct with 3 members: int timerId, int interval, and Qt::TimerType timerType. Update the https://() function with this change.
Changes to QDir▲
-
The convertSeparators() function is removed. Use https://() instead.
-
The QDir::NoDotAndDotDot enum value is removed. Use https:// or https:// instead.
Changes to QLocale▲
-
The https:// data has been updated to CLDR 22.1. The historical language and country names were updated to their modern values and some deprecated names were dropped or mapped to their modern alternatives.
-
The https://(), https://(), https://(), https://(), https://(), and https://() functions no longer take the argument for base. They localize base 10 conversions. To convert other bases, use the https:// functions instead.
Changes to QAbstractItemModel▲
-
https://() no longer emits the layoutAboutToBeChanged signal, and https://() no longer emits the layoutChanged signal. All proxy models must connect to (and disconnect from) the https:// and https:// signals.
-
https://() is virtual now to allow implementations to optimize based on internal data.
-
https://() method now only provides the void* and quintptr overloads, making calls with a literal 0 (createIndex(row, col, 0)) ambiguous. Either cast quintptr(0) or omit the third argument to get the void* overload.
-
QAbstractItemModel::setRoleNames() is deprecated. Use https://() instead. https://() is virtual now to allow a consistent API with the rest of https://. Reimplementing the virtual methods to provide the elements is preferred to setting those directly.
Changes to QString▲
-
https:// and https:// constructors now use a negative size to indicate that the string passed is null-terminated (a null-terminated array of https://, in the case of https://). In Qt 4, negative sizes were ignored, which resulted in empty https:// and https://. The size argument now has a default value of -1, replacing the separate constructors that did the same.
-
https://(), https://(), and https://() now return an empty QString, QStringRef, and QByteArray respectively, if the position passed is equal to the length (that is, right after the last character or byte). In Qt 4, they returned a null QString or a null QStringRef.
-
The following https:// functions use the C locale instead of the default or system locale:
-
https://()
-
https://()
-
https://()
-
https://()
-
https://()
-
https://()
-
https://()
-
https://()
-
https://()
-
https://()
This is to guarantee consistent default conversion of strings. For locale-aware conversions use the equivalent https:// functions.
-
Changes to QDate, QTime, and QDateTime▲
-
https:// only implements the Gregorian calendar, and the switch to the Julian calendar before 1582 has been removed. This means all https:// functions return different results for dates prior to 15 October 1582, and there is no longer a gap between 4 October 1582 and 15 October 1582.
-
QDate::setYMD() is deprecated, use https://() instead.
-
Adding days to a null https:// or seconds to a null https:// will no longer return a valid https:///https://.
-
The https://() and https://() functions now take a qint64 argument, and the https://() and https://() functions now return a qint64 value.
-
https:// and https:// are the userProperty for the https:// and https:// classes, insted of https:// as it was for the 4.7 and 4.8 releases. The USER property for these classes was removed before Qt 4.7.0 and added again in Qt 5.0.
-
The serialization behavior for https:// is reverted to pre-Qt 5, because https:// is the local time (that is, ymd hms) regardless of the underlying system time, time zone, or changes in the system zone. Therefore, the consistent behavior when serialising is to save and restore as the local time and not its UTC equivalent. This means that the https:// version is 14 since Qt 5.1.
-
The supported date range in https:// has been reduced to about +/- 292 million years, the range supported by the number of msecs since the Unix epoch of 1 Jan 1970 as stored in a qint64, and as able to be used in https://() and https://().
-
https://() and https://() require non-numeric date component separators when parsing https://. A string like 2000901901 will no longer be recognized as a valid ISO date, whereas 2000/01/01 will, even though it differs from the ISO format 2000-01-01.
Changes to QTextCodec▲
-
QTextCodec::codecForCStrings() and QTextCodec::setCodecForCStrings() are removed as they were creating uncertainty/bugs in using https:// easily and (to a lesser extent) performance issues.
-
QTextCodec::codecForTr() and QTextCodec::setCodecForTr() are removed.
Changes to QUrl▲
https:// changed considerably in Qt 5 to comply better with the URL specifications and with brokenness out there. The following list summarizes the most important functional changes:
-
https://() no longer handles relative paths. They are by definition invalid. Use the https:// flag to remove /./ or /../ sequences as much as possible. It will not remove /../ from the beginning of the path.
-
https:// has been changed to operate only on percent-encoded forms. Fully-decoded forms where the percent character stands for itself, can no longer be encoded, as the getters and setters with encoded in the name are deprecated (except https://() and https://()).
The most notable difference with this change is when dealing with https://(). In earlier Qt versions, this function would return percent characters in the URL, but now it returns %25 like https://() does.
-
https:// no longer decodes %7B and %7D to "{" and "}" in the output of https://().
-
https:// now defaults to decoded mode in the getters and setters for userName, password, host, topLevelDomain, path and fileName. This means a % in one of those fields is now returned (or set) as % rather than %25. If the former behavior was expected, pass PrettyDecoded to the getter and TolerantMode to the setter.
-
https:// no longer has functions that handle individual query items and query delimiters, such as addQueryItem() and queryPairDelimiter(). These have been moved to the new https:// class.
-
https:// no longer considers all delimiter characters equivalent to their percent-encoded forms. https:// and https:// always keep all delimiters exactly as they were in the original URL text.
-
https:// no longer supports https:// mode in https://() and https://(), nor https:// in https://() and https://().
-
https:// no longer decodes %23 found in the fragment to "#" in the output of https:// (FullyEncoded) or https://().
Changes to Qt Concurrent▲
https:// has been moved from https:// to its own module. To link against the Qt Core module, add this line to the project file:
QT += concurrentThe QtConcurrent::Exception class is renamed https:// and QtConcurrent::UnhandledException class is renamed https://. They remain in Qt Core.
Changes to Qt GUI▲
-
https:// now has a default width of 1 instead of 0. Thus, it is no longer https:// by default.
-
https:// is now based on providing a list of action names. All functions have been changed to take arguments of type string insted of int.
-
The constructor of https:// does not need the child parameter anymore, and the corresponding QAccessibleEvent::child() function is removed.
-
The constructor of https:// does not need the hiResGlobalPos argument anymore, as all coordinates are floating point-based now.
-
QIconEngineV2 is now merged into https://. Update your sources to use QIconEngine instead of QIconEngineV2.
-
https:// is moved to Qt Multimedia from Qt GUI.
-
QDesktopServices::storageLocation() and QDesktopServices::displayName() are replaced by https://() and https://() respectively. They are now in the https:// module. Make sure to read the QDesktopServices::storageLocation() documentation when porting from QDesktopServices::DataLocation.
-
QPixmap::grabWindow() and QPixmap::grabWidget() are removed. Use https://() instead.
-
The session management API has been simplified. The commitData() function is removed and replaced by the signal https://(). https:// and https:// will emit this signal from 5.2 onward on supported platforms (Linux and Windows).
-
QWidget *widget() is replaced with QObject *target() to avoid https:// dependencies.
Changes to QAccessibleInterface▲
-
The child integer parameters are removed to bring https:// closer to IAccessible2. This means that the following functions lose the integer parameter:
-
text(Text t, int child) is now https://(Text t)
-
rect(int child) is now https://()
-
setText(Text t, int child, const QString &text) is now https://(Text t, const QString &text)
-
role(int child) is now https://()
-
state(int child) is now https://()
-
-
navigate() is replaced with https://() and https://() to navigate the hierarchy.
-
relationTo() is replaced with https://().
-
QAccessibleInterface::userActionCount(), QAccessibleInterface::actionText(), and QAccessibleInterface::doAction() are removed. We recommend using the https:// subclasses to implement the https:// instead.
Changes to QImage▲
-
https://() on an image with format Format_RGB888 now expects image data in RGB layout as opposed to BGR layout. This is to ensure consistency with RGB32 and other 32-bit formats.
-
The behavior of https://(), https://(), https://(), and https://() on a non-null image changed so that if the functions fail to load the image (return false), the the existent image data is invalidated, so that isNull() is guaranteed to return true in this case.
Changes to QPainter▲
-
https:// does not support uniting clipped regions anymore. Use https://() instead to unite clips and pass the result to https://.
-
https:// fill rules when not using antialiased painting have changed so that the aliased and antialiased coordinate systems match. There used to be an offset of slightly less than half a pixel when doing sub-pixel rendering, in order to be consistent with the old X11 paint engine. The new behavior should be more predictable and give the same consistent rounding for images and pixmaps as for paths and rectangle filling. To get the old behavior, set the https:// render hint.
Changes to QTouchEvent▲
-
QTouchEvent::DeviceType and QTouchEvent::deviceType() are deprecated as https:// provides a better way to identify and access the device from which the events originate.
-
The constructor now takes a https:// pointer instead of DeviceType value.
-
TouchPointStateMask and TouchPointPrimary are removed from the https:// enum.
-
QTouchEvent::TouchPoint::isPrimary() is removed.
Changes to Qt Widgets▲
-
https://() and https://() signatures are changed to take arguments of type int instead of https://.
-
QInputContext is removed as related getter and setter functions in https:// and https:// are removed. Input contexts are now platform-specific.
-
QInputDialog::getInteger() is deprecated. Use https://() instead.
-
The QStyleOption*V{2,3,4} classes are removed, and their members are merged with the respective base classes. The removed classes are left as typedefs for binary compatibility.
-
https:// and its derived classes can no longer pass a https:// to the item's constructor. Construct the item without a scene and call https://() to add the item to the scene.
-
QProxyModel is removed. Use https:// and the related classes instead. A copy of QProxyModel is available in the http:// repository.
Changes to QApplication▲
-
QApplication::setGraphicsSystem() is removed, because the introduction of https:// made it redundant.
-
QApplication::commitData and QApplication::saveState virtual methods that were used for session management are removed. Connect to the https:// and https:// signals instead. Use https://() if the https:// if your window needs to know whether it is being called during shutdown.
Changes to QStyle▲
-
QStyle::standardIconImplementation() and QStyle::layoutSpacingImplementation() are removed, and the https://() and https://() functions are made pure virtual now. The removed functions were introduced in Qt 4 for binary compatibility reasons.
-
QMotifStyle, QPlastiqueStyle, QCleanlooksStyle, and QCDEStyle are replaced with a new fusion style. If your application depends on any of these removed styles, you can either use the http:// project to get these styles or update your application to use the new fusion style. For more details about this change, see https://.
-
The following https:// implementations have been made internal:
-
QFusionStyle
-
QGtkStyle
-
QMacStyle
-
QWindowsCEStyle
-
QWindowsMobileStyle
-
QWindowsStyle
-
QWindowsVistaStyle
-
QWindowsXPStyle
Instead of creating instances or inheriting these classes directly, use:
-
https:// for creating instances of specific styles.
-
https:// for customizing existing style implementations.
-
https:// as a base for implementing full custom styles.
-
Changes to QHeaderView▲
The following functions are deprecated:
-
void setMovable(bool movable) - Use https://() instead.
-
bool isMovable() const - Use https://() instead.
-
void setClickable(bool clickable) - Use https://() instead.
-
bool isClickable() const - Use https://() instead.
-
void setResizeMode(int logicalindex, ResizeMode mode) - Use https://() instead.
-
ResizeMode resizeMode(int logicalindex) const - Use https://() instead.
Changes to QAbstractItemView▲
-
The derived classes now emit the clicked() signal on the left mouse click only, instead of all mouse clicks.
-
The virtual https://() function signature now includes the roles that have changed. The signature is consistent with the dataChanged() signal in the model.
Changes to QColorDialog▲
-
https://() now returns a https:// value instead of QRgb.
-
https://() and https://() now need a https:// value as their second parameter instead of QRgb.
Changes to Qt WebKit▲
-
The WebKit module in Qt is now split in two modules, webkit and webkitwidgets, in order to allow the dependency of the widgets module to be optional. The benefits will only be available once the QQuickWebView API is made public through C++ in a future version. The webkitwidgets module adds the webkit module automatically to the project, so in your application's project file, QT += webkit should now be modified to:
SélectionnezQT+=webkitwidgets -
The same applies to the module include, #include <QtWebKit/QtWebKit> should be modified to:
Sélectionnez#include <QtWebKitWidgets/QtWebKitWidgets> -
A consequence of the module split is that classes of the http:// API aren't all in the new module, so for a better compatibility of your application with both Qt4 and Qt5, #include <QtWebKit/QWebPage>, for example, should be included directly as:
Sélectionnez#include <QWebPage>The include path will take care of selecting the right module.
-
The qwebkitversion.h header has been renamed to qtwebkitversion.h to match other Qt modules, and part of its contents has been moved to qwebkitglobal.h. #include <qwebkitversion.h> should be replaced with two includes:
Sélectionnez#include <qtwebkitversion.h>#include <qwebkitglobal.h>
Changes to Qt Print Support▲
-
The QPageSetupDialog::PageSetupDialogOption enum and the corresponding set and get functions, QPageSetupDialog::options() and QPageSetupDialog::setOptions() are removed.
-
Support for printing PostScript files has been removed.
-
The QAbstractPageSetupDialog class is removed. Use https:// instead.
-
The https:// enum value PPK_SuppressSystemPrintStatus is removed.
-
https:// no longer allows you to set an invalid printer name.
Changes to Qt Network▲
-
The QSsl::TlsV1 enum value is renamed as https://.
-
The QHttp, QHttpHeader, QHttpResponseHeader, and QHttpRequestHeader classes are removed. Use https:// instead.
-
The QFtp and QUrlInfo classes are no longer exported. Use https:// instead. Programs that require raw FTP or HTTP streams can use the https:// and https:// compatibility add-on modules that provide the QFtp and QHttp classes as they existed in Qt 4.
-
https://() and https://() are virtual now, and QAbstractSocket::connectToHostImplementation() and QAbstractSocket::disconnectFromHostImplementation() are removed.
-
https://() now takes arguments of type qintptr instead of an int.
-
QNetworkConfiguration::bearerName() is removed. Use the https://() instead.
Changes to QSslCertificate▲
-
https://() and https://() now return https:// instead of a https://. This change makes searching the required information a lot easier than scanning a long string.
-
QSslCertificate::isValid() is deprecated. Use https://() instead to avoid binary breaks in the future.
-
QSslCertificate::alternateSubjectNames() is deprecated. Use https://() instead.
Changes to Qt SQL▲
-
https://() is virtual now.
-
https://() emits fewer signals. The modelAboutToBeReset() and modelReset() signals are sufficient to inform views that they must re-interrogate the model.
-
https://(), https://(), https://(), https://(), and https://() are virtual now. The corresponding xxxImplementation functions are also removed as the subclasses of https:// can re-implement those directly.
-
https:// now handles alphanumeric error codes that are used by QPSQL. The numeric codes are deprecated.
Changes to Qt Test▲
-
The plain-text, XML and lightxml test output formats are updated to include test result for every row of test data in data-driven tests. In Qt4, only fails and skips were included for individual data rows without the passes information. This limitation prevented accurate test run and pass rates calculation.
-
The QTRY_VERIFY and QTRY_COMPARE macros are now part of QTestLib. These macros were part of tests/shared/util.h earlier, but now they are part of the <https:///https://> header. In addition, QTRY_VERIFY_WITH_TIMEOUT and QTRY_COMPARE_WITH_TIMEOUT are provided to specify custom timeout values.
-
The QTEST_NOOP_MAIN macro is removed. If a test appears to be inapplicable for a particular build at compile-time, it should be omitted either using the .pro file logic or call QSKIP in the initTestCase() method to skip the entire test. If you're using the later approach, report a meaningful explanation in the test log.
-
The DEPENDS_ON macro is removed as it misled some users to believe that they could make test functions depend on each other or impose an execution order on test functions.
-
QTest::qt_snprintf() is removed. This was an internal test library function that was exposed in the public API due to its use in a public macro. Any calls to this function must be replaced with https://().
-
c{QTest::pixmapsAreEqual()} is removed. Comparison of https:// objects must be done using the QCOMPARE macro, which provides more informative output in the event of a failure.
-
The "mode" parameter in QSKIP macro is removed. This parameter caused problems in test metrics calculation because of the SkipAll mode, which hid information about the skipped test data. Calling QSKIP in a test function now behaves like SkipSingle, which is skipping a non-data-driven test function or skipping only the current data row of a data-driven test function. Every skipped data row is now reported in the test log.
-
qCompare() has been replaced by overloading. Code such as qCompare<QString>(l, r) no longer uses the https://-specific implementation and may fail to compile. We recommend that you replace specialization with overloading. Also, rather than pass explicit template arguments to qCompare, let the overload resolution pick the correct one, and cast arguments in case of ambiguous overloads (for example, qCompare(QString(l), r)). The resulting code will continue to work against older QtTestlib versions.
-
QTest::qWaitForWindowShown() is replaced with https://().
Changes to Qt OpenGL▲
Apart from the https:// class, the https:// module should not be used for new code. Instead, use the corresponding OpenGL classes in https://.
-
https:// is deprecated and implemented by using a hidden https:// and a https://. For offscreen rendering to a texture, switch to using https:// directly to improve performance.
-
The default major version of https:// is changed to 2 to align it with https://. Applications that want to use a different version, should explicitly request it using https://().
-
QGLContext::generateFontDisplayLists() and QGLWidget::fontDisplayListBase() are removed.
-
The listBase parameter is removed from https://() functions.
-
To ensure support on more platforms, stricter requirements have been introduced for doing threaded OpenGL. First, you must call https://() at least once per each https://() call, so that the platform has a chance to synchronize resizing the OpenGL surface. Second, before calling https://() or https://() in a separate thread, you must call https://() to explicitly let Qt know in which thread a https:// is currently being used. You also need to make sure that the context is not current in the current thread before moving it to a different thread.
Changes to Qt Global▲
-
qMacVersion() is removed. Use https://() or https:// instead.
-
Qt::escape() is deprecated. Use https://() instead.
-
qIsDetached<> is removed, becauses it is irrelevant for multi-threaded applications. There is no replacement for this function.
Changes to Tools▲
-
The qttest_p4.prf file is removed. Use CONFIG+=testcase and other flags instead.
-
The -dwarf2 configure argument is removed. DWARF2 is always used on macOS now.
-
Configure no longer calls qmake -recursive by default, because the subsequent build invokes qmake as needed. Use -fully-process to restore the old behavior.
-
The https:// CODECFORTR variable is deprecated, because source code written with Qt 5 is expected to use UTF-8 encoding.


