Results 1 to 4 of 4

Thread: QTreeWidget Crashing while setText,setFont,setIcon

Hybrid View

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

    Default Re: QTreeWidget Crashing while setText,setFont,setIcon

    Start with removing void pointers and C-style casts. This will let compiler do sanity checks.
    J-P Nurmi

  2. #2
    Join Date
    May 2007
    Posts
    110
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    2

    Default Re: QTreeWidget Crashing while setText,setFont,setIcon

    But without (void*)treeItem which typecasting i will use....Is there any other alternative..

    According to my application requirment function return QtreeWidgetItem to other class...
    How i will use qt casting here...kindly tell me

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

    Default Re: QTreeWidget Crashing while setText,setFont,setIcon

    This forum is not about C++ programming basics. Please refer your favourite C++ book about type casting.
    J-P Nurmi

Similar Threads

  1. QTreeWidget click
    By ^NyAw^ in forum Qt Programming
    Replies: 3
    Last Post: 24th October 2007, 16:47
  2. Having trouble clearing a QTreeWidget.
    By Nyphel in forum Qt Programming
    Replies: 28
    Last Post: 10th October 2007, 15:33
  3. how to add icons to QTreeWidget?
    By wei243 in forum Qt Programming
    Replies: 4
    Last Post: 21st September 2007, 08:34
  4. resizing a QTreeWidget
    By drhex in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2006, 22:32
  5. few questions related to QTreeWidget
    By prakash in forum Qt Programming
    Replies: 9
    Last Post: 10th March 2006, 07:32

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.