Results 1 to 3 of 3

Thread: multiple Opengl Widgets:

  1. #1
    Join Date
    Nov 2008
    Posts
    39
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default multiple Opengl Widgets:

    Hi,

    I am trying to display 3 qglwidgets in a single widget arranged, I have written a program...

    However, as I am a newbie to the Qtopengl programming I am unable to find the exact kind of error that I am doing in the program....

    Any kind of assistance will help me out....

    with a hint in the code....

    here is the program that I have done it's in the below weblink: please check out and let me know:

    http://www.qtcentre.org/forum/f-newb...ngl-18733.html


    Please help me out with this.....

    Thank's
    Mohan

  2. #2
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: multiple Opengl Widgets:

    You have used a paintGL inside each glwidget and that looks ok, but try to add a paintEvent to your main window class and put the code for displaying the qlwidget inside it instead of using the main window constructor. Also dont forget the opengl makecurrent issue, before each glwidget.

  3. The following user says thank you to john_god for this useful post:

    manmohan (2nd March 2009)

  4. #3
    Join Date
    Nov 2008
    Posts
    39
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: multiple Opengl Widgets:

    Thanks ...

    I will try it and update it here ....

    Thanks for the reply...

Similar Threads

  1. Qt3 - Multiple transparent widgets
    By bythesea in forum Qt Programming
    Replies: 4
    Last Post: 11th September 2009, 11:24
  2. Replies: 2
    Last Post: 17th March 2008, 23:49
  3. QTableWidget : insert multiple widgets in one cell..
    By halberdier83 in forum Qt Programming
    Replies: 3
    Last Post: 26th November 2007, 16:15
  4. How to paint across/over multiple widgets?
    By richy in forum Qt Programming
    Replies: 3
    Last Post: 31st August 2006, 10:57
  5. Replies: 11
    Last Post: 7th July 2006, 13:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.