Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. How to initialize QQuickRenderControl?
Forum Updated to NodeBB v4.3 + New Features

How to initialize QQuickRenderControl?

Scheduled Pinned Locked Moved Solved Qt 6
2 Posts 1 Posters 435 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.
  • C Offline
    C Offline
    coinkollector
    wrote on last edited by
    #1

    I'm currently attempting to render a QQuickWindow into a VkImage. I'm setting the graphics API, Vulkan instance, and graphics device for the QQuickWindow before calling the initialize function on my render control, but it seems like it always fails to initialize. I feel like the function signature is missing some things, because in Qt 5.15 the initialize function takes a QOpenGLContext pointer but has no arguments in Qt 6. Is there something else that I'm missing that would cause it to fail to initialize?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      coinkollector
      wrote on last edited by
      #2

      Ah, I seem to have figured it out. You have to construct the QQuickWindow with the QQuickRenderControl as the parent. Wish that was a little more clear in the QQuickRenderControl docs.

      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