Results 1 to 2 of 2

Thread: qFatal question

  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default qFatal question

    Hello!

    How do I print error, that is returned by lastError method, with qFatal?
    Qt 5.3 Opensource & Creator 3.1.2

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: qFatal question

    Hi

    Are we talking about QSqlError? You could use for example qPrintable():
    Qt Code:
    1. qFatal(qPrintable(something.lastError.text()));
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    MarkoSan (17th March 2007)

Similar Threads

  1. Replies: 1
    Last Post: 15th March 2007, 20:45
  2. Question regarding how to paint after zoom.
    By JonathanForQT4 in forum Qt Programming
    Replies: 2
    Last Post: 26th January 2007, 15:34
  3. QVector QVarLengthArray speed question
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 22nd January 2007, 09:28
  4. QThread exit()/quit() question
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 28th August 2006, 14:38
  5. Replies: 6
    Last Post: 19th March 2006, 18:41

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.