Results 1 to 2 of 2

Thread: QPainter strange warning

  1. #1
    Join Date
    Sep 2007
    Location
    Szczecin, Poland
    Posts
    153
    Thanks
    7
    Thanked 11 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QPainter strange warning

    Hi,
    i'm using QPainter in my paintEvent(together with QStylePainter), and i get warning like this:

    Warning: QPainter::begin: Paint device returned engine == 0, type: 2

    I can't figure out when exactly this happens and it's rather hard to reproduce it. type 2 is something like QuickDraw on MacOS but i'm working on windows xp, so i'm totally confused...

    Does anyone know what's this warning about?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QPainter strange warning

    Quote Originally Posted by mchara View Post
    i'm using QPainter in my paintEvent(together with QStylePainter)
    Hmm, what does this actually mean? Notice that QStylePainter is a QPainter. Do you actually have two painters on the same device at time?
    J-P Nurmi

Similar Threads

  1. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  2. Problem at time compilation in traslation of language
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2007, 14:18
  3. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23
  4. a Text Editor with line numbers...
    By fullmetalcoder in forum Qt Programming
    Replies: 47
    Last Post: 5th April 2006, 11:10
  5. warning message on compile not understood
    By impeteperry in forum Qt Programming
    Replies: 13
    Last Post: 23rd January 2006, 23:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.