Results 1 to 6 of 6

Thread: Loading text with the first line ending with tabulator causes crash

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Loading text with the first line ending with tabulator causes crash

    No crash here with Qt 4.7.2 on Linux. Using the debugger after a full, clean, debug build is a good start. When (if) it crashes read down the backtrace until you find the line in your code that triggered the crash. Look at the parameters you pass at that point for clues.

    Also try just the following program to eliminate file handling and other aspects:
    Qt Code:
    1. #include <QtGui/QApplication>
    2. #include <QtGui/QLabel>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication a(argc, argv);
    7.  
    8. QLabel l("d\t\n");
    9. l.show();
    10. return a.exec();
    11. }
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to ChrisW67 for this useful post:

    Zorki (16th June 2011)

Similar Threads

  1. loadFromData() of QImage crash in case of .gif loading
    By santosh.kumar in forum Qt Programming
    Replies: 11
    Last Post: 9th March 2011, 11:52
  2. loadFromData() of QImage -crash in case of .gif loading
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 3rd March 2011, 11:56
  3. QPlainText Edit and text lines
    By aarelovich in forum Qt Programming
    Replies: 4
    Last Post: 23rd June 2010, 13:09
  4. plot with hor. lines and text
    By hugo vanwoerkom in forum Qwt
    Replies: 2
    Last Post: 10th March 2010, 17:00
  5. I want to get lines of text
    By newplayer in forum Qt Programming
    Replies: 11
    Last Post: 29th July 2008, 09:03

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.