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-16-2003, 02:02 PM   #1
kusio
LQ Newbie
 
Registered: Apr 2003
Posts: 5

Rep: Reputation: 0
For the QT Programmers


void Form1::timer()
{

int i ;
QTimer *timer = new QTimer(this);

for(i = 0;i<=10;i++){

timer->start(1000, TRUE);
connect(timer, SIGNAL(timeout()), lcd, SLOT(display(i)));


}
}

This is a method defined by me, and It has function to show in the LCDNumber object named lcd, the countdown from 1-10. Each 1 second the value to be changed incrased by one. It says that there is no SLOT for the QLCDNumber class named display, and I know it, but I just cant find solution for the problem. I am giving you only this piece of code, hopefully will find someone to help me, cause I need your help.

P.S.
I'm I supposed to use QTimerEvent class, if so, how?

Please explain practical...
 
Old 04-16-2003, 02:11 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Stop asking the same thing.
 
Old 04-16-2003, 02:40 PM   #3
kusio
LQ Newbie
 
Registered: Apr 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Man I said that I am desperate, I don't have answer there, so I am looking for answer...
 
Old 04-16-2003, 03:00 PM   #4
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
How about trying to understand what you
are doing first, like in reading up on the
SIGNAL/SLOT concept?

Or looking at the QT tutorial, namely the
files that are explicitly listed in the documentation?

Not desperate enough to read more than five lines
of code others wrote, obviously...

Cheers,
Tink
 
  


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
Question for programmers who use Vi(m) lowpro2k3 Programming 3 03-25-2005 06:56 PM
to all php programmers hokagi_ninja Linux - Newbie 1 01-17-2005 07:28 AM
For all Programmers jazee Programming 13 10-14-2004 11:01 PM
Ok, a suggestion to programmers. maillion Programming 1 02-10-2004 10:41 PM
Pascal programmers? ascii2k Programming 21 09-27-2003 03:42 AM

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

All times are GMT -5. The time now is 04:01 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