... by adding more arguments, but then constraining that they don't, actually, exist. This makes the the signature of a normal qHash(T, size_t) consistently a better overload (for same T) than the 1-to-2 adapter. It doesn't solve the problem that the adapter inserts hash functions for types that were never defined to be hashable (cf. e.g. QTBUG-116076). But the adapter is already slated for removal in Qt 7, which will solve the issue, though maybe we can expedite its demise in 6.9. Add the test from the bugreport to tst_QHashFunctions. Fixes: QTBUG-126659 Change-Id: Idb3f275f0409652d55b318d56092764371269c06 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 798c23189c7fb73629c1a98361cb1f50446fecf1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This directory contains autotests and benchmarks based on Qt Test. In order to run the autotests reliably, you need to configure a desktop to match the test environment that these tests are written for. Linux X11: * The user must be logged in to an active desktop; you can't run the autotests without a valid DISPLAY that allows X11 connections. * The tests are run against a KDE3 or KDE4 desktop. * Window manager uses "click to focus", and not "focus follows mouse". Many tests move the mouse cursor around and expect this to not affect focus and activation. * Disable "click to activate", i.e., when a window is opened, the window manager should automatically activate it (give it input focus) and not wait for the user to click the window.