Qt Resource System Internals #194
-
Hi! My question isn't directly related to qmetaobject-rs, but I'm asking here because you are probably knowledgeable on the topic. I'm currently trying to implement support for QRC in the QML bindings for Haskell, similar to how it is implemented in qmetaobject-rs. However I'm hitting a weird problem: But this doesn't: Do you know if files need to be placed in the binary format in a certain order? Just in case you know haskell and want to have a look at the code, you can find it here: https://codeberg.org/jbb/HsQML/pulls/1 Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
As far as i know, we don't sort the files. Maybe we are doing it wrong, or there is something else that goes wrong in your binary format. Maybe something to do with padding bytes? |
Beta Was this translation helpful? Give feedback.
-
For future reference: |
Beta Was this translation helpful? Give feedback.
For future reference:
From my testing, the files need to be sorted by their hash in the tree. In qmetaobject-rs's case, this happens automatically, since files are stored in a BTreeMap. In my implementation this was missing.