Results 1 to 2 of 2

Thread: QTreeWidget and doubleClicked signal

  1. #1
    Join Date
    Feb 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default QTreeWidget and doubleClicked signal

    Hi,

    I am programming in C++ on WinXP, using Qt4.1

    Does anyone know how to connect signals and slots for QTreeWidget?

    What I am trying to do is open another form after a QTreeWidgetItem has been double clicked. I took a look at the help manual, but did not get much from it:

    void QAbstractItemView::doubleClicked ( const QModelIndex & index )

    I tried replacing QModelIndex& with QTreeWidgetItem*, int column but it does not seem to work.

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTreeWidget and doubleClicked signal

    you can try

    void itemDoubleClicked ( QTreeWidgetItem * item, int column ) signal

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.