Differences in qxw files

Post Reply
valesek
Posts: 2
Joined: Sun Mar 04, 2018 4:45 pm
Real Name:

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?
Attachments
QLCdifferentorderinxml.jpg
janosvitok
Posts: 1274
Joined: Mon Apr 13, 2015 7:05 am
Location: Bratislava, Slovakia
Real Name: Jano Svitok
Contact:

QLC+ version?
janosvitok
Posts: 1274
Joined: Mon Apr 13, 2015 7:05 am
Location: Bratislava, Slovakia
Real Name: Jano Svitok
Contact:

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).
valesek
Posts: 2
Joined: Sun Mar 04, 2018 4:45 pm
Real Name:

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.
janosvitok
Posts: 1274
Joined: Mon Apr 13, 2015 7:05 am
Location: Bratislava, Slovakia
Real Name: Jano Svitok
Contact:

It depends on how good you are at C++ and QT... :)
Post Reply