Hi !
I am new and I want to ask if wx will have the Signal/Slot in next version and if not Why ???
I think it's one of the things that make users go to QT !!
I don't like QT and I want wx to be more and more powerful !!!
Thanks
Signal/Slot
Signal/Slot
We are born to learn !!!
sigslot mechanisms are good, but they still lack traditional ways of event handling, where the event, if not handled by the child moves up the chain to the parent. Also when you derive a class and do not handle certain events, the base class might still handle them.
With sigslot there is no real way of determining which subscriber gets the first event and what needs to happen if it's not handled.
Ofcourse there are ways around it or Qt does not even use it, but wxWidgets is too extensive to redesign the whole event mechanism.
The good part is that the sigslot found at SF (by Sarah) can be used next to wxWidgets without problems. Simply derive your class from both a wxWidgets derivative, and sigslot template.
Perform a search on this forum to find more info about it. use the keyword sigslot..
Regards,
- Jorgen
With sigslot there is no real way of determining which subscriber gets the first event and what needs to happen if it's not handled.
Ofcourse there are ways around it or Qt does not even use it, but wxWidgets is too extensive to redesign the whole event mechanism.
The good part is that the sigslot found at SF (by Sarah) can be used next to wxWidgets without problems. Simply derive your class from both a wxWidgets derivative, and sigslot template.
Perform a search on this forum to find more info about it. use the keyword sigslot..
Regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
-
- Earned a small fee
- Posts: 23
- Joined: Tue Jul 11, 2006 1:36 pm
- Location: Poland, Warsaw
- Contact:
I would say that this is a main difference between wx and qt. I'd prefer events as they are more intuitive for me. Someone else may prefer signal-slots.
I think it's good we have two such libraries (I know them both). And it shouldn't be wx mission to incorporate every GUI programing paradigm existing as it would make it messy, overloaded, confusing.
If you really want to mix wxWidgets with sig-slot approach take a look at Boost library (http://www.boost.org). It cointains portable, C++ implementations of sig-slots.[/url]
I think it's good we have two such libraries (I know them both). And it shouldn't be wx mission to incorporate every GUI programing paradigm existing as it would make it messy, overloaded, confusing.
If you really want to mix wxWidgets with sig-slot approach take a look at Boost library (http://www.boost.org). It cointains portable, C++ implementations of sig-slots.[/url]
Agreed, I use sigslot mechanisms for my GUI to let my project view for example be signaled that a project is added to the data structure. It then can add the project to the list. Same goes for updating and deleting. It is very elegant as the GUI is not bloated with update code everywhere after every action.
- Jorgen
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb