qzxing icon indicating copy to clipboard operation
qzxing copied to clipboard

Alias to property QZXingFilter.decoder.enabledDecoders hangs app!

Open JacekMarcinJ opened this issue 8 years ago • 1 comments

Hi! I have alias to property for QZXingFilter.decoder.enabledDecoders. And when I write default value to this alias my app hangs! I am not sure whether is this qml bug or qzxing. So I ask you first before I report this to the Qt.

My alias is declared:

Base {
    property alias codes: zxingFilter.codes
    codes: QZXing.DecoderFormat_EAN_8 | QZXing.DecoderFormat_EAN_13 | QZXing.DecoderFormat_CODE_128 | QZXing.DecoderFormat_CODE_39 | QZXing.DecoderFormat_QR_CODE
    

    QZXingFilter
    {
    ,,,
       decoder {
            id: decoder1
    ....
    }
}

Base is my page/window base class.

And when I write directly this default codecs - then it works!

        decoder {
            id: decoder1
            enabledDecoders: QZXing.DecoderFormat_EAN_8 | QZXing.DecoderFormat_EAN_13 | QZXing.DecoderFormat_CODE_128 | QZXing.DecoderFormat_CODE_39 | QZXing.DecoderFormat_QR_CODE

But I don't want do it in that way - because I want to make generic interface to my qml class (window/page).

JacekMarcinJ avatar May 15 '17 07:05 JacekMarcinJ

Hello @JacekMarcinJ

with a quick first look to the above code, i have a question in the following line of code:

property alias codes: zxingFilter.codes

the zxingFilter.codes property does not exist. I do not know whether this could be written as:

property alias codes: zxingFilter.decoder.enabledDecoders

Eitherway, in case you are still experiencing issues till the end of the day i will find some time to take further look at it.

Best regards

ftylitak avatar May 15 '17 08:05 ftylitak