one is custom, other is usual QSilder. None is shown.
In fact, this proxy is child of own class which inherits QGItem and implements paint event. When widget is added on scene without any parents, everything ok
one is custom, other is usual QSilder. None is shown.
In fact, this proxy is child of own class which inherits QGItem and implements paint event. When widget is added on scene without any parents, everything ok
What happens if you put the two children in a normal QWidget? do they show then?
==========================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.
of course.
by the way, bug still not reproduces on empty scene, with same parameters, and with my custom parent.
i really hate to modify alien code![]()
ha? of course? you mean it shows?
Does you parent re implement paintEvent()?
If so, can you post the code?
==========================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.
Well, in fact it seems that problem is that architecture of items is too complex (a lot of subchildren and all this hierarchy is laid on item with opengl wigdet). Some parts of this structure used alone seems working
My parent item just draws background and being used alone it shows my proxy and my complex widget with it's children.
Well, you are providing too little information to allow helping you in any efficient way.
Using QGLWidget is an important piece of information, which only now you mentioned in parenthesis.
That alone could explain the problem you are talking about.
It seems you are reluctant to explain in more detail...
That is ok, but makes it very hard to help you.
==========================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