blob: 61e2084447b32038ae4da19a6df8d41864ba31cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include <string>
#include "window.h"
#include <QLabel>
#include <QPushButton>
Slides::Slides(QWidget *parent) : QWidget(parent)
{
// Set size of the window
// setFixedSize(100, 50);
// Create and position the button
// m_button = new QPushButton("Hello World", this);
// m_button->setGeometry(10, 10, 80, 30);
QLabel title {"Replicant"};
// connect(
// m_button,
// SIGNAL(released()),
// this,
// SLOT(handleButton())
// );
title.show();
}
void Slides::setTitle(const QString& title)
{
// m_button->setText(title);
}
void Slides::handleButton()
{
m_button->setText("Example");
// m_button->resize(100,100);
// std::cout << "Hello world";
}
|