Active Topics

 

Showing results 1 to 10 of 10 @ 0.36 seconds. Search: Posts Made By: tdesws
Forum: Development 2010-03-24, 14:56
Replies: 65
Views: 26,435
Posted By nath
Re: I'm learning with Qt and I have a question

Your curly brackets aren't matching. You can easily see that in the main.cpp where you have two closing ones right after each other.
Forum: Development 2010-03-24, 14:14
Replies: 65
Views: 26,435
Posted By krk969
Re: I'm learning with Qt and I have a question

change the above to
....
private:
Ui::MainWindow *ui;
// member functions
void MainWindow::initMyWordList()
// member variables
static int _clickCounter;
...
Forum: Development 2010-03-24, 14:13
Replies: 65
Views: 26,435
Posted By VDVsx
Re: I'm learning with Qt and I have a question

Removes the brackets in line 24 and 30.
Forum: Development 2010-03-22, 18:21
Replies: 65
Views: 26,435
Posted By krk969
Re: I'm learning with Qt and I have a question

put all your words in a file(example /home/user/wordlist) , 1 word per line.

mainwindow.h

class MainWindow
{
...
private: // member functions
void MainWindow::initMyWordList();...
Forum: Development 2010-03-22, 17:58
Replies: 65
Views: 26,435
Posted By krk969
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 ?
Forum: Development 2010-03-22, 15:05
Replies: 65
Views: 26,435
Posted By krk969
Re: I'm learning with Qt and I have a question

QT is mainly a graphical toolkit that will allow you to create cross platform code with graphical interfaces, you can use it for backend server coding also, if you like :D
QT is based on C++, so if...
Forum: Development 2010-03-22, 15:01
Replies: 65
Views: 26,435
Posted By krk969
Re: I'm learning with Qt and I have a question

mainwindow.h

class MainWindow
{
........

private:
static int _clickCounter;
};
Forum: Development 2010-03-21, 21:59
Replies: 65
Views: 26,435
Posted By Sasler
Re: I'm learning with Qt and I have a question

If I understood you correctly, you could try this:


void MainWindow::on_Button_clicked()
{
ui->label->setText("text2 text2 text2");
}


Assuming that on_Button_clicked() is called...
Forum: Development 2010-03-21, 20:49
Replies: 65
Views: 26,435
Posted By TNiga
Re: I'm learning with Qt and I have a question

In case you haven't already found out (since you are so new to Qt): Qt has very good documentation with nice examples here http://doc.trolltech.com/4.5/index.html

For example:...
Forum: Development 2010-03-21, 20:32
Replies: 65
Views: 26,435
Posted By bousch
Re: I'm learning with Qt and I have a question

Are you using python or c++? If the control displaying "TEXT TEXT TEXT" in your example is a simple label and you are using c++ you should use the label->setText(const QString &text) method.

Your...
Showing results 1 to 10 of 10



 
Forum Jump

All times are GMT. The time now is 09:05.