QX4 and R50 are practically identical in every way. Key differences are generally the luxury items (interior trims, fancy headlight options), but everything else being the same. Biggest notable difference, specifically for 4WD models, is all QX4 have the full-time "all-mode" 4WD system, whereas only some Pathfinders have that system (generally the LE trim), with the rest getting a part-time system. The full-time system is all electrically actuated; shifting is done by a dial to select the drive mode between 2WD, Auto/AWD, and 4H/4L. Part-time system has a floor shifter. If you have no concerns with an electric transfer case, then you're good (you would want to do due diligence if a prospective purchase has any issues with the t-case; check for dash lights!).
Suspension wise, they are identical with the exception of a few more vibration/noise/harshness items around the truck to help make it a "premium" ride. All parts are interchangeable. If you're new to the platform in general, the suspension is the biggest hang-up for it. Front McPherson struts make for a great ride, but also creates a complete lack of aftermarket support. Not even sure what's available these days beyond strut spacers to lift things. Old Man Emu front springs are the way to go if they're still available. A lot of people use a Land Rover springs for the rear.
Overall, the drivetrain is solid in stock form. Very stout and practically identical to all Nissan trucks through 2005...and arguably stronger than anything Nissan produced after that. However, the R50/QX4 platform is an absolute bastard...Nissan made pretty much everything unique to the platform, despite being "identical" to other Nissan trucks/SUVs of the era. In a few ways it was actually better (high-pinion front axle, lower 4L gears in the all-mode transfer case), but at the same time, also worse because it's basically a one-off platform that no one supports.
All said, QX4 is as great as any R50 because they're the same, but the platform at large may be limiting depending on what you want to do with it. If you think you'll want to modify it in terms of lifting or traction, I'd recommend looking elsewhere. Will it strand you? Probably not, unless you do something dumb. Notably, I've helped build up several of these trucks with lifts and lockers, including a sweet 02 QX4 that I'll see again in a few months, and can attest they're very capable vehicles. But I think the truck is long past its prime in terms of aftermarket support.