[Qt-interest] auto-connect not working?
Francisco Ares
frares at gmail.com
Thu Jan 14 03:11:52 CET 2010
Hi guys
Before I forget: I'm using v4.6.0, MinGW , Eclipse and the Eclipse
Integration plugin, all lattest. Great packages, really good pieces of
work.
I have a test program based on QWidget, where the main class is derived from
the Ui:: interface class, instead of creating an object of that class,
something like this:
Panel::Panel(QWidget *parent) :QWidget(parent) , Ui::PanelClass()
{
setupUi(this);
...
After creating some more widgets using the "creator" embedded inside
eclipse, I've declared, for example:
private
slot:
void on_spinButtonTest_valuieChanged(int i);
and implemented like this:
void Panel::on_spinButtonTest_valueChanged(int i)
{
mSpinButtonTestValue = i;
}
It builds even without warnings, but it doesn't execute, it spans an error
dialog.
If I declare a diferent slot and connect it by hand, it works just as
expected.
Am I missing something?
Thanks
Francisco
--
"If you have an apple and I have an apple and we exchange apples then you
and I will still each have one apple. But if you have an idea and I have one
idea and we exchange these ideas, then each of us will have two ideas." -
George Bernard Shaw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100114/bd475d56/attachment.html
More information about the Qt-interest-old
mailing list