The official MCT is 45 mins QR to QR. That is just about possible if your inbound flight is on-time, it arrives at a jet bridge, you know the airport well, transit security isn't busy and you can walk quickly. Otherwise, it's a little tight. Personally, I might chance it if there were regular flights to my destination.
Gates close 20 mins before departure.
Maybe the flight schedule changed slightly and the connection reduced from 45 mins to 40 ??
----
Results from ExpertFlyer.com
Minimum Connect Times:
Connecting at DOH
Incoming airline QR
Outgoing airline QR
Flight type International to International
STANDARD.D/D...D/I...I/D...I/I.
ONLINE .20 1.00 1.00 1.00
OFFLINE .20 1.00 1.00 1.00
** OR * ARE ALL
QR-QR II 1.25 FLT 3500 - 6999 - ALL ALL - CANADA
QR-QR II 1.25 FLT 3500 - 6999 - ALL ALL - UNITED STATES
QR-QR II 1.00 FLT 3500 - 6999 - ALL
QR-QR II 1.00 ALL - CANADA
QR-QR II 1.00 ALL - UNITED STATES
QR-QR II .45
**-QR II 1.25 ALL - CANADA
**-QR II 1.25 ALL - UNITED STATES
**-QR II 1.00