[Interest] Subclassing of QEntity

Sean Harmer sean.harmer at kdab.com
Sun Apr 9 20:32:43 CEST 2017


Hi,

Sounds odd. Can you file a JIRA and a test case please?

Thanks,

Sean

On 09/04/2017 17:05, Igor Mironchik wrote:
> Hi,
>
>
> 09.04.2017 18:54, Igor Mironchik пишет:
>> Hi,
>>
>>
>> 09.04.2017 18:43, Igor Mironchik пишет:
>>> Hi,
>>>
>>> What should I know when subclassing QEntity?
>>>
>>> I subclassed, in c_tor() gave parent node to c_tor() of QEntity. All
>>> is ok. If I populate scene before first rendering - everything is
>>> fine - I see all entities.
>>>
>>> But if I dynamically populate the scene then I see only that entities
>>> that were created before setRootEntity() call.
>>>
>>> What strangle is that I see all entities, even that that were
>>> populated dynamicaly but my subclassed entities...
>>>
>>> What I miss? Maybe I have to do something when subclassing QEntity?
>>
>> I have to say that my dynamic entites start with scaling 0.0f and then
>> in timer event scale grows. Scale really grows, I chcked. But I don't
>> see my dynamic entities...
>
> This is exactly the problem. If entity starts with 0.0f scaling then it
> won't be visible if you set scale to even 100.0f later... Start scale
> should be greater than zero...
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts



More information about the Interest mailing list