You can invest the qualified dividends in a qualified opportunity fund, but that investment will not be eligible for opportunity zone benefits. While qualified dividends are taxable at long-term capital gains rates, they do not constitute capital gains.