Results 1 to 7 of 7

Thread: [QT4] Defining second QTreeWidget in header == segfault?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    44
    Thanks
    9
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Default [QT4] Defining second QTreeWidget in header == segfault?

    I've got a MainWIndow subclass. In MainWindow.h I have
    Qt Code:
    1. ...
    2. QTreeWidget *l_treeWidget;
    3. ...
    To copy to clipboard, switch view to plain text mode 

    And it works fine. I use it, it works. Beautiful.

    Now, I need to add a second one:
    Qt Code:
    1. ...
    2. QTreeWidget *l_treeWidget;
    3. QTreeWidget *w_treeWidget;
    4. ...
    To copy to clipboard, switch view to plain text mode 

    And it segfaults. No need to even try to use it, simply declaring it in the class definition causes a segfault. Any ideas?
    Last edited by ucntcme; 15th September 2007 at 20:32. Reason: adding clarification of QT version
    --
    The Real Bill

Similar Threads

  1. Two-row header for QTreeWidget
    By wetzel in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2006, 12:26

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.