A triangle $ABC$ with orthocenter $H$ is given. $P$ is a variable point on line $BC$. The perpendicular to $BC$ through $P$ meets $BH$, $CH$ at $X$, $Y$ respectively. The line through $H$ parallel to $BC$ meets $AP$ at $Q$. Lines $QX$ and $QY$ meet $BC$ at $U$, $V$ respectively. Find the shape of the locus of the incenters of the triangles $QUV$.
1. **Given**: A triangle \(ABC\) with orthocenter \(H\). \(P\) is a variable point on line \(BC\). The perpendicular to \(BC\) through \(P\) meets \(BH\) and \(CH\) at \(X\) and \(Y\) respectively. The line through \(H\) parallel to \(BC\) meets \(AP\) at \(Q\). Lines \(QX\) and \(QY\) meet \(BC\) at \(U\) and \(V\) respectively.

2. **Objective**: Find the shape of the locus of the incenters of the triangles \(QUV\).

3. **Step-by-Step Solution**:
   - **Step 1**: Establish the similarity between triangles \(ABC\) and \(HYX\).
     \[
     \angle XHY = 90^\circ - \angle HCA = \angle BAC
     \]
     \[
     \angle HYX = \angle PYC = \angle ABC
     \]
     Therefore, \(\triangle ABC \sim \triangle HYX\).

   - **Step 2**: Determine the relationship between \(HQ\) and \(DP\).
     Let \(HQ\) intersect \(XY\) at \(E\) and \(AH\) intersect \(BC\) at \(D\). Since \(HQ \parallel DP\), we have:
     \[
     \frac{HQ}{HE} = \frac{HQ}{DP} = \frac{AH}{AD}
     \]
     This implies that \(Q\) is the orthocenter of \(\triangle HXY\).

   - **Step 3**: Analyze the parallelism and similarity.
     Since \(QV \perp BH\), it follows that \(QV \parallel AC\). Similarly, \(QU \parallel AB\). Therefore, \(\triangle ABC \sim \triangle QUV\) with a similarity ratio \(k = \frac{AD}{HD}\).

   - **Step 4**: Calculate the inradius of \(\triangle QUV\).
     The inradius \(r_{\triangle QUV}\) is given by:
     \[
     r_{\triangle QUV} = \frac{HD}{AD} r_{\triangle ABC}
     \]
     where \(r_{\triangle ABC}\) is the inradius of \(\triangle ABC\).

   - **Step 5**: Determine the locus of the incenters.
     The locus of the incenters of triangles \(QUV\) is a line parallel to \(BC\) and at a distance of \(\frac{HD}{AD} r_{\triangle ABC}\) from \(BC\).

The final answer is the locus of the incenters of the triangles \( \boxed{ QUV } \) is a line parallel to \(BC\) and at a distance of \(\frac{HD}{AD} r_{\triangle ABC}\) from \(BC\).