We express the rational homotopy type of the mapping spaces
Maph(Dm,DnQ) of the little discs operads in terms of graph complexes. Using known facts about the graph homology this allows us to compute the rational homotopy groups in low degrees, and construct infinite series of non-trivial homotopy classes in higher degrees. Furthermore we show that for
n−m>2, the spaces
Maph(Dm,DnQ) and
Maph(Dm,Dn) are simply connected and rationally equivalent. As application we determine the rational homotopy type of the deloopings of spaces of long embeddings. Some of the results hold also for mapping spaces
Map≤kh(Dm,DnQ),
Map≤kh(Dm,Dn),
n−m≥2, of the truncated little discs operads, which allows one to determine rationally the delooping of the Goodwillie-Weiss tower for the spaces of long embeddings.