![]() |
Re: I'm learning with Qt and I have a question
Quote:
Code:
class MainWindow in the first line of the file just after all the #includes define this variable, Code:
int MainWindow::_clickCounter = 0; Code:
void MainWindow::on_Button_clicked() |
Re: I'm learning with Qt and I have a question
Quote:
QT is based on C++, so if you know C++ ( even some basics ), you should feel at home. |
Re: I'm learning with Qt and I have a question
Quote:
|
Re: I'm learning with Qt and I have a question
so you want to print a random text from a list every time you click ?
whats the requirement ? |
Re: I'm learning with Qt and I have a question
Quote:
something like this: 1. Hello 2. Meow 3. Lol ...... 500. Text and i want it to show next line everytime i press next |
Re: I'm learning with Qt and I have a question
Quote:
mainwindow.h Code:
class MainWindow Code:
in the first line of the file just after all the #includes define this variable, |
Re: I'm learning with Qt and I have a question
Here's my window.h
Code:
#ifndef MAINWINDOW_H Code:
#include "mainwindow.h" |
Re: I'm learning with Qt and I have a question
Removes the brackets in line 24 and 30.
|
Re: I'm learning with Qt and I have a question
Quote:
.... private: Ui::MainWindow *ui; // member functions void MainWindow::initMyWordList() // member variables static int _clickCounter; QStringList _wordList; }; .... |
Re: I'm learning with Qt and I have a question
now it looks like that:
mainwindow.h: Code:
#ifndef MAINWINDOW_H Code:
#include <QtGui/QApplication> Code:
#include "mainwindow.h" C:/Users/Edvinas/Documents/InteractiveHelloWorld/main.cpp:2: In file included from main.cpp:2: C:/Users/Edvinas/Documents/InteractiveHelloWorld/mainwindow.h:24: error: expected unqualified-id before '{' token C:/Users/Edvinas/Documents/InteractiveHelloWorld/main.cpp:10: error: expected unqualified-id at end of input |
All times are GMT. The time now is 09:11. |
vBulletin® Version 3.8.8