You have several syntax errors in your original input: using parentheses instead of square brackets around arguments of Q; and using the assignment single equals sign instead of the double-equal sign when forming equations.
Also, by any chance did you mean (100-t)Q[t] rather than Q[t] 100 - t ?
Murray, thanks for the reply. I did make those typos while I was posting the problem here but didn’t while I entered the command in Mathematica. It could be my version of Mathematica (11.1). But I also tried it on Wolfram Cloud and got the same imaginary solution.
I think that other question was correclty answered by Shenghui Yang there.
I’d just add that we don’t know the details of how Mathematica solves a given real-coefficient ODE “behind the scenes”, so that using approximate numbers within the differential equation or initial conditions does have the potential to generate solutions that are complex but with nearly-vanishing imaginary parts. So either, as in that answer, Chop the results or else use exact numbers in the coefficients and initial-conditions.