I don't think my post was clear enough, so let me start over. Please ignore my previous post.
I am attempting to show you how to derive the general expression, for which you can insert you special case. Define a vector field [itex]\mathbf{P(r) = c \times Q(r) }[/itex]. Now write down the Divergence theorem
$$ \int \int \mathbf{P(r^\prime) \cdot \hat{n}^\prime} dS^\prime = \int \int \int \mathbf{\nabla^\prime \cdot P(r^\prime) dV^\prime } $$
You now need to simplify this. You should use the fact that [itex]\mathbf{c}[/itex] is a constant so that [itex]\mathbf{\nabla \times c=0}[/itex]
in order to simplify the expression. Then use standard vector algebra to arrange to get the [itex]\mathbf{c}[/itex] outside of both integrals. In the end you should find,
[tex]
\mathbf{c \cdot} \left[ \int \int \mathbf{Q(r^\prime) \times \hat{n}^\prime} dS^\prime + \int \int \int \mathbf{\nabla^\prime \times Q(r^\prime) }dV^\prime \right] = 0.[/tex]
Since [itex]\mathbf{c}[/itex] is arbitrary we must have,
[tex]
\int \int \mathbf{\hat{n}^\prime \times Q(r^\prime)} dS^\prime = \int \int \int \mathbf{\nabla^\prime \times Q(r^\prime) }dV^\prime.[/tex]
Does that make sense?
Jason