Create own class of view in C++
hi,
I am working on project and for that I have chosen to use Qt and respect the MVC architecture which is well suited to my project. However, I need to create my own class for the manager, because the tables, lists, trees and other views already present.
I watched how to do it and I realized I had to create a class inheriting from QAbstractItemView. By against, what I do not know is how: Several methods are pure virtual so I must define them properly, but I do not know what they are supposed to do exactly ...
If someone could give me a little explanation or even a simple example, it would be very nice, thank you in advance.
Re: Create own class of view in C++
Quote:
I watched how to do it and I realized I had to create a class inheriting from QAbstractItemView. By against, what I do not know is how: Several methods are pure virtual so I must define them properly, but I do not know what they are supposed to do exactly ...
Look at the sources of existing classes.
Re: Create own class of view in C++
For the doc, I looked but I am a little lost, that's why I asked ...
As for example, where can we find the source code of existing classes? Qt is not opensource, you can not see, is it?
Re: Create own class of view in C++
Qt has a open source version, which is under LGPL license in its latest version (4.5).