Habitats are spatially and temporally variable, and organisms must be able to track these changes. One potential mechanism for this is dispersal by flight. Therefore, we would expect flying animals to show adaptations in wing shape related to habitat variation. In this work, we explored variation in wing shape in relation to preferred water body (flowing water or standing water with tolerance for temporary conditions) and landscape (forested to open) using 32 species of dragonflies of the genus Trithemis (80% of the known species). We included a potential source of variation linked to sexual selection: the extent of wing coloration on hindwings. We used geometric morphometric methods for studying wing shape. We also explored the phenotypic correlation of wing shape between the sexes. We found that wing shape showed a phylogenetic structure and therefore also ran phylogenetic independent contrasts. After correcting for the phylogenetic effects, we found (i) no significant effect of water body on wing shape; (ii) male forewings and female hindwings differed with regard to landscape, being progressively broader from forested to open habitats; (iii) hindwings showed a wider base in wings with more coloration, especially in males; and (iv) evidence for phenotypic correlation of wing shape between the sexes across species. Hence, our results suggest that natural and sexual selection are acting partially independently on fore- and hindwings and with differences between the sexes, despite evidence for phenotypic correlation of wing shape between males and females.