Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. DrawBackground preserving items drawn on foreground
Forum Updated to NodeBB v4.3 + New Features

DrawBackground preserving items drawn on foreground

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.3k 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
    sweety
    wrote on 4 Mar 2012, 04:51 last edited by
    #1

    Hey i m developing an application in which i have a class "abcd" inheriting QGraphicScene.I m overriding drawForeGround to display vector image and drawBackground to display raster image..
    I m able to draw on foreground keeping background image(i.e vector over raster works fine) but after drawing some foreground items(vector layers) if i try to drawbackground items drawn on foreground are not visible.
    I know drawBackground method should be used before drawing on background or item layer but i need this kind of functionality for my app.Background should be drawn but items already drawn on foreground should remail visible.
    Please suggest me some way to achieve this!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on 5 Mar 2012, 08:03 last edited by
      #2

      Sorry, it just doesn't work this way. First the background is drawn, then the foreground is drawn over it.

      1 Reply Last reply
      0

      1/2

      4 Mar 2012, 04:51

      • Login

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