Results 1 to 1 of 1

Thread: QTreeWidgetItem NULL(Solved)

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    70
    Thanked 59 Times in 57 Posts

    Default QTreeWidgetItem NULL(Solved)

    Hi,

    I have this piece of code:
    Qt Code:
    1. pqItem = m_pqTreeWidget->topLevelItem(0);
    2. if (pqItem != NULL)
    3. bItemNull == false;
    4. else
    5. bItemNull == true;
    To copy to clipboard, switch view to plain text mode 
    The problem is that "pqItem" is NULL(0x00000000) but the "else" statment is never called.
    Anyone have experienced similar a problem?

    I'm using Qt 4.3.0 and Visual Studio .NET 2003

    Thanks,


    SORRY:
    Qt Code:
    1. bItemNull == false;
    To copy to clipboard, switch view to plain text mode 

    Writing too fast.
    Last edited by ^NyAw^; 26th October 2009 at 11:44.
    Òscar Llarch i Galán

Similar Threads

  1. Custom QTreeWidgetItem context menu?
    By AaronMK in forum Qt Programming
    Replies: 4
    Last Post: 1st February 2010, 05:42
  2. QSqlTableModel and NULL
    By karas in forum Qt Programming
    Replies: 0
    Last Post: 9th February 2009, 13:55
  3. Replies: 3
    Last Post: 26th April 2008, 19:42
  4. Problem at time compilation in traslation of language
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2007, 15:18
  5. QTreeWidgetItem ?
    By allensr in forum Qt Programming
    Replies: 5
    Last Post: 3rd January 2007, 18:51

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.