TechArena Community

TechArena Community (http://forums.techarena.in/)
-   Software Development (http://forums.techarena.in/software-development/)
-   -   Create own class of view in C++ (http://forums.techarena.in/software-development/1171848.htm)

tombman 01-05-2009 02:22 PM

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.

Katty 01-05-2009 02:25 PM

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.

tombman 01-05-2009 02:27 PM

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?

opaper 01-05-2009 02:29 PM

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).


All times are GMT +5.5. The time now is 07:27 AM.