The band gap of buckled graphene-like materials, such as silicene and germanene, depends on external perpendicular electric field. Then a specially design profile of electric field can produce trapping potential for electrons. We study theoretically the energy spectrum and optical transitions for such designed quantum dots (QDs) in graphene-like materials. The energy spectra depend on the size of the QD and applied electric field in the region of the QD. The number of the states in the QD increases with increasing the size of the dot and the energies of the states have almost linear dependence on the applied electric field with the slope which increases with increasing the dot size. The optical properties of the QDs are characterized by two types of absorption spectra: interband (optical transitions between the states of the valence and conduction bands) and intraband (transitions between the states of conduction/valence band). The interband absorption spectra have triple-peak structure with peak separation around 10 meV, while intraband absorption spectra, which depend on the number of electrons in the dot, have double-peak structure.