Results 1 to 2 of 2

Thread: Treeview mousePressEvent implementation prevents selection of items

  1. #1
    Join Date
    May 2009
    Posts
    83

    Default Treeview mousePressEvent implementation prevents selection of items

    Hello all
    I have class that inherited from Qtreeview and I implement simple ( empty ) mousePressEvent function
    But whenever I try to do this , the selection of the items in the Qtreeview are disabled , when I remove this function everything is working fine
    What im missing here ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Treeview mousePressEvent implementation prevents selection of items

    Call the base class implementation of the event handler.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 2
    Last Post: 20th August 2010, 05:18
  2. Replies: 8
    Last Post: 16th April 2010, 09:41
  3. TreeView and selection updating
    By Tepi in forum Qt Programming
    Replies: 1
    Last Post: 29th March 2010, 09:07
  4. Custom items selection in qgraphicsscene
    By yonnak in forum Qt Programming
    Replies: 7
    Last Post: 28th March 2009, 11:32
  5. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 12:53

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.