QPlace
14th May 2009, 17:57
In my typical case I create a form (_frm) and then manually add it to the dialog class (MyDialog) as:
class Mydialog : QDialog
{
...
private ui::frm _frm;
}
Naturally, when I edit ui::frm in QT designer I only see default slots. So, if I add a slot in the code like this:
...
public slots:
void DoSmth();
}
I then have to add "DoSmth" as custom slot in QT designer. Only then this slot becomes available for assignment.
Question: Is it possible to configure the enviroment in such a way that it will always read custom slot definitions from MyDialog so they will be always available as custom slots in QT Designer?
class Mydialog : QDialog
{
...
private ui::frm _frm;
}
Naturally, when I edit ui::frm in QT designer I only see default slots. So, if I add a slot in the code like this:
...
public slots:
void DoSmth();
}
I then have to add "DoSmth" as custom slot in QT designer. Only then this slot becomes available for assignment.
Question: Is it possible to configure the enviroment in such a way that it will always read custom slot definitions from MyDialog so they will be always available as custom slots in QT Designer?