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. Plotting graph from outside paint event function+ error:Paint device returned engine 0

Plotting graph from outside paint event function+ error:Paint device returned engine 0

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.5k 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
    sushmars
    wrote on last edited by
    #1

    Hi,
    I am plotting a graph by painting outside paintevent which runs correctly in my linux desktop.And same application when i ran in IMX environment(for which qt is ported),i am getting error message as QWidget::paintEngine: Should no longer be called QPainter::begin: Paint device returned engine == 0, type: 1 .
    Even i set the attribue for WA_PaintOutsidePaintEvent true for qframe of ui.

    Do i need to include any library to solve it..?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      AFAIK, you can only paint on non-widget paint engines outside of the paintevent, like on a QImage.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sushmars
        wrote on last edited by
        #3

        if i plot ECG graph on qimage or qpixmap, i wont get proper heart beat (for 180 i will get 237 --- data is missing, painting taking time).

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          Please adjust your topic. It's not sufficient to paste the complete error message here. You get more attention with a good, short and descriptive title. Just hit the edit link right to your first post.

          http://www.catb.org/~esr/faqs/smart-questions.html

          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