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. Set background image to qt3d scene

Set background image to qt3d scene

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.6k 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.
  • S Offline
    S Offline
    sunil.nair
    wrote on last edited by
    #1

    Hi,

    In qt3d, I can change the background from pure black to any color of my choice in the paintGL function using:
    painter->setClearColor(QColor(0,255,255,105));

    In the same function, is it possible to set a background image to the viewport?

    Thanks

    1 Reply Last reply
    0
    • H Offline
      H Offline
      HappyFeet
      wrote on last edited by
      #2

      I know this question is rather old, but I stumbled upon it trying to get a background image working, that's why I'm posting this here for anyone else who needs such a feature.

      I implemented a background image framegraph at this repository: https://github.com/Sonnentierchen/Qt3D-BackgroundImage.

      1 Reply Last reply
      1

      • Login

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