Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 584957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:57:09+00:00 2026-05-13T14:57:09+00:00

The title describes my problem quite well. The offending line of code: connect(table, SIGNAL(cellChanged(row,

  • 0

The title describes my problem quite well.

The offending line of code:

connect(table, SIGNAL(cellChanged(row, 5)), this, SLOT(updateSP()));

I can think of no reason why that signal is not valid. I googled around, and found a couple people with the same problem, but the solutions posed there don’t work.

I’m using Qt 4.5.2 on Ubuntu Karmic, g++.

Anyone know what I am doing wrong? Trolltech’s documentation regarding cellChanged() doesn’t mention any special requirements.

I’m at a loss.

Thanks for any advice!

  • 1 1 Answer
  • 4 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:57:09+00:00Added an answer on May 13, 2026 at 2:57 pm

    it seems for me that you don’t understand Qt’s Signals and Slots concepts. The SIGNAL & SLOT macro take an interface. Something like

    connect(table, SIGNAL(cellChanged(int, int)), this, SLOT(updateSP()));
    

    might work but you need to have same argument count in your slot, to make it work like you expect:

    connect(table, SIGNAL(cellChanged(int, int)), this, SLOT(updateSP(int, int)));
    

    Slot should look something like this:

    void ClassFoo::updateSP(int row, int column)
    {
      // row is the number of row that was clicked;
      // column is the number of column that was clicked;
      // Here we go! It's right place to do some actions. =)
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well the title pretty well describes my problem. Here is a little bit more
The title doesn't actually fully describes the problem, that is: I have a table
The following test case describes my problem. CREATE TABLE the_table (id INT, Title CHAR(10));
Title should make my problem well described.Here goes my code. <div id=adiv><text>Some text</text></div> <script
Not sure the title fully describes the problem/question I'm trying to ask, sorry. One
I'm sorry if this title doesn't describe the problem properly but I wasn't sure
I'm having a lot of headache with the problem described in this topic title.
The title describes my problem. E.g. public class EntryDAOModule extends AbstractModule { @Override protected
I'm not sure the title adequately describes the problem I've found myself with... Basically,
My title describes my problem... Can't do anything to solve it. It is a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.