I want to implement a reservation plan using Qt/4.1 and the document/view model. Basically, I need a table (row = room, column = day) where the reservations are inserted. These reservations can be longer than one day, i.e. they can span over more than one cell. A context menu and drag&drop shall be available for these reservations.
Can I use QAbstractTableModel for the model and QTableWidget/QTableWidgetItem for the view? How can I realise the span? I have found QAbstractItemModel.span() but it doesn't work with Qt/4.1 yet.
By the way, some time ago I began to implement this in Qt3 using QTable (without document/view model). Now I can't find QTable anymore, there is only Q3Table. Is QTable obsolete? If this is the case, it is certainly possible to span over multiple cells with QTableWidget.
I hope you can give me some hints. Thanks!
Bookmarks