-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draw 2D graphics onto a QOpenGLWidget subclass using QPainter #7
Comments
I am not sure what you mean in this issue. Do you want me to remove the |
Now, in the windows platform,can’t display the things QPainter draw when use your code. My English is poor. Most of them are from google translation |
I am sorry, I do not have much experience with programming for Microsoft Windows. I will try to look into this. Can you send me some screenshots maybe? |
Now show the correct under Windows
Under Windows, you need to add the link library |
Thank you for these modifications! Is the |
If you do not inherit |
Thank you for the reply! I will refer to this discussion in the README file because, as I said, I do not have sufficient experience with programming for Microsoft Windows. |
This URL (http://doc.qt.io/qt-5/qopenglwidget.html)show Draw 2D graphics onto a QOpenGLWidget subclass using QPainter.I don't konw why you reimplement the paintEvent() and call makeCurrent() and doneCurrent().
Install Qt5.9.1 with examples, you will find one example qopenglwidget in Qt5.9.1\Examples\Qt-5.9.1\opengl. qopenglwidget is a example show how to Draw 2D graphics onto a QOpenGLWidget subclass using QPainter.I tried to modify your code to make it look like that example. I remove paintEvent(),and put QPainter in paintGL(), but it not works.
You can try it.
The text was updated successfully, but these errors were encountered: