Results 1 to 12 of 12

Thread: function to stop receiving event

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: function to stop receiving event

    Quote Originally Posted by babu198649 View Post
    oh sorry i forgot to mention that i have made it to display the subdirectories on double click by capturing the double click of QListView.

    i have installed the event filter for the listview and the list view is added to QStackedWidget.
    when the listview is clicked (event filter returns true for this event in event filter member function) the file name is shown in dotted line as shown in following figure.
    this means that event has not been filtered . how to filter this event.
    So why not use QAbstractItemView::doubleClicked()? It's much easier to use and less error prone than filtering corresponding events by hand. You can use QWidget::setFocusPolicy() if you don't want the view to receive focus.

    [IMG]file:///home/user/Desktop/Untitled.xcf[/IMG]
    Attach image files, please.
    J-P Nurmi

  2. #2
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: function to stop receiving event

    i have attached the file and after posting i found that the files have been not attached and
    edited the post,in the mean while u have replied(thanks)for my post.

    So why not use QAbstractItemView::doubleClicked()?
    yes i was actually mentioning the same(should i have mentioned it as a signal).

    please read the above post once more.

Similar Threads

  1. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  2. Link Errors
    By magikalpnoi in forum Qt Programming
    Replies: 5
    Last Post: 25th September 2006, 22:04
  3. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52
  4. Qt 4.1.4 plugin QPSQL
    By jcr in forum Installation and Deployment
    Replies: 4
    Last Post: 22nd June 2006, 22:55
  5. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52

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.