Results 1 to 2 of 2

Thread: the sreen just show for few seconds and disappear

  1. #1
    Join Date
    Sep 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default the sreen just show for few seconds and disappear

    Hi guys

    I just started learning Qt4 on my own. Iam writing a console application, my output just show for few seconds and disappear.
    when I use iostream I am delaying it with cin.get(). Now I want to use QTextStream, how do I delay the screen.

    If there are any other resources which can help me learn Qt4 please you can share with me.

    eager to learn - Caleb

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

    Default Re: the sreen just show for few seconds and disappear

    You can still use cin with Qt apps. Basically if you want to delay closing your application, don't return from main.
    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.


Similar Threads

  1. Replies: 4
    Last Post: 18th December 2013, 20:02
  2. Get QTimer's seconds till next timeout?
    By hakermania in forum Newbie
    Replies: 12
    Last Post: 12th February 2011, 23:49
  3. QTimer in QThread - Seem to be always 5 seconds
    By bazmrl in forum Qt Programming
    Replies: 2
    Last Post: 13th August 2010, 09:53
  4. How to get seconds diferences between two datetime
    By gustavedgardo in forum Newbie
    Replies: 1
    Last Post: 4th March 2009, 22:05
  5. How to wait 2 seconds before continue
    By raphaelf in forum Newbie
    Replies: 3
    Last Post: 25th June 2008, 14: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
  •  
Qt is a trademark of The Qt Company.