Superpower steam meets superpower diesel, late 1940s. Both the Q2 and Centipede were built post WWII, but both had short lives with the Q2 retired in 1951 and most Centipedes gone by 1957 (a few made it to 1962).
The Q2 is an MTH model, the Centipede is Lionel.
Believe all the Q2's were built before VE Day.