Results 1 to 2 of 2

Thread: How to add QSlider to QGLWidget

  1. #1
    Join Date
    Apr 2011
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default How to add QSlider to QGLWidget

    Hello everybody,

    I have inherited from QGLWidget and within i render simple Geometry and do some user interaction with the mouse.

    Now i would like to add 2 QSlider which shalll hover over my scene for scaling purposes.


    Unfortunately I do not have any Idea where to start with.

    Any hints towards a solution are highly appreciated.

    Regards

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to add QSlider to QGLWidget

    I Suggest you to compose a master Widget with three children:
    • QGLWidget
    • HorizontalSlider
    • VerticalSlider


    The result is
    glwidget.png
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. QSlider
    By mickey in forum Qt Programming
    Replies: 5
    Last Post: 27th November 2009, 17:21
  2. Help Qslider
    By superteny in forum Qt Programming
    Replies: 5
    Last Post: 9th July 2009, 10:03
  3. QSlider
    By merry in forum Qt Programming
    Replies: 22
    Last Post: 27th June 2007, 07:42
  4. QSlider problem
    By Ashish in forum Qt Programming
    Replies: 5
    Last Post: 12th December 2006, 01:08
  5. QSlider
    By ToddAtWSU in forum Qt Programming
    Replies: 3
    Last Post: 10th May 2006, 16:41

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.