I get an undefined array error in QML and wonder what to fix this error. Here is the current code:
opacity: mBitField[index]
every time and after a while, it cannot assign undefined
to opacity
, and I wonder if this fix is ββreally:
opacity: mBitField[index] == "undefined" ? 0 : mBitField[index]
Basically what I'm trying to say is an undefined array to assign 0 opacity
otherwise assign whats in the array.
source share