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. Using gl functions in QQuickView's main thread

Using gl functions in QQuickView's main thread

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 822 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.
  • lilyofvalleyL Offline
    lilyofvalleyL Offline
    lilyofvalley
    wrote on last edited by
    #1

    Is there an intuitive way to enable opengl context in QQuickView's main thread?
    I just need to initialize some opengl resources (generate 2D textures for later rendering).

    1 Reply Last reply
    0
    • lilyofvalleyL Offline
      lilyofvalleyL Offline
      lilyofvalley
      wrote on last edited by
      #2

      In QQuickView, if scene graph has not been initialized, the currentContext does not exist. Is it initialized in some default function or it can be initialized manually ?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pvt.peter
        wrote on last edited by
        #3

        Hi,

        Have you pass a the Qt::AA_UseDesktopOpenGL attribute to your QApplication object at the start of the program?

        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