Results 1 to 12 of 12

Thread: Problem emitting singal with object-pointer as argument

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Join Date
    May 2007
    Posts
    91
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    60

    Default Re: Problem emitting singal with object-pointer as argument

    This is my first thought,
    note: MyView* w; Element* pE;

    item is clicked ---> emit MyRectItem::a_signal ---> MyRectItem::a_slot ---> call w->showTree(pE)

    then I wander this one may be better,
    item is clicked ---> emit MyRectItem::b_signal(pE) ---> MyView::shot: showTree(pE)

    Actually which one is better ?
    How should I design my code ?
    Last edited by Shawn; 3rd September 2007 at 16:57.

Similar Threads

  1. Replies: 3
    Last Post: 15th April 2007, 20:16

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.