Results 1 to 4 of 4

Thread: Connecting tableWidget signal and external slot

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Posts
    12
    Thanks
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Connecting tableWidget signal and external slot

    Hi there!
    I want to connect cellDoubleClicked() from tableWidget to custom slot.
    In my main.cpp i have instance of QMainWindow class - window.
    I tried
    Qt Code:
    1. QObject::connect( window, SIGNAL(cellClicked(int, int)),window, SLOT(onCellClicked(int, int)));
    To copy to clipboard, switch view to plain text mode 
    but it doesn't work. onCellClicked(int, int) is my custom slot. Any suggestions?
    Last edited by qutron; 17th November 2010 at 13:55.

Similar Threads

  1. Replies: 8
    Last Post: 13th July 2010, 14:08
  2. Replies: 2
    Last Post: 9th September 2009, 00:26
  3. Connecting signal to custom slot?
    By dbrmik in forum Qt Tools
    Replies: 2
    Last Post: 30th April 2009, 09:28
  4. Connecting two classes with slgnal and slot
    By Benjamin in forum Newbie
    Replies: 2
    Last Post: 22nd January 2009, 13:16
  5. Connecting to a slot not within an Obejct
    By Matze-o in forum Qt Programming
    Replies: 2
    Last Post: 10th November 2008, 14:02

Tags for this Thread

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.