Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, More data (in MB): 1. 136.1 2. 143.5 (+7.4) 3. 145.9 (+2.4) 4. 147.2 (+1.3) 5. 150.1 (+2.9) 6. 152.3 (+2.2) 7. 152.0 (-0.3) 8. 154.7 (+2.7) I guess that small memory leaks still exist. P.S. 5 years tree has 341 branches and 512 leafs. All of them I delete on restart of tree (I chec

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 22:20, Igor Mironchik пишет: Hi, The entity takes ownership of any components that are parentless when added. This is done using the usual QObject ownership mechanism so the components will be deleted by the entity when it is being destroyed just like any other QObject parent

[Interest] Qt 5.9 Beta

2017-04-13 Thread Igor Mironchik
Hello, Qt 5.9 official binaries requires QMAKE_MSC_VER on project load. Is it normal? Should I specify QMAKE_MSC_VER by hands? Thank you. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread william.croc...@analog.com
On 04/13/2017 02:43 PM, Igor Mironchik wrote: 13.04.2017 20:36, Sean Harmer пишет: On 13/04/2017 16:31, Igor Mironchik wrote: Hi, 13.04.2017 17:55, Igor Mironchik пишет: Am I right that QEntity doesn't delete its children on destruction and just removes them from scene? I asked this i

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, The entity takes ownership of any components that are parentless when added. This is done using the usual QObject ownership mechanism so the components will be deleted by the entity when it is being destroyed just like any other QObject parent. There may be a leaks elsewhere but I don't t

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
13.04.2017 20:36, Sean Harmer пишет: On 13/04/2017 16:31, Igor Mironchik wrote: Hi, 13.04.2017 17:55, Igor Mironchik пишет: Am I right that QEntity doesn't delete its children on destruction and just removes them from scene? I asked this in context of QEntity::addComponent()... Seems

[Interest] Q_GADGET vs Q_OBJECT

2017-04-13 Thread Russell, Matthew
Why can my Q_GADGET be read perfectly in QML (JS) but not my Q_OBJECT? I created a class, registered it (Q_DECLARE_METATYPE), and then push instances of it into a QVariantMap. If the object is a Q_GADGET my JS can read it perfectly, but when I switch it to a Q_OBJECT, the objects are blank. I

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Sean Harmer
On 13/04/2017 16:31, Igor Mironchik wrote: Hi, 13.04.2017 17:55, Igor Mironchik пишет: Am I right that QEntity doesn't delete its children on destruction and just removes them from scene? I asked this in context of QEntity::addComponent()... Seems that entity doesn't delete anything. And

Re: [Interest] QtQuick import question

2017-04-13 Thread Elvis Stansvik
Den 13 apr. 2017 10:13 fm skrev "Viktor Engelmann" : > > The _version_ only affects which properties/methods are visible, so you should always go for the minimal version that has all the interfaces you use. > > say there is a qml class foo. in version 1.0 it has method bar, in 1.1 it also has metho

[Interest] Bluetooth LE: HowTo inspect QBluetoothDeviceInfo::serviceUuids

2017-04-13 Thread ekke
from QBluetoothDeviceInfo::serviceUuids I'm getting a list of Service UUIDs ( QBluetoothUuid) without connecting to the device and inspecting the Services. there's per ex: {180d--1000-8000-00805f9b34fb} and I know this means the device supports HeartRate 0x180d How can I inspect the

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 17:55, Igor Mironchik пишет: Am I right that QEntity doesn't delete its children on destruction and just removes them from scene? I asked this in context of QEntity::addComponent()... Seems that entity doesn't delete anything. And documentation is unclear in it: voidQEnti

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 17:31, william.croc...@analog.com пишет: On 04/13/2017 09:21 AM, Igor Mironchik wrote: Hi, Fresh data: First grow of the tree of 5 years - 135,1 MB First restart and 5 years - 173,8 MB Second restart - 203,6 MB Is it a fragmentation? Or something else? Am I right that QEn

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
13.04.2017 17:31, william.croc...@analog.com пишет: On 04/13/2017 09:21 AM, Igor Mironchik wrote: Hi, Fresh data: First grow of the tree of 5 years - 135,1 MB First restart and 5 years - 173,8 MB Second restart - 203,6 MB Is it a fragmentation? Or something else? Are those numbers for L

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread william.croc...@analog.com
On 04/13/2017 09:21 AM, Igor Mironchik wrote: Hi, Fresh data: First grow of the tree of 5 years - 135,1 MB First restart and 5 years - 173,8 MB Second restart - 203,6 MB Is it a fragmentation? Or something else? Are those numbers for Linux or Windows? 13.04.2017 15:39, william.croc...@

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, Fresh data: First grow of the tree of 5 years - 135,1 MB First restart and 5 years - 173,8 MB Second restart - 203,6 MB Is it a fragmentation? Or something else? 13.04.2017 15:39, william.croc...@analog.com пишет: On 04/13/2017 08:34 AM, Igor Mironchik wrote: Hi, Strange, I launch 3D

Re: [Interest] Quick Controls 2: custom control

2017-04-13 Thread Jérôme Godbout
I would be curious, in QtQuick.Control 1.x you could do the following: import QtQuick 2.1 import QtQuick.Controls 1.1 import QtQuick.Controls.Private 1.0 import QtQuick.Controls.Styles 1.1 Control { id: component property int rotationbuttonWidth: 50 property bool pressed: false property color bor

Re: [Interest] QtQuick import question

2017-04-13 Thread Jérôme Godbout
I guess it depends on what software you do, if you target open reusable library, go with minimal number so as many version as possible can be used along with it. If you do proprietary software and you alone control the source, go with the latest version as it will likely be more future proof and y

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, With example of error: ==1834== Thread 1: ==1834== Syscall param writev(vector[...]) points to uninitialised byte(s) ==1834==at 0x7C5340D: ??? (syscall-template.S:84) ==1834==by 0xD4AFF28: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0) ==1834==by 0xD4B031C: ??? (in /usr/lib/x

Re: [Interest] Qt3D: Wireframe

2017-04-13 Thread Ch'Gans
On 14 April 2017 at 00:25, Ch'Gans wrote: > On 13 April 2017 at 18:52, Sean Harmer wrote: >> Hi, >> >> On 13/04/2017 06:15, Ch'Gans wrote: >>> >>> On 13 April 2017 at 14:38, Ch'Gans wrote: Hi, I would like to be able to select at run-time how my entities are rendered (id

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread william.croc...@analog.com
On 04/13/2017 08:34 AM, Igor Mironchik wrote: Hi, Strange, I launch 3Dtree on Linux under valgrind: ==4321== HEAP SUMMARY: ==4321== in use at exit: 439,965 bytes in 6,185 blocks ==4321== total heap usage: 2,207,719 allocs, 2,201,534 frees, 1,241,469,509 bytes allocated ==4321== ==4321== L

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, Strange, I launch 3Dtree on Linux under valgrind: ==4321== HEAP SUMMARY: ==4321== in use at exit: 439,965 bytes in 6,185 blocks ==4321== total heap usage: 2,207,719 allocs, 2,201,534 frees, 1,241,469,509 bytes allocated ==4321== ==4321== LEAK SUMMARY: ==4321==definitely lost: 1,0

Re: [Interest] Qt3D: Wireframe

2017-04-13 Thread Ch'Gans
On 13 April 2017 at 18:52, Sean Harmer wrote: > Hi, > > On 13/04/2017 06:15, Ch'Gans wrote: >> >> On 13 April 2017 at 14:38, Ch'Gans wrote: >>> >>> Hi, >>> >>> I would like to be able to select at run-time how my entities are >>> rendered (ideally on a per entity basis). >>> I would like to have

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, You will need a custom material as the built in materials don't support instancing out of the box - this is waiting on the shader generator that is in development at the moment. In what version of Qt do you guys guess to add instancing support in built in materials? Thank you. __

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Sean Harmer
On 13/04/2017 10:14, Igor Mironchik wrote: Hi, 13.04.2017 12:02, Sean Harmer пишет: Hi, On 13/04/2017 09:33, Igor Mironchik wrote: Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed han

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 12:02, Sean Harmer пишет: Hi, On 13/04/2017 09:33, Igor Mironchik wrote: Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Sean Harmer
Hi, On 13/04/2017 09:33, Igor Mironchik wrote: Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now example uses ready mesh prepared in Blender

Re: [Interest] Qt3D memory leaks

2017-04-13 Thread Igor Mironchik
Hi, 13.04.2017 9:58, Sean Harmer пишет: Hi, On 13/04/2017 07:09, Igor Mironchik wrote: Hello, 3Dtree has been updated. Now autumn is animated. Removed hand-made classes of leaf geometry and mesh. Now example uses ready mesh prepared in Blender. Modified a little constants of the tree. Exampl

Re: [Interest] QtQuick import question

2017-04-13 Thread Viktor Engelmann
The _version_ only affects which properties/methods are visible, so you should always go for the minimal version that has all the interfaces you use. say there is a qml class foo. in version 1.0 it has method bar, in 1.1 it also has method ham and in 1.2 method eggs. if you import 1.2 although yo