If your intention is that you are going to show this custom widget in a view in place of the model index for which you return the widget then it will not work. One thing is that your syntax is not correct (you'd have to return a pointer to the widget which would result in an instant memory leak) and second is that the views will simply not understand what you want from them. What is the final result that you want to achieve?





Reply With Quote
Design pattern is something abstract, it's an idea - you can have the same design pattern implemented in different programming languages.

Bookmarks