Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Using gl functions in QQuickView's main thread

    General and Desktop
    2
    3
    452
    Loading More Posts
    • 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.
    • lilyofvalley
      lilyofvalley last edited by

      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 Reply Quote 0
      • lilyofvalley
        lilyofvalley last edited by

        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 Reply Quote 0
        • P
          pvt.peter last edited by

          Hi,

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post