Quote Originally Posted by spirit View Post
[offtop]
you can optimazi this code
Qt Code:
  1. connect(signalMapper, SIGNAL(mapped(int)), this, SIGNAL(clicked(int)));
  2. connect(this, SIGNAL(clicked(int)), this, SLOT(changeIndex(int)));
To copy to clipboard, switch view to plain text mode 
like this
Qt Code:
  1. connect(signalMapper, SIGNAL(mapped(int)), this, SIGNAL(changeIndex(int)));
To copy to clipboard, switch view to plain text mode 
[/offtop]

could you post compilable code which reproduces a crash?
thanks for reply ...
sorry to the forum members ... i forget to initialize signalMapper
signalMapper = new QSignalMapper();
now its working ... sorry for this post ....