Page 1 of 1

Differences in qxw files

Posted: Sun Mar 04, 2018 5:32 pm
by valesek
Hello all,
I have one question.
I am using QLC with several other people.
I have problem, that I can't found where anyone of them change something because there are more windows to compare content of them.
Sometime I compare qxw files, but there is one bad thing, because QLC save elements into qxw file everytime in different order.
In attachment is example of difference which is moretimes in qxw file.

Is there in qlc any option to save elements in same order or how can I compare fastly qxw files?

Re: Differences in qxw files

Posted: Sun Mar 04, 2018 5:40 pm
by janosvitok
QLC+ version?

Re: Differences in qxw files

Posted: Mon Mar 05, 2018 10:18 am
by janosvitok
I see your problem now.

https://github.com/mcallegari/qlcplus/b ... x.cpp#L451

QHash is not sorted. Solution is either to sort the keys before iteration or convert to temporary QMap.
see e.g. https://forum.qt.io/topic/25306/can-i-use-qhash-tomap/2
For data sets of this size (~10 items) using QMap straight away might be even faster (needs to be measured though).

Re: Differences in qxw files

Posted: Tue Mar 06, 2018 5:29 pm
by valesek
Thank you for your reaction,
but I don't know if this issue is planned to solve or if is needed some help from me.

Re: Differences in qxw files

Posted: Tue Mar 06, 2018 7:28 pm
by janosvitok
It depends on how good you are at C++ and QT... :)