Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qwindowsdirect2dnativeinterface.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
6#include <QtGui/qbackingstore.h>
7
9
11{
12 if (!bs || !bs->handle()) {
13 qWarning("%s: '%s' requested for null backingstore or backingstore without handle.", __FUNCTION__, resource.constData());
14 return nullptr;
15 }
16
17 // getDC is so common we don't want to print an "invalid key" line for it
18 if (resource == "getDC")
19 return nullptr;
20
21 qWarning("%s: Invalid key '%s' requested.", __FUNCTION__, resource.constData());
22 return nullptr;
23
24}
25
The QBackingStore class provides a drawing area for QWindow.
QPlatformBackingStore * handle() const
Returns a pointer to the QPlatformBackingStore implementation.
\inmodule QtCore
Definition qbytearray.h:57
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
Definition qbytearray.h:122
void * nativeResourceForBackingStore(const QByteArray &resource, QBackingStore *bs) override
Combined button and popup list for selecting options.
#define qWarning
Definition qlogging.h:162