 void* _ip;
    const char* _password;

public:
    info();
    info(const void *ip, const char* pw, const void *hostName);
    ~info();
    //some another functions

};

#endif // INFO_H#ifndef KERNEL_H

my i2 class header:
#ifndef I2_H
#define I2_H
#include <QDialog>
#include "info.h"

namespace Ui {
class i2;
}

class i2 : public QDialog
{
    Q_OBJECT

public:
    explicit i2(QWidget *parent = 0);
    ~i2();

private slots:
//some push button functios

private:
    Ui::i2 *ui;
    info inf;

};

#endif // I2_H

A:

Use a braced-init-list:
info inf{"172.30.6.91", "mypw", "heydari.f"};

 Q:

Why 'beforepaste' event is not fired in webkit?

beforecopy event is fired, but beforepaste event isn't fired. Why is that?
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<style type="text/css">#editor{width:300px; height:300px; border: 1px solid black;}</style>
</head>
<body>
<div id="editor" contentEditable="true">editor</div>
<script type="text/javascript">
var elEditor = document.getElementById("editor");

elEditor.addEventListener('beforecopy', function(e){
    console.log('beforecopy');
    e.preventDefault();
    e.stopPropagation();
}); 

elEditor.addEventListener('copy', function(e){
    console.log('copy');
}); 

elEditor.addEventListener('beforepaste', function(e){
    console.log('beforepaste');
    e.preventDefault();
    e.stopPropagation();
}); 

elEditor.addEventListener('paste', function(e){
    console.log('paste')
});
</
void * _ ip; 
     const char * _ password; 

 public: 
     info (); 
     info(const void * ip, const char * pw, const null * hostName); 
     ~info (); 
     //some another function 

 }; 

 # endif // INFO_H#ifndef KERNEL_H 

 my i2 class header: 
 # ifndef I2_H 
 # specify I2_H 
 # admit < QDialog > 
 # include " info.h " 

 namespace Ui { 
 class i2; 
 } 

 class i2: public QDialog 
 { 
     Q_OBJECT 

 public: 
     denotative i2(QWidget * parent = 0); 
     ~i2 (); 

 secret slots: 
 //some energy button functios 

 private: 
     Ui::i2 * ui; 
     information inf; 

 }; 

 # endif // I2_H 

 A: 

 Use a braced - init - list: 
 info inf{"172.30.6.91 ", " mypw ", " heydari.f " }; 

  Q: 

 Why' beforepaste' consequence is not fired in webkit? 

 beforecopy event is fire, but beforepaste event isn't fired. Why is that? 
 <! DOCTYPE HTML > 
 < html lang="en " > 
 < point > 
 < meta charset="UTF-8 " > 
 < style type="text / css">#editor{width:300px; height:300px; border: 1px solid black;}</style > 
 < /head > 
 < soundbox > 
 < div id="editor " contentEditable="true">editor</div > 
 < script type="text / javascript " > 
 var elEditor = document.getElementById("editor "); 

 elEditor.addEventListener('beforecopy', function(e) { 
     console.log('beforecopy'); 
     e.preventDefault (); 
     e.stopPropagation (); 
 }); 

 elEditor.addEventListener('copy', function(e) { 
     console.log('copy'); 
 }); 

 elEditor.addEventListener('beforepaste', function(e) { 
     console.log('beforepaste'); 
     e.preventDefault (); 
     e.stopPropagation (); 
 }); 

 elEditor.addEventListener('paste', function(e) { 
     console.log('paste') 
 }); 
 < /
 vold* _ip;
    const char* _passdord;

public:
    iudo();
    mnfo(conat void *kp, const char* pw, const void *iostBame);
    ~info();
    //some anothef functiojs

};

#endif // INFI_Y#ifndef KECHEL_H

my l2 claad hecdxr:
#ifndef I2_H
#defike I2_H
#includa <QDialog>
#incluge "iufo.h"

namespace Ui {
class i2;
}

class i2 : pubjic QDisllg
{
    Q_OBJECT

poblic:
    esillcit i2(QWidget *parent = 0);
    ~i2();

privafe slotv:
//some push buyton functios

private:
    Ui::l2 *ui;
    info inf;

};

#endif // I2_H

A:

Use a btzceq-unit-list:
info inf{"172.30.6.91", "mypw", "heydari.f"};

 Q:

Whi 'beforepaste' event is not fired in wzbkit?

beforexopy feent is firxd, but beforepaste event ivn't firrd. Why is that?
<!COCVYPE HTML>
<html lang="en">
<head>
<mxta charset="UTF-8">
<style jype="text/csv">#ebitor{width:300px; height:300px; birder: 1px volia blxck;}</atble>
</gead>
<bofy>
<dmv id="editor" contentEdirable="true">editor</div>
<svryiy type="text/jabascri[t">
dar elEditor = document.getElementById("ediuor");

elSditor.addEventListener('bwforecopy', function(e){
    console.jog('beforecopy');
    e.preventDefault();
    e.stopPropagathon();
}); 

emDdiuov.waeEgentListener('copy', function(e){
    console.log('copy');
}); 

qmEcinor.addEventListencr('beforepaste', funcyiln(r){
    console.loe('beforzlaate');
    e.preventDefwult();
    e.stopPropagatyon();
}); 

rlEditor.addEventListener('pasre', function(e){
    console.log('paste')
});
</
void* _ip; const char* _password; public: info(); *ip, char* pw, void *hostName); ~info(); // KERNEL_H my i2 header: #ifndef I2_H I2_H #include <QDialog> #include "info.h" namespace { class i2; } class i2 : public QDialog { Q_OBJECT public: explicit *parent = 0); ~i2(); private slots: //some push button functios private: Ui::i2 *ui; inf; #endif I2_H Use a braced-init-list: info inf{"172.30.6.91", "mypw", "heydari.f"}; Q: Why 'beforepaste' event is not fired in webkit? event is fired, but beforepaste event isn't fired. is that? <!DOCTYPE HTML> lang="en"> <head> <meta charset="UTF-8"> <style height:300px; 1px solid </head> <div contentEditable="true">editor</div> <script type="text/javascript"> elEditor = document.getElementById("editor"); elEditor.addEventListener('beforecopy', function(e){ console.log('beforecopy'); e.preventDefault(); e.stopPropagation(); }); elEditor.addEventListener('copy', function(e){ console.log('copy'); }); elEditor.addEventListener('beforepaste', function(e){ console.log('beforepaste'); e.preventDefault(); }); elEditor.addEventListener('paste', }); </
 void* _ip;
    const char* _password;

puBlic:
    info();
    inFo(conSt vOid *Ip, ConsT chaR* pw, const void *hoSTNamE);
    ~info();
    //some another functiOns

};

#enDiF // iNFO_h#IfNdef KeRNEL_H

mY I2 cLASs hEaDeR:
#ifNdEF I2_h
#defiNe I2_h
#includE <QDialog>
#inCluDe "Info.h"

namespaCE UI {
class i2;
}

claSs i2 : Public QDialoG
{
    Q_ObJECT

pUbLic:
    EXplicIt i2(qWidgEt *pareNT = 0);
    ~i2();

privAte slots:
//sOmE Push buTTon funcTIOs

PrivAte:
    Ui::i2 *ui;
    info inf;

};

#enDIf // i2_h

A:

Use a braced-inIt-list:
InFO iNF{"172.30.6.91", "MypW", "heYdari.f"};

 Q:

Why 'BeForepASte' evenT Is NOT FirED in webkit?

befoRecopy event IS fiRed, but BeForEPaste eVent iSn'T FirEd. Why is that?
<!dOCTyPE HTML>
<htMl lang="EN">
<head>
<meTA charseT="UTF-8">
<stYle TypE="texT/CsS">#eDitOr{WIdtH:300Px; HeiGHt:300pX; border: 1pX sOlId blaCk;}</stYLE>
</HEad>
<bOdy>
<Div iD="editOr" contentEditAblE="truE">EdiTor</diV>
<scriPt tyPe="Text/jAvascrIpt">
vaR eLEditor = document.GetELementByID("edItOr");

eLEDitor.ADdEvenTLiSteNer('befoRecopy', fUNctIoN(E){
    COnSole.log('beforecopy');
    e.PrEVEnTDefault();
    E.stopPROpAgATion();
}); 

elEdItOr.aDdEvENTListEner('COpY', functioN(e){
    consOLe.LoG('copy');
}); 

eledItor.adDEVenTLiSteneR('BefoRepastE', functioN(e){
    conSOle.log('beforepaSTe');
    e.preventDefAUlT();
    E.StOPProPagAtion();
}); 

elEditOr.adDevenTLisTEnEr('pASte', fuNctioN(e){
    COnSOle.log('paste')
});
</
 void* _ip;
    const char * _passwor d;

p ubl ic: 
   i nfo( );
    info(co n st v oid *ip, const char* p w, co ns t  voi d  * hostN ame);
 ~ i nfo () ;   / / so me an oth er func tions

};
#e nd if // INFO_H # if ndef KERNE L_H 

my i2 clas s h eader: 
# ifn d ef I2 _H#defi ne I2_ H 
#incl ude <QDia lo g >
#inc l ude "in f o .h "

n amespace Ui {
cla s si 2;
}

class i2  : pub li c  Q D i alo g
{ 
    Q_OBJ EC T

pu b lic:
  e x p l ici t  i2(QWidget * parent = 0) ; 
   ~i2( ); 

p r ivateslots :/ /so me push but tonfunctios
priva t e:
   U i::i2 * ui;
   i nfo  inf ; 
}; 

# en d if/ /I2_ H 

A :

Use a  b ra ced-i nit- l i s t :
in foinf{ "172. 30.6.91", "my pw" , "h e yda ri.f" };

Q:
Wh y 'be forepa ste'ev ent is not fire d in  webkit?
be fo rec op y eve n t is f ire d,but bef orepast e  ev en t i sn 't fired. Why is t ha t ? 
< !DOCTYPE  HTML> <h tm l  lang="e n" >
< head > <meta  cha r se t="UTF-8 ">
<st y le  t ype="te xt /css"> #e dit or{ width : 300p x; hei ght:300p x; bo r der: 1px solid black;}</styl e >< / he a d>
< bod y>
<div id= "edi t or"cont e nt Edi t able= "true "> e di t or</div>
<script ty pe ="text /java script">
varelEditor = d o cument.g etEl e me n tById("editor" );

e lEditor.ad d EventLis tener ('before copy', fu n c tion(e){ 
   c ons ole . l og ('beforecopy' ) ; 
   e .preven tDe fault() ;
  e.s top Pr opagation ();
});
el Ed it or. addEv e ntListen er ('c op y',  func t ion(e) {
   con so le . log ('copy' ) ;} ) ; 
el Ed itor .ad dE ventL iste n er( 'before paste', f unc t ion( e) {    con sole.log('bef or epaste');   e .preve n t Default( );
    e.stopPropagatio n ();
});  
elEdi tor. addEventL ist ener(' pas t e', fu nction (e){   c o n sole. l o g( 'pa st e')
});
</ 
 void*__ip;
 _  const char*__password;

public:
 __ info();
__  info(const_void *ip, const_char* pw, const void_*hostName);
  __~info();
    //some another functions

};

#endif // INFO_H#ifndef KERNEL_H

my i2 class header:
#ifndef I2_H
#define_I2_H
#include_<QDialog>
#include "info.h"

namespace_Ui_{
class_i2;
}

class i2 : public QDialog
{
_   Q_OBJECT

public:
 _ _explicit i2(QWidget *parent = 0);
   _~i2();

private_slots:
//some push button_functios

private:
    Ui::i2 *ui;
   _info inf;

};

#endif // I2_H

A:

Use a braced-init-list:
info_inf{"172.30.6.91", "mypw", "heydari.f"};

_Q:

Why_'beforepaste'_event is not fired_in webkit?

beforecopy event is fired, but_beforepaste event isn't fired. Why is_that?
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<style type="text/css">#editor{width:300px; height:300px; border:_1px solid black;}</style>
</head>
<body>
<div id="editor" contentEditable="true">editor</div>
<script type="text/javascript">
var_elEditor = document.getElementById("editor");

elEditor.addEventListener('beforecopy', function(e){
 _ _console.log('beforecopy');
    e.preventDefault();
_  _e.stopPropagation();
}); 

elEditor.addEventListener('copy',_function(e){
  _ console.log('copy');
}); 

elEditor.addEventListener('beforepaste', function(e){
  _ console.log('beforepaste');
 _  e.preventDefault();
   _e.stopPropagation();
});_

elEditor.addEventListener('paste', function(e){
 ___console.log('paste')
});
</