GetDC () function in QWidget in Qt 5.0.1

I am rewriting the application from Qt 4.8 to 5.0.1, and I have big problems. In Qt version 5.0.1, there is no GetDC() function (no argument). GetDC(hwnd) exist, but I don't have hwnd . What should I do? Please help. There is no information on google about this.

+8
qt5
source share

No one has answered this question yet.

See related questions:

eleven
Without entering keyboard in Qt Creator after upgrading to Qt5
4
Raise QWidget to QMainWindow or add QMainWindow to QWidget from Qt Designer
4
QMake and application package
3
Qt 5.0.1: the application will not run outside the Qt creator
2
Using QPainter to draw a line between QWidgets
2
Force QWidget Child to have their own Window Handle
one
Why do I need to manually specify QAction :: MenuRole in Qt 5.1?
one
Show Qt3D in QWidget in Qt5
one
QWidget listens for other QWidgets events
0
Restored Qt5.0.2 with OpenGL, how to use with Qt Creator

All Articles