| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
hi how can i use Glut in Qt windowing system? please pay attention that i want to use Glut functions ,not Glwidget. so i can use Glut common functions but for example instead of using glCreatWindow i call Qt widgets as a container. up to now i use MFC classes such as WinMain() to handle Glut programs. now i want to swap WinMain() with one of the widgets from Qt. / is it possible?/ thanks for your helps -- [ signature omitted ]
hi has anyone seen my previous post? i think that it not delivered, so i resend it, now. how can i use Glut in Qt windowing system? please pay attention that i want to use Glut functions ,not Glwidget, but for example instead of using glCreatWindow i call Qt widgets as a container. up to now i use MFC classes such as WinMain() to handle Glut programs. now i want to swap WinMain() with one of the widgets from Qt. / is it possible?/ thanks for your helps -- [ signature omitted ]
Your previous message came through. Note, if your posting via the mail list, you should of seen the email posted. If you see it, so did we. If your posting via the newsgroup, it may take a bit longer, but you should see it come through. As to your post... I think GLUT and Qt GL code will conflict, as they both purport to do the same thing, wrap OpenGL code in a platform independent manner. That said, if you go an look at the source code to Qt GL wrapper, you can see its not overly difficult to get the native window handle and use it to draw onto using non QT code... The active X code works that way.. People have also embedded TK widgets inside QT code as well. It sound like you got a nice project ahead of you. Scott > -----Original Message----- > From: aliasghar.toraby@xxxxxxxxx [mailto:aliasghar.toraby@xxxxxxxxx] > Sent: Monday, May 05, 2008 10:10 AM > To: Qt Interest List > Subject: how can i use Glut in Qt windowing system? > > hi > has anyone seen my previous post? i think that it not delivered, so i > resend it, now. > how can i use Glut in Qt windowing system? > please pay attention that i want to use Glut functions ,not Glwidget, > but for example instead of using glCreatWindow i call Qt widgets as a > container. > up to now i use MFC classes such as WinMain() to handle Glut programs. > now i want to swap WinMain() with one of the widgets from Qt. / is it > possible?/ > thanks for your helps > > -- > 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 ]
for example i want to have a GLUT rendering device as a child of multiple document interface. is it possible? i insist to use Qt but i can't drop Glut and work with new tools(i mean QGLWidget) -- [ signature omitted ]
Yes you can do it... But to my knowledge there is nothing out there now doing it... You will have to create the framework for this interface yourself. Scott > -----Original Message----- > From: aliasghar.toraby@xxxxxxxxx [mailto:aliasghar.toraby@xxxxxxxxx] > Sent: Monday, May 05, 2008 11:22 AM > To: Qt Interest List > Subject: Re: how can i use Glut in Qt windowing system? > > > for example i want to have a GLUT rendering device as a child of > multiple document interface. is it possible? i insist to use Qt but i > can't drop Glut and work with new tools(i mean QGLWidget) > > -- > 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 ]
Scott Aron Bloom wrote: > Yes you can do it... > > But to my knowledge there is nothing out there now doing it... You will > have to create the framework for this interface yourself. Well, at least someone else has had to pass that way before: http://www.groupsrv.com/computers/about155038.html :-) David -- [ signature omitted ]
On Monday 05 May 2008 19:10:17 aliasghar.toraby@xxxxxxxxx wrote: > has anyone seen my previous post? Yes, it was received. -- [ signature omitted ]
Attachment:
signature.asc
Description: This is a digitally signed message part.
aliasghar.toraby@xxxxxxxxx wrote: > has anyone seen my previous post? i think that it not delivered, so i > resend it, now. > how can i use Glut in Qt windowing system? > please pay attention that i want to use Glut functions ,not Glwidget, > but for example instead of using glCreatWindow i call Qt widgets as a > container. So, do you want to embed a "native" GLUT window in a Qt user interface on Windows? > up to now i use MFC classes such as WinMain() to handle Glut programs. > now i want to swap WinMain() with one of the widgets from Qt. / is it > possible?/ It may be possible to do something similar to the approach you could try if you were using X; i.e. use QX11EmbedContainer as a container for the GLUT window. Someone more familiar with the mechanisms for this on Windows will have to advise you. David -- [ signature omitted ]