The present invention concerns derivatives of heteroarylsulfonamides, notably as blockers of Kv potassium channels, and more particularly of channels Kv1.5, Kv4.3 or Kv11.1, their application in clinical therapy and their preparation methods. These compounds correspond to the following general formula (I): where R1 represents one or more substituents of the phenyl core X such as: hydrogen, halogen, trifluoromethyl, trifluoromethoxy, linear or branched C1-C4 alkyl, or linear or branched C1-C4 alkoxy, A represents oxygen or sulphur, B represents nitrogen when n=1 or 2 and D represents &mdashC(&boxHO)&mdash, or B represents CH when n=0 and D represents &mdashCH2O&mdash or when n=1 and D represents &mdashO&mdash, R2 represents a hydrogen, a methyl, a fluorine or chlorine atom or a methoxy, HetAr represents a pyridyl or quinolyl group, possibly substituted by a group such as a linear or branched C1-C4 alkyl, a linear or branched C1-C4 alkoxy, a halogen, or a trifluoromethyl, and to their pharmaceutically acceptable salts.