![]() |
I'm learning with Qt and I have a question
Hello, I'm trying to learn to code something with Qt by myself, so now I have a problem:
http://edvinas.edas.lt/images/sth7c8gwsnuvm1s237.png This is what I've made, when i press next it just cleares that 'TEXT TEXT TEXT', i want to know how to make that change to 'TEXT2 TEXT2 TEXT2' and later change that to 'Whatever other text' and so on to change it to other text. Sorry my english is very bad. |
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 english is fine by the way... |
Re: I'm learning with Qt and I have a question
Well i did everything using that mainwindow.ui not coding :| I've started learning with that Qt only like 5hours ago..
And yea it's a label there |
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: http://doc.trolltech.com/4.5/qlabel.html |
Re: I'm learning with Qt and I have a question
omg, I didn't think that so much of everything is to make text change (I didn't make it to work yet) :O
BTW. Can u gudie me what i have to change (to make text text text to text2 text2 text2 and later to something else and so on...) and why? I would be very grateful, here's my current script: Code:
#include "mainwindow.h" |
Re: I'm learning with Qt and I have a question
Quote:
Code:
void MainWindow::on_Button_clicked() Hope this helps :) |
Re: I'm learning with Qt and I have a question
Quote:
|
Re: I'm learning with Qt and I have a question
Quote:
|
Re: I'm learning with Qt and I have a question
erm.. how do I do that?
|
Re: I'm learning with Qt and I have a question
this is telling me that QT is like a Programming language or something to do with code, strings and etc....
|
All times are GMT. The time now is 02:44. |
vBulletin® Version 3.8.8