8

I rewrite application from Qt 4.8 to 5.0.1 and I have big trouble. In Qt 5.0.1 version there is no GetDC() function (with no argument). GetDC(hwnd) exist but I have no hwnd. What should I do? Please help. On google there is no information about it.

2
  • 4
    I solved my problem. HWND hwnd = (HWND)this->winId(); and GetDC(hwnd); Commented Mar 7, 2013 at 10:10
  • 2
    You might add this as an answer instead of a comment. You can then mark it as answered. You get extra points for it too
    – Jay
    Commented Sep 11, 2013 at 16:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.