Hello Everyone
I want to change the location of image. I want to placed at center. how can
i hve solve my problem. plz tell me
my source code is:


#include <Wt/WApplication>
#include <Wt/WBreak>
#include <Wt/WContainerWidget>
#include <Wt/WText>
#include <Wt/WAnchor>
#include <Wt/WImage>
using namespace Wt;

class HelloApplication : public WApplication

{
public:
  HelloApplication(const WEnvironment& env);

};
HelloApplication::HelloApplication(const WEnvironment& env)
  : WApplication(env)
{
  setTitle("Parvinder");
Wt::WImage *img = new Wt::WImage("/images/logo.png", root());
 img->setAlternateText("Parvinder");

  root()->addWidget(new WText("<h1>TCC</h1> "));
root()->addWidget(new WBreak());





}

WApplication *createApplication(const WEnvironment& env)
{

  return new HelloApplication(env);
}

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

  return WRun(argc, argv, &createApplication);
}
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to