4.9.4 broke DzListView clicked

Hi, I have a script I am writing where I was hooking into the clicked event of the DzListView:

      wListView=new DzListView(dlg);
      wListView.clicked().connect(function(){ dlg.setApplyButtonEnabled(actionContext.areChanges(wListView)); });

With the v4.9.4 release, it fails now and gives the error:

2017-06-13 03:45:10.654 WARNING: SyntaxError: too few arguments in call to clicked(); candidates are
    clicked(DzListViewItem*,QPoint,int)
    clicked(DzListViewItem*)

No matter what I try, I cannot get the thing to work now.  What is the correct syntax?

 

Comments

  • YudinEdYudinEd Posts: 90
    var Dlg = new DzDialog();LV = new DzListView( Dlg );LV.minWidth = 500;LV.minHeight = 500;connect(LV,"mouseButtonPressed(int,DzListViewItem*,const QPoint&,int)" , mouseClicked );Dlg.exec()function mouseClicked (button, item, pos, col){		if( button == 1) print("left button")				if( button == 2) print("right button")		if (button==4) print ("mid button")        print ("y-"+ pos.y,"x-"+ pos.x)//  where is cursor? }

    You can try signals for your actions :

    "doubleClicked(DzListViewItem*,const QPoint&,int)" 

    "rightButtonClicked(DzListViewItem*,const QPoint&,int)"

  • RiverSoft ArtRiverSoft Art Posts: 6,573
    Yudined said:
    var Dlg = new DzDialog();LV = new DzListView( Dlg );LV.minWidth = 500;LV.minHeight = 500;connect(LV,"mouseButtonPressed(int,DzListViewItem*,const QPoint&,int)" , mouseClicked );Dlg.exec()function mouseClicked (button, item, pos, col){		if( button == 1) print("left button")				if( button == 2) print("right button")		if (button==4) print ("mid button")        print ("y-"+ pos.y,"x-"+ pos.x)//  where is cursor? }

    You can try signals for your actions :

    "doubleClicked(DzListViewItem*,const QPoint&,int)" 

    "rightButtonClicked(DzListViewItem*,const QPoint&,int)"

    Thanks for the help.  I decided to just get rid of DzListView.  

Sign In or Register to comment.