addu
21st May 2009, 15:41
Hi
i am using Twitter api in my application..
I used only login api ...
My project is complied succesfully ...
When i am running , my application is crashed...
please help me
see my code..
Example.cpp
#include <QtGui>
#include "login.h"
#include "ui_login.h"
#include <QDebug>
Login::Login(QWidget *parent)
: QWidget(parent), ui(new Ui::LoginClass)
{
ui->setupUi(this);
ui->pushButton->setText("Login");
m_twitLib = new QTwitLib();
}
Login::~Login()
{
delete ui;
}
void Login::on_pushButton_clicked()
{
m_twitLib->Login(ui->lineEdit->text(),ui->lineEdit_2->text());
qDebug() << "ghuirgdfhngjesbfxcbnvfds";
}
void Login::OnError(QString error)
{
ui->textEdit->append("ERROR "+error);
} //================================================== ===================
void Login::OnMessageReceived(QString message)
{
ui->textEdit->append("MESSAGE "+message);
} //================================================== ===================
void Login::OnStatusReceived(SERVER::RESP response)
{
ui->textEdit->append("STATUS REC "+QString::number(response));
}
.
Example.h
#ifndef LOGIN_H
#define LOGIN_H
#include "QTwitLib.h"
#include <QtGui/QWidget>
namespace Ui
{
class LoginClass;
}
class Login : public QWidget
{
Q_OBJECT
public:
Login(QWidget *parent = 0);
~Login();
void OnError(QString error);
void OnMessageReceived(QString message);
void OnStatusReceived(SERVER::RESP response);
//void OnResponseReceived(Returnables::Response *);
private:
//void MakeConnections();
//void DisplayList(QLinkedList<Returnables::StatusElement*> list, QString header);
Ui::LoginClass *ui;
QTwitLib *m_twitLib;
private slots:
void on_pushButton_clicked();
};
#endif // LOGIN_H
Here
if i comment the m_twitLib ->Login ,it is showing ...otherwise it is not showing...
if you need full code... i will post it
please help me
Thanks
i am using Twitter api in my application..
I used only login api ...
My project is complied succesfully ...
When i am running , my application is crashed...
please help me
see my code..
Example.cpp
#include <QtGui>
#include "login.h"
#include "ui_login.h"
#include <QDebug>
Login::Login(QWidget *parent)
: QWidget(parent), ui(new Ui::LoginClass)
{
ui->setupUi(this);
ui->pushButton->setText("Login");
m_twitLib = new QTwitLib();
}
Login::~Login()
{
delete ui;
}
void Login::on_pushButton_clicked()
{
m_twitLib->Login(ui->lineEdit->text(),ui->lineEdit_2->text());
qDebug() << "ghuirgdfhngjesbfxcbnvfds";
}
void Login::OnError(QString error)
{
ui->textEdit->append("ERROR "+error);
} //================================================== ===================
void Login::OnMessageReceived(QString message)
{
ui->textEdit->append("MESSAGE "+message);
} //================================================== ===================
void Login::OnStatusReceived(SERVER::RESP response)
{
ui->textEdit->append("STATUS REC "+QString::number(response));
}
.
Example.h
#ifndef LOGIN_H
#define LOGIN_H
#include "QTwitLib.h"
#include <QtGui/QWidget>
namespace Ui
{
class LoginClass;
}
class Login : public QWidget
{
Q_OBJECT
public:
Login(QWidget *parent = 0);
~Login();
void OnError(QString error);
void OnMessageReceived(QString message);
void OnStatusReceived(SERVER::RESP response);
//void OnResponseReceived(Returnables::Response *);
private:
//void MakeConnections();
//void DisplayList(QLinkedList<Returnables::StatusElement*> list, QString header);
Ui::LoginClass *ui;
QTwitLib *m_twitLib;
private slots:
void on_pushButton_clicked();
};
#endif // LOGIN_H
Here
if i comment the m_twitLib ->Login ,it is showing ...otherwise it is not showing...
if you need full code... i will post it
please help me
Thanks