Results 1 to 4 of 4

Thread: Create own class of view in C++

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: Create own class of view in C++

    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.

  3. #3
    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?

  4. #4
    Join Date
    May 2008
    Posts
    2,389

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

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,294,649.22724 seconds with 17 queries