LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2004, 10:10 PM   #1
tranfuga
LQ Newbie
 
Registered: Jun 2004
Location: Urdinarrain
Distribution: Slackware - Debian
Posts: 12

Rep: Reputation: 0
Angry problemas de clases en kdevelop


Tengo una consulta...

Puedo sobrecargar los slots de una clase hija de un QWidget para que se llamen a travz de un connect?

Agradeceri mucho las respuestas...
 
Old 06-15-2004, 11:40 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Re: problemas de clases en kdevelop

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.

Last edited by Hko; 06-15-2004 at 11:52 AM.
 
Old 06-16-2004, 10:55 PM   #3
tranfuga
LQ Newbie
 
Registered: Jun 2004
Location: Urdinarrain
Distribution: Slackware - Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Other question...
This in about the KDE libaries
Wich class i have to use to can reconcite the type of file in a program?
KFileItem or another one?

Sorry about the Spanish i'ts because y dont have a good english speeking..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Laptop Monitor Problemas FC3 Robert Guerrero Linux - Hardware 0 03-15-2005 08:43 PM
2 nics, 2 networks, 2 problemas kangaegoto Linux - Networking 1 12-19-2004 06:58 AM
Problemas con la instalacion rehhat 9.0 fuentes Red Hat 2 09-05-2004 04:13 PM
Problemas with kde and xfree RazvanZ Linux - Software 2 07-14-2004 07:27 AM
Problemas with zr36067 and xawtv looper Linux - Hardware 2 05-17-2003 06:42 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration