It is tight (manly because of the risk of late arrival of the JFK-DOH flight). You will need to clear transit security which is generally quick. If it is all on one ticket then you will be safe if you miss the connection anyway - QR will just put you on the next flight to JNB so you may as well go ahead and book it.