Results 1 to 20 of 20

Thread: Problem in updating listwidget of friend class

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Location
    Greece
    Posts
    69
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem in updating listwidget of friend class

    Quote Originally Posted by dipeshtech View Post
    And, Why i want to keep 2 listwidgets is that i wish to maintain 2 different lists containing different items in 2 tabs.
    Since this is by design then it's ok, but you have to let the two objects(1 and 4 in my previous post) to be known to eachother.

  2. #2
    Join Date
    Mar 2011
    Location
    New Delhi, India
    Posts
    31
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Default Re: Problem in updating listwidget of friend class

    If you have browsed my code, can you please help me in getting it work, the way i want it. If you can point out the changes to made (in my code) for this. I am just a month old to it.

  3. #3
    Join Date
    Aug 2009
    Location
    Greece
    Posts
    69
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem in updating listwidget of friend class

    See the changes made for the QListWidgetItem to be passed from Inbox object to SpamBox object.
    Please note that I don't "agree" with your implementation. You are making things too complicated without reason (but I will not redesign your classes )

    NOTE: I had to comment out many headers that were not in my system to compile but they are irrelevant to your problem
    Attached Files Attached Files

  4. The following user says thank you to Rhayader for this useful post:

    dipeshtech (25th March 2011)

  5. #4
    Join Date
    Mar 2011
    Location
    New Delhi, India
    Posts
    31
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Default Re: Problem in updating listwidget of friend class

    Rhayader Thanks A TON...!! for your help and time. I learned few very very important things.

    Forgive my ignorance on the problem. But, i am still thinking that there were 2 classes with 2 listwidget as members, i was thinking to have a friend function sort of thing which can be called as slot.

    Actually, i also don't like my implementation but currently i am experimenting and i am not aware of many things. And sorry for those headers, that belong to my original project, i forgot to remove it for discussion here.

    But thanks a Ton !
    --
    Dipesh

Similar Threads

  1. Problem in updating XML file
    By Qt_Kid in forum Qt Programming
    Replies: 11
    Last Post: 27th February 2011, 10:54
  2. Replies: 7
    Last Post: 2nd September 2010, 19:42
  3. Problem with QListWidget Updating
    By flob in forum Qt Programming
    Replies: 2
    Last Post: 21st November 2009, 17:05
  4. friend class in TC++ book
    By mickey in forum General Programming
    Replies: 11
    Last Post: 25th August 2008, 22:08
  5. ListWidget itemClicked problem
    By Keemosabi in forum Newbie
    Replies: 2
    Last Post: 11th August 2008, 22:29

Tags for this Thread

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.