kgantt Library API Documentation

KGantt Module
gantt.png

Version 3.3.2

This example shows how to use the gantt module:
  #include "kgantt/KGantt.h"
  
  int main(int args, char* argv[])
  {
       ...

       KGantt* gantt = new KGantt(0, mainwindow);

       KGanttItem* toplevel = gantt->getToplevelItem();

       KGanttItem* t1 = new KGanttItem(toplevel, 
                                       "task 1, no subtasks", 
                                   QDateTime::currentDateTime().addDays(10),
                                       QDateTime::currentDateTime().addDays(20) );

       ...

  }

You just have to create an object of class KGantt and add several objects of class KGanttItem.

KDE Logo
This file is part of the documentation for kgantt Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 17 09:52:12 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003