Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 01-05-2009
Member
 
Join Date: Apr 2009
Posts: 49
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.
Reply With Quote
  #2  
Old 01-05-2009
Member
 
Join Date: May 2008
Posts: 2,008
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.
Reply With Quote
  #3  
Old 01-05-2009
Member
 
Join Date: Apr 2009
Posts: 49
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?
Reply With Quote
  #4  
Old 01-05-2009
Member
 
Join Date: May 2008
Posts: 2,383
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).
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Create own class of view in C++"
Thread Thread Starter Forum Replies Last Post
How to create a class in java script Lawford Software Development 5 11-02-2010 02:16 AM
How to create mouse event using Robot class in java? Luis-Fernando Software Development 4 03-02-2010 08:03 PM
How to create an inner class in java? MABON Software Development 4 01-02-2010 04:40 PM
How many ways to create an object for class Shanbaag Software Development 3 25-04-2009 10:08 AM
Create a class in C # (CSharp) Aadi Guides & Tutorials 2 10-12-2008 12:08 AM


All times are GMT +5.5. The time now is 09:31 AM.