Qt logo

Tetrix


This is the Qt implementation of the well known game Tetris.
Main:
/****************************************************************************
** $Id: tetrix.cpp,v 1.2.2.1 1999/07/20 01:59:33 warwick Exp $
**
** Copyright (C) 1992-1999 Troll Tech AS.  All rights reserved.
**
** This file is part of an example program for Qt.  This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/

#include "qtetrix.h"
#include "qdragapp.h"
#include "qfont.h"

int main( int argc, char **argv )
{
    QApplication::setColorSpec( QApplication::CustomColor );
    QDragApplication a(argc,argv);
    QTetrix *tetrix = new QTetrix;
    a.setMainWidget(tetrix);
    tetrix->show();
    return a.exec();
}


Copyright © 1999 Troll TechTrademarks
Qt version 2.0.2