Results 1 to 11 of 11

Thread: DoubleClick functionality in TreeWidget which is uses a delegate when hover over item

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: DoubleClick functionality in TreeWidget which is uses a delegate when hover over

    Works fine for me... Unless of course the editor is opened and intercepts the double click but that's rather obvious.
    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.


  2. #2
    Join Date
    Mar 2011
    Posts
    15
    Thanks
    4
    Qt products
    Qt4

    Default Re: DoubleClick functionality in TreeWidget which is uses a delegate when hover over

    Quote Originally Posted by wysota View Post
    Works fine for me... Unless of course the editor is opened and intercepts the double click but that's rather obvious.
    You mean it works for you and SlotItemPressed() gets called? You mentioned earlier: "There is nothing in your delegate that would prevent signals to be delivered." Does the delegate now intercept the double click or deliver it?

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

    Default Re: DoubleClick functionality in TreeWidget which is uses a delegate when hover over

    Quote Originally Posted by torres View Post
    You mean it works for you and SlotItemPressed() gets called?
    Yes.
    You mentioned earlier: "There is nothing in your delegate that would prevent signals to be delivered." Does the delegate now intercept the double click or deliver it?
    Why would the delegate intercept double click? You'd have to reimplement editorEvent() for that to happen.
    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: 26
    Last Post: 7th January 2016, 20:26
  2. Replies: 0
    Last Post: 10th March 2011, 11:44
  3. TreeWidget item editing.
    By kubas in forum Qt Programming
    Replies: 2
    Last Post: 8th September 2009, 07:42
  4. Replies: 5
    Last Post: 10th August 2009, 10:50
  5. [Style Sheet] QMenu::item:hover bug
    By spud in forum Qt Programming
    Replies: 3
    Last Post: 11th May 2007, 14:11

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.