Results 1 to 5 of 5

Thread: qt 4.5 windows. Update window when something doing.

  1. #1
    Join Date
    Jan 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qt 4.5 windows. Update window when something doing.

    Good day.
    i have Qt 4.5 on Windows XP.
    for example, i copy many files in a loop, and my window hangs, its didnt repaint.
    if i put repaint() in loop, it'll be ok. But when i move window it will hangs again and didnt repaint.
    what should i do or what i doing wrong?
    thnx.

  2. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt 4.5 windows. Update window when something doing.

    do copying process in a seperate event loop ..
    use QThread http://doc.trolltech.com/4.5/qthread.html
    "Behind every great fortune lies a crime" - Balzac

  3. #3
    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: qt 4.5 windows. Update window when something doing.

    Or may be simply you can call qApp->processEvents in between your loop

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

    Default Re: qt 4.5 windows. Update window when something doing.

    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.


  5. #5
    Join Date
    Jan 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt 4.5 windows. Update window when something doing.

    thanks all! works great)

Similar Threads

  1. Widget without window decoration in windows
    By jiveaxe in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2008, 20:25
  2. QT with window's window events
    By giotto in forum Qt Programming
    Replies: 1
    Last Post: 15th March 2008, 12:33
  3. update window size
    By eric in forum Newbie
    Replies: 3
    Last Post: 14th January 2008, 10:21
  4. Replies: 5
    Last Post: 4th August 2006, 23:44
  5. Dock windows in a MDI window
    By aronsson in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 10:22

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.