[Interest] How to hide the QSGGeometryNode?
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Mon Apr 15 17:45:31 CEST 2019
Hi,
Il 15/04/19 13:11, Denis Shienkov ha scritto:
> Yes, now I use this in a form of:
>
> boolCurveNode::isSubtreeBlocked()const
>
> {
>
> returnQSGGeometryNode::isSubtreeBlocked()||!m_visible;
>
> }
>
> voidCurveNode::setVisible(boolvisible)
> {
> if(m_visible==visible)
> return;
> m_visible=visible;
> if(!m_visible)
> m_dirtyState|=DirtySubtreeBlocked;
> else
> m_dirtyState|=DirtyOpacity;
> }
>
>
Please make a minimal testcase. The code above seems incomplete (e.g. no
calls to markDirty to update those dirty bits).
HTH,
--
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190415/0cca3197/attachment.bin>
More information about the Interest
mailing list