We introduce a model for a fluid of polydisperse rounded hard rectangles where the length and width of the rectangular core are fixed, while the roundness is taken into account by the convex envelope of a disk displaced along the perimeter of the core. The diameter of the disk has a continuous polydispersity described by a Schulz distribution function. We implemented the scaled particle theory for this model with the aim of studying: (i) the effect of roundness on the phase behavior of the one-component hard-rectangle fluid and (ii) how polydispersity affects phase transitions between isotropic, nematic, and tetratic phases. We found that roundness greatly affects the tetratic phase, whose region of stability in the phase diagram strongly decreases as the roundness parameter is increased. Also, the interval of aspect ratios where the tetratic-nematic and isotropic-nematic phase transitions are of first order considerably reduces with roundness, both transitions becoming weaker. Polydispersity induces strong fractionation between the coexisting phases, with the nematic phase enriched in particles of lower roundness. Finally, for high enough polydispersity and certain mean aspect ratios, the isotropic-to-nematic transition can change from second (for the one-component fluid) to first order. We also found a packing-fraction inversion phenomenon for large polydispersities: the coexisting isotropic phase has a higher packing fraction than the nematic.