[15:58:37] <jpnurmi> this is how Trolls theirselves do it: [15:58:38] <jpnurmi> Qt::CheckState checkState = static_cast<Qt::CheckState>(variant.toInt());