Results 1 to 4 of 4

Thread: OpenGL redraw not smooth

  1. #1
    Join Date
    Jun 2012
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default OpenGL redraw not smooth

    Hi,

    I am new to QT.I am facing redraw problem while the PaintGl of my QGLWidget has been invoked.
    I could see that the redraw is not smooth.
    Kindly request you to help me to solve the same.

    Note: Before doing any operation i first clear the bufferbit and depth buffer by using glClear in paintGl.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,348
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: OpenGL redraw not smooth

    Well, it is obvious from all the source code you posted what you are doing wrong.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Jun 2012
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: OpenGL redraw not smooth

    Hi,

    Sorry i could not get what you meant?
    Could you please elaborate.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: OpenGL redraw not smooth

    It is an example of sarcasm

    Your post reads like this:
    My OpenGL redraw code is not smooth. Help me fix it.
    It contains absolutely no information or code that might allows us to help. There are least 1 gajillion ways to write code for paintGL() and most of them don't work well for one of many, many reasons. Which of these non-working options you have is a mystery to us.

Similar Threads

  1. smooth panning and zooming an image, to use OpenGL or not?
    By scarleton in forum Qt Programming
    Replies: 0
    Last Post: 27th August 2010, 23:25
  2. How can I redraw the QTreeWidgetITem?
    By cspp in forum Qt Programming
    Replies: 13
    Last Post: 14th May 2009, 12:50
  3. QSystemTrayIcon Redraw Problems
    By December in forum Qt Programming
    Replies: 0
    Last Post: 7th December 2008, 07:12
  4. QListView force redraw.
    By Dave Stewart in forum Qt Programming
    Replies: 4
    Last Post: 19th December 2007, 15:41
  5. force redraw of every graphicsitem
    By Morea in forum Qt Programming
    Replies: 5
    Last Post: 18th January 2007, 19:18

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.