Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QGLWidget setGeometry ?
QtWS25 Last Chance

QGLWidget setGeometry ?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 4.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cosmin2520
    wrote on last edited by
    #1

    Hi all,

    I've run into a bit of a problem here... I'm trying to learn how to implement a GL Widget into an application and I'm using as a starting point the hellogl_es example.

    I've been trying for a while to set the size of the GL widget without any success. For example, I would like to modify the hellogl_es widget to be 200x200 and to set its position to 30,30 inside the demo window. glwidget->setGeometry() doesn't exist and I can't find any other way to modify it's size.

    If someone has any idea about how this could be done, please let me know.

    Thank you in advance,
    Paul

    1 Reply Last reply
    0
    • B Offline
      B Offline
      baysmith
      wrote on last edited by
      #2

      QGLWidget inherits from QWidget and QWidget has a setGeometry() method; therefore, QGLWidget does have a setGeometry() method.

      Nokia Certified Qt Specialist.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cosmin2520
        wrote on last edited by
        #3

        Thanks, I solved it... I wasn't setting the path to QGLWidget correctly.

        Regards,
        Paul

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved