PDA

View Full Version : QObject::connect exception fire



names
17th April 2010, 16:48
Hello, Qt guru
I try to implement QComboBox derived class and process signal currentIndexChanged(int)


class ComboBox_impl : public QComboBox
{
Q_OBJECT
public:

ComboBox_impl()
{
connect(this, SIGNAL(currentIndexChanged(int)), SLOT(doProcessIndexChanged(int)));
}

virtual ~ComboBox_impl()
{
}

public Q_SLOTS:
void doProcessIndexChanged(int)
{
}
};


This works excellent on Mac, but on Windows exception "Access denied" occured on line


connect(this, SIGNAL(currentIndexChanged(int)), SLOT(doProcessIndexChanged(int)));

I use Xcode on Mac and VS 2008 on Windows.

Qt version on Windows is 4.6.2

Waiting for your help,
N.

wysota
18th April 2010, 07:59
Please provide more information about the error.