asked on
#include "hello.h"
#include "ui_hello.h"
hello::hello(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::hello)
{
ui->setupUi(this);
Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory,this);
}
hello::~hello()
{
delete ui;
}
void hello::on_pushButton_Quit_clicked()
{
hello::close();
}
void hello::on_pushButton_Open_clicked()
{
QString path;
path = QFileDialog::getOpenFileName(this,"Open file...","/","Video(*.avi);All Files(*.*)");
ui->lineEdit_FilePath->setText(path);
}
C++ is an intermediate-level general-purpose programming language, not to be confused with C or C#. It was developed as a set of extensions to the C programming language to improve type-safety and add support for automatic resource management, object-orientation, generic programming, and exception handling, among other features.
TRUSTED BY