Hello, Qt guru
I try to implement QComboBox derived class and process signal currentIndexChanged(int)
{
Q_OBJECT
public:
ComboBox_impl()
{
connect(this, SIGNAL(currentIndexChanged(int)), SLOT(doProcessIndexChanged(int)));
}
virtual ~ComboBox_impl()
{
}
public Q_SLOTS:
void doProcessIndexChanged(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)
{
}
};
To copy to clipboard, switch view to plain text mode
This works excellent on Mac, but on Windows exception "Access denied" occured on line
connect(this, SIGNAL(currentIndexChanged(int)), SLOT(doProcessIndexChanged(int)));
connect(this, SIGNAL(currentIndexChanged(int)), SLOT(doProcessIndexChanged(int)));
To copy to clipboard, switch view to plain text mode
I use Xcode on Mac and VS 2008 on Windows.
Qt version on Windows is 4.6.2
Waiting for your help,
N.
Bookmarks