Results 1 to 2 of 2

Thread: fitInView funtion in opengl

  1. #1
    Join Date
    Aug 2011
    Location
    bangalore
    Posts
    14
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Thumbs up fitInView funtion in opengl

    hi,some one please tell me i was created cube using opengl QT.the problem is when i given small values of x&y coordinats it is creating properly but for bigger values the cube is adding but i am un able to see those item it is out side of my viewin area.there is a function called fitInView in QGraphicsView is there any similar function for QGLWidget.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: fitInView funtion in opengl

    QGLWidget has no knowledge of what you are adding to the scene. You need to reposition your camera manually or use an object oriented approach to OpenGL such as Qt3D that will do some of the things for you.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 0
    Last Post: 15th December 2011, 05:54
  2. QGraphicsView::fitInView()
    By stella1016 in forum Qt Programming
    Replies: 3
    Last Post: 30th March 2011, 18:49
  3. Replies: 7
    Last Post: 8th August 2010, 09:05
  4. How to don't fitInView a QGraphicsItem
    By jano_alex_es in forum Newbie
    Replies: 2
    Last Post: 26th October 2009, 14:52

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
  •  
Qt is a trademark of The Qt Company.