Panicle length (PL) is an important trait closely related to rice yield. More than 200 quantitative trait loci (QTL) for PL have been identified, but only a few can be used for breeding. Dongxiang wild rice contains many excellent genes, and mining favorable PL-related QTL from DXWR is helpful for rice variety improvement. Here, we report a QTL analysis for PL using a recombinant inbred line population consisting of 143 individuals derived from a cross between Dongxiang wild rice and indica cultivar Guangluai 4. A total of four QTL (qPL1-37, qPL4-26, qPL7-25, and qPL8-4) for PL were identified and located on chromosomes 1, 4, 7, and 8. Among them, qPL7-25 showed the largest F-value of 32.32 and 16.80, and the QTL explained 18.66% and 13.06% of the phenotypic variation of Dongxiang wild rice in Hangzhou and Hainan, respectively. QTL mapping was performed using a population of 1800 individuals derived from the crossing of NIL-qPL7-25 and GLA4. qPL7-25 was located between two InDel markers, InDel-24591 and InDel-24710, in a 119 kb region containing 14 predicted genes. Using Sanger sequencing and qRT-PCR analysis, we propose that LOC_Os07g41200 is probably a new allele of the well-known GL7 gene, which affects grain length and appearance quality in rice. These results provide new insights into the use of molecular marker-assisted selection for breeding high-yielding and high-quality rice varieties.