#include "textfinder.h"
#include "ui_textfinder.h"
#include <QFile>
#include <QTextStream>
#include <QTextEdit>
TextFinder::TextFinder(QWidget *parent) :
QWidget(parent),
ui(new Ui::TextFinder)
{
ui->setupUi(this);
}
TextFinder::~TextFinder()
{
delete ui;
}
void TextFinder::on_findButton_clicked()
{
}
void TextFinder::loadTextFile()
{
QFile inputFile(":/input.txt");
inputFile.open(QIODevice::ReadOnly);
QTextStream in(&inputFile);
QString line = in.readAll();
inputFile.close();
ui->textEdit->
}
I have problem with ui->textEdit->setPlainText(line) (no member named 'TextEdit' in 'Ui::TextFinder' )
there is an image of ui