Hi its me again
Actually we're working for PDA (Personal Digital Assistance)product.when I try to compile this code by keeping it in our product and trying to interface with other code,getting an error-asking some libraries.How can I include that libraries is my code correct? can anyone please help me???
include <QtGui/QApplication>
#include "mainwindow.h"
#include <QLineEdit>
int main(int argc, char *argv[])
{
LineEdit->setStyleSheet("border: black");
window.setWindowFlags(Qt::WindowTitleHint | Qt::FramelessWindowHint);
window.setWindowTitle(" ");
window.setFixedSize(272,480);
MainWindow w;
w.show();
return a.exec();
}
include <QtGui/QApplication>
#include "mainwindow.h"
#include <QLineEdit>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QLineEdit *LineEdit = new QLineEdit;
LineEdit->setStyleSheet("border: black");
QMainWindow window;
window.setWindowFlags(Qt::WindowTitleHint | Qt::FramelessWindowHint);
window.setWindowTitle(" ");
window.setFixedSize(272,480);
MainWindow w;
w.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QLineEdit>
MainWindow
::MainWindow(QWidget *parent
) : ui(new Ui::MainWindow)
{
ui->setupUi(this);
this->setStyleSheet("background-color:rgb(13, 13, 13);");
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow
::changeEvent(QEvent *e
) {
switch (e->type()) {
ui->retranslateUi(this);
break;
default:
break;
}
}
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QLineEdit>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent, Qt::FramelessWindowHint),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
this->setStyleSheet("background-color:rgb(13, 13, 13);");
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::changeEvent(QEvent *e)
{
QMainWindow::changeEvent(e);
switch (e->type()) {
case QEvent::LanguageChange:
ui->retranslateUi(this);
break;
default:
break;
}
}
To copy to clipboard, switch view to plain text mode
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
Q_OBJECT
public:
~MainWindow();
protected:
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
protected:
void changeEvent(QEvent *e);
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
To copy to clipboard, switch view to plain text mode
Bookmarks