Results 1 to 2 of 2

Thread: Different actions on ListElements

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Different actions on ListElements

    If you put a MouseArea into your delegate, then each item will have its own mouse area.

    You can either use a model value or the model's index to decide what you want to do in each of them.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    Icamer (5th May 2016)

Similar Threads

  1. Actions in QDcokWidget
    By rouge in forum Newbie
    Replies: 3
    Last Post: 3rd November 2011, 09:40
  2. help with QSignalMapper and actions
    By andreime in forum Newbie
    Replies: 1
    Last Post: 9th August 2009, 18:24
  3. Menubar actions
    By srohit24 in forum Qt Programming
    Replies: 9
    Last Post: 23rd July 2009, 11:35
  4. Get the actions from a toolbar
    By jano_alex_es in forum Newbie
    Replies: 3
    Last Post: 20th May 2009, 09:02
  5. Actions and what to do with them?
    By krsmichael in forum Qt Tools
    Replies: 2
    Last Post: 20th January 2006, 22:08

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.