LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2003, 05:42 PM   #1
kusio
LQ Newbie
 
Registered: Apr 2003
Posts: 5

Rep: Reputation: 0
QT's QTimer


1st
There are some things that I don't understand for the QTimer class for QT. What the method timerId() is used for? It returnes the Id of the timer, but what is that ID.

2nd
And can somebody explain to me how the algorythm goes for the following program: as the timer goes by, in the widget "lineEdit1" to be written the countdown of the timer..example: The timer to be set to go from 1000-10000, and after activating with a pushButton, in the lineEdit1 to write the seconds from 1-10, as the timer goes to the timeout.

I just can't find the code...

Please help me
 
Old 04-15-2003, 06:14 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
1st
There are some things that I don't understand for the QTimer class for QT. What the method timerId() is used for? It returnes the Id of the timer, but what is that ID.
int QTimer::timerId () const
Returns the ID of the timer if the timer is running; otherwise returns -1.

Quote:
2nd:
I don't understand the question, or what you are
trying to achieve.


Cheers,
Tink
 
Old 04-15-2003, 06:27 PM   #3
kusio
LQ Newbie
 
Registered: Apr 2003
Posts: 5

Original Poster
Rep: Reputation: 0
I understand that it turnes the timer's ID, but what timer ID is?

And what I am trying to achive is:

to create a timer to goes from 0 - 10 000 ms (0-10 sec), and as the timer timesout, in a LineEdit widget the value of the secs to be written, example: countdown from 0 -10
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dcgui-qt's strange behavior harken Linux - Software 2 02-24-2005 02:10 PM
I am at Qt's mercy. Elomis Linux - Software 9 01-06-2005 06:40 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration