Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    QML and Qt Quick
    1
    1
    104
    Loading More Posts
    • 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.
    • SeDi
      SeDi last edited by SeDi

      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 Reply Quote 0
      • First post
        Last post