The self-consistent quasiparticle random-phase approximation (QRPA) approach is formulated in the canonical single-nucleon basis of the relativistic Hatree-Fock-Bogoliubov (RHFB) theory.This approach is applied to study the isobaric analog states (IAS) and Gamov-Teller resonances (GTR) by taking Sn isotopes as examples. It is found that self-consistent treatment of the particleparticle residual interaction is essential to concentrate the IAS in a single peak for open-shell nuclei and the Coulomb exchange term is very important to predict the IAS energies. For the GTR, the isovector pairing can increase the calculated GTR energy, while the isoscalar pairing has an important influence on the low-lying tail of the GT transition. Furthermore, the QRPA approach is employed to predict nuclear β-decay half-lives. With an isospin-dependent pairing interaction in the isoscalar channel, the RHFB+QRPA approach almost completely reproduces the experimental β-decay half-lives for nuclei up to the Sn isotopes with half-lives smaller than one second. Large discrepancies are found for the Ni, Zn, and Ge isotopes with neutron number smaller than 50, as well as the Sn isotopes with neutron number smaller than 82. The potential reasons for these discrepancies are discussed in detail.