Porcine astrovirus (PoAstV), porcine sapovirus (PoSaV), porcine norovirus (PoNoV), and porcine rotavirus A (PoRVA) are newly discovered important porcine diarrhea viruses with a wide range of hosts and zoonotic potential, and their co-infections are often found in pig herds. In this study, the specific primers and probes were designed targeting the ORF1 gene of PoAstV, PoSaV, and PoNoV, and the VP6 gene of PoRVA. The recombinant standard plasmids were constructed, the reaction conditions (concentration of primers and probes, annealing temperature, and reaction cycle) were optimized, and the specificity, sensitivity, and reproducibility were analyzed to establish a quadruplex real-time quantitative RT-PCR (RT-qPCR) assay for the detection of these four diarrheal viruses. The results demonstrated that the assay effectively tested PoAstV, PoSaV, PoNoV, and PoRVA without cross-reactivity with other swine viruses, and had limits of detection (LODs) of 138.001, 135.167, 140.732, and 132.199 (copies/reaction) for PoAstV, PoSaV, PoNoV, and PoRVA, respectively, exhibiting high specificity and sensitivity. Additionally, it displayed good reproducibility, with coefficients of variation (CVs) of 0.09–1.24% for intra-assay and 0.08–1.03% for inter-assay. The 1578 clinical fecal samples from 14 cities in Guangxi Province, China, were analyzed via the developed assay. The results indicated that the clinical samples from Guangxi Province exhibited the prevalence of PoAstV (35.93%, 567/1578), PoSaV (8.37%, 132/1578), PoNoV (2.98%, 47/1578), and PoRVA (14.32%, 226/1578), and had a notable incidence of mixed infections of 18.31% (289/1578). Simultaneously, the 1578 clinical samples were analyzed with the previously established assays, and the coincidence rates of these two approaches exceeded 99.43%. This study developed an efficient and precise diagnostic method for the detection and differentiation of PoAstV, PoSaV, PoNoV, and PoRVA, enabling the successful diagnosis of these four diseases.