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. Qt QGraphicsScene::drawItems substitute ?
Forum Updated to NodeBB v4.3 + New Features

Qt QGraphicsScene::drawItems substitute ?

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

    For QGraphicsScene::drawItems the reference says : Reimplement this function to provide custom painting of all items for the scene; gaining complete control over how each item is drawn. But this function is marked as obsolete . Is there any new equivalent method ? Thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      If you look at the docs:

      [quote]
      Since Qt 4.6, this function is not called anymore unless the QGraphicsView::IndirectPainting flag is given as an Optimization flag.
      [/quote]

      As no other option is stated, I assume, you have to use drawForeground for that.

      As I looked at the code, I found, that is is still called in QGraphicsScene::render with Qt 4.7.4

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      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