I can try, but there are all kind of things that can play in to this.
I will try the simple stuff first.
Show the implementation of the constructor.
I can try, but there are all kind of things that can play in to this.
I will try the simple stuff first.
Show the implementation of the constructor.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
thanks for your help high_flyer ,
to be honest i just trying to figur out using of RubberBand on simply GLWidget, so there is no code at ctor,
I really stuck with refresh CustomWidgets content, could you help figure out this ?
I mean the ctor of your QGLWidget implementation.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
hi, high_flyer ;
As i said before for moment there is no code at ctor. I'm just trying using QRubberBand on QGLWidget so there is problem as you noticed QGLWidget doesn't refresh itself and there is problem like flooding QRubberBand, can i use QRubberBand on QGLWidget actually i wanna know this atm ... Thanks for your interest ...
Ok, so it means you have default flags on it - but then I don't know why its not getting updates when you drag the rubber band on it.
You can try sub classing QRubberBand, and override the resizeEvent() and send a signal from it.
And in your QGLWidget, intercept that signal, and call update().
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Thanks for advice high_flyer, i've actually tried bind a pushbutton clicked signal with qglwidget its , update and repaint slots but it doesn't any effect, i even tried custom rubberband which derived form Qrubberband override paint events also it's not working too =) , so let me know is it possible to use QRubberBand on QGLWdiget or not ?
It must be possible, since QGLWidget is a QWidget.is it possible to use QRubberBand on QGLWdiget or not ?
I don't know what it is you are doing wrong, based on the information you provided so far...
Try to make a test project where you only have a widget and QRubberBand drawn on it.
Once you get it to work there, try comparing between that and you QGLWidget usage of QRubberBand.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks