int64_t must be cast to qlonglong