Results 1 to 13 of 13

Thread: how to connect to a slot when a row is selected in TableView?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: how to connect to a slot when a row is selected in TableView?

    is
    Qt Code:
    1. view->selectionModel()
    To copy to clipboard, switch view to plain text mode 
    returning a valid pointer? Did you have rerun qmake, do you use the Q_OBJECT macro?

  2. #2
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    156
    Thanks
    47
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to connect to a slot when a row is selected in TableView?

    Quote Originally Posted by Lykurg View Post
    is
    Qt Code:
    1. view->selectionModel()
    To copy to clipboard, switch view to plain text mode 
    returning a valid pointer? Did you have rerun qmake, do you use the Q_OBJECT macro?
    How to check these two?

Similar Threads

  1. Replies: 3
    Last Post: 6th October 2010, 08:33
  2. Can't connect a signal to a slot
    By cejohnsonsr in forum Newbie
    Replies: 5
    Last Post: 26th August 2010, 20:42
  3. connect a qpushbutton a slot
    By Lycus HackerEmo in forum Newbie
    Replies: 13
    Last Post: 29th March 2010, 09:14
  4. QObject::connect: No such slot !?!
    By Mystical Groovy in forum Qt Programming
    Replies: 3
    Last Post: 18th September 2008, 18:31
  5. Qt Designer & Qt4, connect to my own slot.
    By geitosten in forum Newbie
    Replies: 2
    Last Post: 17th February 2007, 19:22

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.