Results 1 to 2 of 2

Thread: QThread Problem

  1. #1
    Join Date
    Jan 2008
    Posts
    72
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Unhappy QThread Problem

    Hello everyone.........
    I m creating a QPixmap within run() function ofQThread ...........
    Its workin fine with QT4.3 version but I m trying to use Qt4.5 but it does not create QPixmap
    and produce a message i.e QPixmap: It is not safe to use pixmaps outside the GUI thread.

    Can any one help me ?
    I will be vry thankful to him
    Last edited by MrShahi; 8th July 2009 at 06:59.

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QThread Problem

    You can't do that.
    You can create a QImage,though.

Similar Threads

  1. Very strange socket programming problem
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2008, 12:05
  2. deployment problem: msvc++ 2008 Express, Qt 4.4.3
    By vonCZ in forum Qt Programming
    Replies: 7
    Last Post: 10th November 2008, 14:38
  3. Replies: 0
    Last Post: 26th September 2008, 21:33
  4. Problem in using QHttp with QTimer
    By Ferdous in forum Newbie
    Replies: 2
    Last Post: 6th September 2008, 12:48
  5. QThread and QProcess problem
    By codebehind in forum Qt Programming
    Replies: 13
    Last Post: 7th August 2007, 08:11

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.