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. Threading in the QQuickPaintedItem's paint() - possible?
Forum Updated to NodeBB v4.3 + New Features

Threading in the QQuickPaintedItem's paint() - possible?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 212 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.
  • SeDiS Offline
    SeDiS Offline
    SeDi
    wrote on last edited by SeDi
    #1

    Hi,
    in the docs I read

    "At the moment paint() is called, the GUI thread is blocked and this is therefore thread-safe.
    Warning: Extreme caution must be used when creating QObjects, emitting signals, starting timers and similar inside this function as these will have affinity to the rendering thread."
    

    Does it mean it is a good or a bad idea to use threads in order to speed up my pixel calculations? I am calculating Fractals with several hundred / several thousand iterations per pixel. Calculation needs between half a second and 30ish seconds on a decent computer.

    I have never worked with threads before, so I'd like to know if it's a dead end before I put too much work into that.

    BR
    Sebastian

    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