Hi all,
I have a crash on connect in constructor
BuilderAppInstanceUI::BuilderAppInstanceUI(const Workflow &wf)
:ObserverAdapter(wf)
{
}
BuilderAppInstanceUI::BuilderAppInstanceUI(const Workflow &wf)
:ObserverAdapter(wf)
{
connect(Datasets, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), Variables, SLOT(datasetChanged(QListWidgetItem*,QListWidgetItem*)));
}
To copy to clipboard, switch view to plain text mode
with
Datasets
Datasets
To copy to clipboard, switch view to plain text mode
and
Variables
Variables
To copy to clipboard, switch view to plain text mode
two members of
BuilderAppInstanceUI
BuilderAppInstanceUI
To copy to clipboard, switch view to plain text mode
:
class BuilderAppInstanceUI
: public QWidget , public ObserverAdapter
{
Q_OBJECT
public:
BuilderAppInstanceUI(const Workflow &workflow);
~BuilderAppInstanceUI();
BuilderAppListWidget *Datasets;
private slots:
};
class BuilderAppInstanceUI : public QWidget
, public ObserverAdapter
{
Q_OBJECT
public:
BuilderAppInstanceUI(const Workflow &workflow);
~BuilderAppInstanceUI();
void retranslateUi(QWidget *Form);
void setupUi(QWidget *Form);
QStackedWidget *stackedWidget;
BuilderAppListWidget *Datasets;
QTreeWidget *Variables;
private slots:
void datasetChanged(QListWidgetItem* current, QListWidgetItem* previous);
};
To copy to clipboard, switch view to plain text mode
BuilderAppListWidget
BuilderAppListWidget
To copy to clipboard, switch view to plain text mode
inherits from
QListWidget
To copy to clipboard, switch view to plain text mode
and as such can emit this signal
SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*))
To copy to clipboard, switch view to plain text mode
{
Q_OBJECT
public:
BuilderAppListWidget
(QWidget* qwdgt
= nullptr
);
~BuilderAppListWidget (){};
void keyReleaseEvent
( QKeyEvent * event
) final ;
private:
BuilderAppInstanceUI* m_instance ;
};
class BuilderAppListWidget : public QListWidget
{
Q_OBJECT
public:
BuilderAppListWidget (QWidget* qwdgt = nullptr);
~BuilderAppListWidget (){};
void dragEnterEvent( QDragEnterEvent * event ) ;
void dragMoveEvent( QDragMoveEvent * event ) ;
void dropEvent( QDropEvent * event );
void keyReleaseEvent( QKeyEvent * event ) final ;
private:
BuilderAppInstanceUI* m_instance ;
};
To copy to clipboard, switch view to plain text mode
Should I declare explicitly
currentItemChanged
currentItemChanged
To copy to clipboard, switch view to plain text mode
in body for
BuilderAppListWidget
BuilderAppListWidget
To copy to clipboard, switch view to plain text mode
class ? If not, where does problem come from ?
Regards
Bookmarks