Results 1 to 7 of 7

Thread: The GUI is hang

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: The GUI is hang

    As wysota already told you in the other thread (btw, thanks for duplicating the topic), you cannot create a QPixmap in any other thread then the one running the QApplication event loop (here the main thread).

    Cheers,
    _

  2. #2
    Join Date
    Oct 2014
    Posts
    20
    Thanks
    2

    Default Re: The GUI is hang

    As wysota already told you in the other thread (btw, thanks for duplicating the topic), you cannot create a QPixmap in any other thread then the one running the QApplication event loop (here the main thread).
    Thanks for your attention.
    This is the different with that thread.
    My code has been improved for many times. And some problems are resolved, some new problems come in.
    I had removed QPixmap from any other thread.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: The GUI is hang

    Please prepare a minimal compilable example reproducing the problem.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Oct 2014
    Posts
    20
    Thanks
    2

    Default Re: The GUI is hang

    Sorry, it worksforme.
    It happend when I add "zoomMessage_="Who am I?";" to class MZoom constructor.
    And I don't have enough information to reproduce it now too.
    I ask redhat in the following link https://bugzilla.redhat.com/show_bug.cgi?id=1160557.

Similar Threads

  1. Every Qt app in WinXP - 'blocked' input?
    By aabbaa in forum Newbie
    Replies: 3
    Last Post: 10th November 2012, 06:58
  2. GUI application as DLL. Repaint is blocked.
    By Grinchman in forum Qt Programming
    Replies: 11
    Last Post: 8th June 2011, 07:28
  3. GUI blocked
    By Astrologer in forum Qwt
    Replies: 1
    Last Post: 24th June 2010, 14:07
  4. how blocked center in QGraphicsScene
    By estel in forum Newbie
    Replies: 3
    Last Post: 20th March 2010, 10:11
  5. GUI thread blocked using QThread.
    By summer_of_69 in forum Qt Programming
    Replies: 11
    Last Post: 18th May 2009, 09:43

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
  •  
Qt is a trademark of The Qt Company.