Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGLWidget tutorial, problem with frame
Forum Updated to NodeBB v4.3 + New Features

QGLWidget tutorial, problem with frame

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 848 Views 1 Watching
  • 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
    conflictEnsues
    wrote on last edited by
    #1

    Hello; I am a hobbyist programmer and have been attempting to create an OpenGL program which uses QT for menus and interface. In the process I discovered how incredibly awesome QT is! ~but I am having trouble getting the end goal ready to go.

    I am following "this tutorial":https://www.youtube.com/watch?v=1nzHSkY4K18#t=277&hd=1 and everything was working up until I tried to promote the frame to the GLWidget class created; which inherits the QGLWidget class. The following two lines from the ui header file
    @ GLframe->setFrameShape(QFrame::StyledPanel);
    GLframe->setFrameShadow(QFrame::Raised);@

    both give an error, "is not a member of 'GLWidget.'" I made sure that OpenGL was included in the pro file and that the header files were also included in the pro file [which are the two common fixes I found online] and I also ran one of the sample OpenGL programs --with the same kit I was using-- that come with qt to make sure OpenGL was fine. I did see that
    @ setFrameShape@

    and
    @ setFrameShadow@

    are indeed not members of QGLWidget and think perhaps my tutorial is outdated? It is from 2011. If that is the case, I would love to be directed to new content; If instead I am just making an egregious mistake your help is greatly appreciated.

    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