Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Question on Qt example "boxes"
Qt 6.12 LTS is out! See what's new in the release blog

Question on Qt example "boxes"

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 493 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.
  • J Offline
    J Offline
    jiangcaiyang
    wrote on last edited by
    #1

    I am trying integrating graphics - view framework with OpenGL.
    Qt's example called "boxes" ( which located in $${QT_DIR}/example/widgets/graphicsview/boxes) is so good and include many functionalities which are useful in my project. After carefully reading source code, I found that this example(in main.cpp) uses a QGLWidget to fill QGraphicsView::setViewport() function to offer OpenGL support, if not so, any code based on OpenGL will take no effect. However in my opinion this dummy QGLWidget just offers QOpenGLContext, is there a more elegant way to solve this problem?

    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
    • Unsolved