Quote:
Puedo sobrecargar los slots de una clase hija de un QWidget para que se llamen a travz de un connect?
|
Kaixo,
Para una traducción en castellano (quizás no muy buena) mira abajo.
(for a (possibly not very good) spanish translation see below)
I'm not sure if languages other than english are apreciated here, though
the rules don't say anything about this.
But yes, it seems you can overload the slots. According to
this document they can be virtual, hence they can be inherited. Also you can have multiple functions with the same name, but different type of argument (only one!). See the last part of
the same document.
Hope this helps.
En castellano:
(in spanish):
No estoy seguro si se sabe apreciar otros idiomas que ingles por aquí, aúnque las reglas no dicen nada sobre esto.
Pero, si. Parece que si se puede sobrecargar los slots. Según este documento los slots pueden ser "virtual", así que debe ser possible heredarlos. También es possible tener más que una función con el mismo nombre, pero con otro tipo de argumento (solo uno!). Refiérete a al mismo documento (mira al fondo).
Espero que te sirva esto.