kgantt

KGantt Module

The kgantt module contains several classes (KGanttItem, KGantt) for drawing and editing gantt-diagramms.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",
TQDateTime::currentDateTime().addDays(10),
TQDateTime::currentDateTime().addDays(20) );
...
}
KGanttItem.
Definition: KGanttItem.h:56
Gantt Widget.
Definition: KGantt.h:92
KGanttItem * getToplevelItem()
Get toplevel item.
Definition: KGantt.h:136

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