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. OpenGL Wireframe + Qt GUI?
Forum Updated to NodeBB v4.3 + New Features

OpenGL Wireframe + Qt GUI?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 190 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.
  • J Offline
    J Offline
    Joe Coder
    wrote on 5 Aug 2022, 15:49 last edited by
    #1

    The project:
    Create a Qt GUI with an OpenGL context that allows plotting triangulated geometries that are read in from file and then plot colored shapes onto the geometry based on data

    I worked from the example included in Qt cube: https://doc.qt.io/qt-6/qtopengl-cube-example.html

    So far, I have been able to get the 3d geometry to plot from file, and I have been able to draw Qt GUI elements on top of the OpenGL window that is drawn by the example, but I am stuck on two problems:

    1. How to make the GUI elements in their own area above the OpenGL window (but still in the same application window in Windows)?
    2. How to switch from OpenGL rendering texture (cube.png included in the example) to rendering a wireframe of whatever geometry is loaded? (Commenting out the texture lines just results in nothing visible in the window, ie a black window)

    I can provide my modified code, but the changes I am asking about should be able to be made on the base example code and just transposed over to my working code.

    Any help or suggestions on other ways to accomplish this would be greatly appreciated!

    cube_sphere.png

    1 Reply Last reply
    0

    1/1

    5 Aug 2022, 15:49

    • Login

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