Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, September 1998
Single selection QListView...


Message 1 in thread


I would like to create something somewhat like datasheet views in (ugh) MS
Access.  I was trying to use QTableView, but I'd like headers and things,
which makes me think I'd like to use QListView.  How would you make it
possible to select single items?  And how would you put a widget over a
particular cell (ie for input, you could use a checkbox, or combobox or
what have you).  I was trying something like this with QTableView (but I
don't yet have the headers), and I have the widget displaying ok, although
it sits on top of the scroll bars (ie not clipped to the right viewport).
Would making something like this be fairly simple?  Or should I prepare
for a pretty decent amount of work, subclassing QListView.  Or is
QListView not really right for this (I'd actually also kind of like a
general grid-with-headers-and-a-widget-or-three) and I should subclass
QScrollView or QTableView?  I'm just wondering if I'm barking up the wrong
tree here....

Also, on a rather unrelated subject...

If meta objects ever become an actual part of C++, does this mean moc will
no longer be necessary?

Thanks for any response!

Chris Sheppard

Windows 95 -- When your computer has too much power