Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Examples  

HOWTO build the tabular

Since major changes to Qt are to be expected with Version 3.0, the tabular has been prepared and constantly adopted to build with the beta-versions released previously.

In principle, there should be no more than two files to be adoped from the release version:

Changes to src/qdbttabular.h

Since the base-class for the tabular, QTableView is being obsoleted with Qt version 3, the default distributes requires modifiying the base-class of the internal QdbtTable-Class. This is done by commenting the line starting with #error and removing the comment before one of the following two lines, depending on the Qt-Version installed.

class QdbtTable : public
#error "Fill in the correct base name here!"
// QtTableView  // In case of Qt version 3 or greater, use this line
// QTableView   // In case of Qt less than version 3, use this line
// SORRY, this is not (yet?) possible via QTableViewSuper, since MOC does
// not behave nicely then...

Changes to qdbttabular.pro

The class QtTableView is shipped along with the Qt-3 distributions as a replacement for QTableView (which was previously shipped with Qt-1 and Qt-2). This class is not build into the Qt-Library by default. Since that, the implementation-module and header-files is being shipped with the tabular distribution and has to be activated or deactivated within the qdbttabular.pro file, to enable a successful build. Speaking plainly, the lines holding qttableview.h or qttableview.cpp have to be removed from the HEADERS or SOURCES-section within the project file.

qdbttabular.pro Project-File for Qt 3.x

[...]
                $$SRC_PREFIX/qdbtdynatip.h \
                $$SRC_PREFIX/qttableview.h
[...]
                $$SRC_PREFIX/qdbtcellselection.cpp \
                $$SRC_PREFIX/qttableview.cpp
[...]

qdbttabular.pro Project-File for Qt 2.x

[...]
                $$SRC_PREFIX/qdbtdynatip.h
#                $$SRC_PREFIX/qttableview.h
[...]
                $$SRC_PREFIX/qdbtcellselection.cpp
#                $$SRC_PREFIX/qttableview.cpp
[...]

Please note, that not only #'es have been placed within the file, by the backslashes have been removed within the previous lines as well.

Qt-Versions, which have been verified to work properly with the tabular

Successful builds have been performed on the following platforms:

2001 SEP 06
2001 SEP 05
2001 SEP 04

Generated on Mon Apr 22 12:22:06 2002 for QdbtTabular by doxygen1.2.15-20020421