Results 1 to 8 of 8

Thread: why the command endl; dont work in my code ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jun 2017
    Location
    Damascus-Syria
    Posts
    6
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    1

    Default Re: why the command endl; dont work in my code ?

    you should include the iostream library:
    Qt Code:
    1. #include <iostream>
    To copy to clipboard, switch view to plain text mode 
    then you can use endl,but beware to use the standard namespace,just like this:
    Qt Code:
    1. std::endl;
    To copy to clipboard, switch view to plain text mode 
    or you can use "\n" instead of endl
    Last edited by Syrian Lucianos; 29th June 2017 at 14:53. Reason: updated contents

Similar Threads

  1. SequentialAnimation dont work - why?!?
    By Szyk in forum Qt Quick
    Replies: 12
    Last Post: 10th December 2016, 12:36
  2. QGesture dont work
    By Talei in forum Qt Programming
    Replies: 0
    Last Post: 21st December 2013, 17:55
  3. QWidget -> updateGeometry dont work.
    By patrik08 in forum Qt Programming
    Replies: 7
    Last Post: 22nd May 2013, 15:55
  4. Replies: 3
    Last Post: 9th October 2012, 02:12
  5. Why this doesn't work? qDebug() << "Test" << std::endl;
    By grayfox in forum Qt Programming
    Replies: 4
    Last Post: 1st June 2011, 10:19

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.