Qt-interest Archive, February 2007
3D item view
Message 1 in thread
Hi,
I am working on a program where I want to use the model/view concept for both a QListView and a
QGLWidget (see [1] for a screen shot). I don't use the model yet in my 3D view, so now I'm trying to
make a custom QAbstractItemView implementation for my GL widget, but I'm not sure about how to do it
- the functions provided don't seem to be appropriate for the 3D environment (visualRect,
visualRegionForSelection, ..).
besides that, is there any documentation available about making custom views?
.. making the delegate shouldn't be the problem..
Cheers,
Manu
[1] http://www2.alumni.fh-vorarlberg.ac.at/~mhu1352/movingTL.png
--
[ signature omitted ]
Message 2 in thread
Well, as far as I see it now I have to implement a custom GLDelegate / GLStyleOption / GLView which
doesn't derive from the standard 2D classes. At least I can still use the Model classes ;-)
any help/suggestions appreciated..
manu.
Manuela Hutter wrote:
> Hi,
>
> I am working on a program where I want to use the model/view concept for
> both a QListView and a QGLWidget (see [1] for a screen shot). I don't
> use the model yet in my 3D view, so now I'm trying to make a custom
> QAbstractItemView implementation for my GL widget, but I'm not sure
> about how to do it - the functions provided don't seem to be appropriate
> for the 3D environment (visualRect, visualRegionForSelection, ..).
>
> besides that, is there any documentation available about making custom
> views?
> .. making the delegate shouldn't be the problem..
>
>
> Cheers,
> Manu
>
> [1] http://www2.alumni.fh-vorarlberg.ac.at/~mhu1352/movingTL.png
--
[ signature omitted ]
Message 3 in thread
Manuela Hutter wrote:
> Hi,
>
> I am working on a program where I want to use the model/view concept for
> both a QListView and a QGLWidget (see [1] for a screen shot). I don't
> use the model yet in my 3D view, so now I'm trying to make a custom
> QAbstractItemView implementation for my GL widget, but I'm not sure
> about how to do it - the functions provided don't seem to be appropriate
> for the 3D environment (visualRect, visualRegionForSelection, ..).
>
> besides that, is there any documentation available about making custom
> views?
> .. making the delegate shouldn't be the problem..
Here are some custom ModelViews, 2 of them are using OpenGl:
http://www.trolltechvideo.com/video/day1/room_b/b_1_1/video.html
http://www.trolltech.com/video/devday_demos.zip
Stefan
--
[ signature omitted ]
Message 4 in thread
awesome, thanks!
.. also haven't known about DatawidgetMappers, that might be useful as well..
cheers,
manu
Weinzierl Stefan wrote:
> Manuela Hutter wrote:
>> Hi,
>>
>> I am working on a program where I want to use the model/view concept for
>> both a QListView and a QGLWidget (see [1] for a screen shot). I don't
>> use the model yet in my 3D view, so now I'm trying to make a custom
>> QAbstractItemView implementation for my GL widget, but I'm not sure
>> about how to do it - the functions provided don't seem to be appropriate
>> for the 3D environment (visualRect, visualRegionForSelection, ..).
>>
>> besides that, is there any documentation available about making custom
>> views?
>> .. making the delegate shouldn't be the problem..
>
> Here are some custom ModelViews, 2 of them are using OpenGl:
>
> http://www.trolltechvideo.com/video/day1/room_b/b_1_1/video.html
> http://www.trolltech.com/video/devday_demos.zip
>
> Stefan
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]