Results 1 to 2 of 2

Thread: Qpainter warning

  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Qpainter warning

    Hello friends,
    In my gui, when I change the position of a slider, a shape which is drawn by QPainter is rotated. There is no problem with the application except that it gives a warning everytime I use the slider. It says:

    QPainter::restore: Unbalanced save/restore

    Any idea, what causes this? and how to remove this warning? Thanks...

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qpainter warning

    Can u show the code ??
    May be u are using save, restore functions in a a wrong way

Similar Threads

  1. Visual Studio 2005 Express
    By Muzz in forum Installation and Deployment
    Replies: 22
    Last Post: 6th November 2008, 07:21
  2. Crash handler on Win32
    By niko in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 20:41
  3. QPainter strange warning
    By mchara in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2007, 03:06
  4. Problem at time compilation in traslation of language
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2007, 15:18
  5. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 06:23

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.