In my application password field are not work it show error
#include <Wt/WApplication>
#include <Wt/WBreak>
#include <Wt/WContainerWidget>
#include <Wt/WText>
#include <Wt/WLineEdit>
#include <Wt/WPushButton>
#include <Wt/WCheckBox>
#include <Wt/WAnchor>
#include <Wt/WImage>
#include <Wt/Dbo/backend/Sqlite3>
#include <Wt/WTemplate>
#include <Wt/WStackedWidget>
#include <boost/algorithm/string/split.hpp>

using namespace Wt;

class HelloApplication : public WApplication

{
public:
  HelloApplication(const WEnvironment& env);

private:
WLineEdit *name;
WLineEdit *password;


};
HelloApplication::HelloApplication(const WEnvironment& env)
  : WApplication(env)
{
  setTitle("Parvinder");                               // application title
  root()->addWidget(new WText("<h1>This is my officel website</h1> "));
root()->addWidget(new WBreak());
      // WAnchor *x = new WAnchor("http://www.parvinder.co.in";, "Jump to the
middle", root());

   WAnchor *x = new Wt::WAnchor("http://www.parvinder.co.in";, "parvinder",
root());
root()->addWidget(new WBreak());

Wt::WImage *img = new Wt::WImage("/images/pinder3.jpg", root());
 img->setAlternateText("Parvinder");

root()->addWidget(new WBreak());

root()->addWidget(new WText("Name "));  // show some text
  name = new WLineEdit(root());                     // allow text input
  name->setFocus();
root()->addWidget(new WText("password "));
 password = new WLineEdit(parent);
password->setEchoMode(WLineEdit::Password);


}

WApplication *createApplication(const WEnvironment& env)
{

  return new HelloApplication(env);
}

int main(int argc, char **argv)
{

  return WRun(argc, argv, &createApplication);
}

error:
/home/witty/Desktop/website/source/hello.C: In constructor
‘HelloApplication::HelloApplication(const Wt::WEnvironment&)’:
/home/witty/Desktop/website/source/hello.C:51:33: error: no matching
function for call to ‘Wt::WLineEdit::WLineEdit(<unresolved overloaded
function type>)’
/usr/include/Wt/WLineEdit:73:3: note: candidates are:
Wt::WLineEdit::WLineEdit(const Wt::WString&, Wt::WContainerWidget*)
/usr/include/Wt/WLineEdit:69:3: note:
Wt::WLineEdit::WLineEdit(Wt::WContainerWidget*)
/usr/include/Wt/WLineEdit:57:1: note:
Wt::WLineEdit::WLineEdit(const Wt::WLineEdit&)
make[2]: *** [source/CMakeFiles/hello.wt.dir/hello.C.o] Error 1
make[1]: *** [source/CMakeFiles/hello.wt.dir/all] Error 2
make: *** [all] Error 2
please help me
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to