In a Dirac material we investigated the confining properties of massive and massless particles subjected to a potential well generated by a purely electrical potential, that is, an electric quantum dot. To achieve this in the most exhaustive way, we have worked on the aforementioned problem for charged particles with and without mass, limited to moving on a plane and whose dynamics are governed by the Dirac equation. The bound states are studied first and then the resonances, the latter by means of the Wigner time delay of the dispersion states as well as through the complex eigenvalues of the outgoing states, in order to obtain a complete picture of the confinement. One of the main results obtained and described in detail is that electric quantum dots for massless charges seem to act as sinks (or sources in the opposite direction) of resonances, while for massive particles the resonances and bound states are conserved with varying position depending on the depth of the well.