View Full Version : scrolling text
dousdou
3rd May 2011, 15:34
i would like to make a simple label as a scrolling text but i need a code can you help me plz ?
MasterBLB
3rd May 2011, 16:16
Use QTextEdit with disabled text edition instead
dousdou
3rd May 2011, 16:40
i didn't understand you cuz i'm amateur :)so how ?
can you make code or screen shot plz
MasterBLB
3rd May 2011, 16:45
Read the Assistant about class QTextEdit-that'll be enough.
dousdou
3rd May 2011, 17:00
it doesn't work
void QTextEdit::ensureCursorVisible ()
{
}
http://img4.mediafire.com/3c6ed84f2c62598385789d6135b3c9ee54db0f86d6facf6da2 a7b9a5f7549d004g.jpg
squidge
3rd May 2011, 18:42
So what code have you done so far and which part doesn't work? Paste your code and point to the part that doesn't work.
"It doesn't work" isn't very descriptive
dousdou
3rd May 2011, 20:46
i just right this code
1.
void QTextEdit::ensureCursorVisible ()
2.
{
3.
4.
5.
}
i don't know what i should writ in it .
i'm not a pro in qt creator ;)
MasterBLB
3rd May 2011, 21:03
Let's back to the beginning-what you need to archieve?
As far as I can understand is a simple text label with large text that's may be scrolled,right?
if you want left-right scrolling may be take a look at http://www.qtcentre.org/threads/24712-Marquee-QLabel
dousdou
5th May 2011, 14:17
yes just a simple text as exemple " this is a test" move from from left to right just it :)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.