Results 1 to 10 of 10

Thread: scrolling text

  1. #1
    Join Date
    Mar 2011
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default scrolling text

    i would like to make a simple label as a scrolling text but i need a code can you help me plz ?

  2. #2
    Join Date
    Sep 2008
    Location
    Poland
    Posts
    80
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows
    Thanks
    4
    Thanked 5 Times in 4 Posts

    Default Re: scrolling text

    Use QTextEdit with disabled text edition instead

  3. #3
    Join Date
    Mar 2011
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: scrolling text

    i didn't understand you cuz i'm amateur so how ?
    can you make code or screen shot plz

  4. #4
    Join Date
    Sep 2008
    Location
    Poland
    Posts
    80
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows
    Thanks
    4
    Thanked 5 Times in 4 Posts

    Default Re: scrolling text

    Read the Assistant about class QTextEdit-that'll be enough.

  5. #5
    Join Date
    Mar 2011
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: scrolling text

    it doesn't work
    Qt Code:
    1. void QTextEdit::ensureCursorVisible ()
    2. {
    3.  
    4.  
    5. }
    To copy to clipboard, switch view to plain text mode 

  6. #6
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: scrolling text

    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

  7. #7
    Join Date
    Mar 2011
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: scrolling text

    i just right this code
    Qt Code:
    1. 1.
    2. void QTextEdit::ensureCursorVisible ()
    3. 2.
    4. {
    5. 3.
    6.  
    7. 4.
    8.  
    9. 5.
    10. }
    To copy to clipboard, switch view to plain text mode 
    i don't know what i should writ in it .
    i'm not a pro in qt creator

  8. #8
    Join Date
    Sep 2008
    Location
    Poland
    Posts
    80
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows
    Thanks
    4
    Thanked 5 Times in 4 Posts

    Default Re: scrolling text

    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?

  9. #9
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    8
    Thanked 133 Times in 128 Posts

    Default Re: scrolling text

    if you want left-right scrolling may be take a look at http://www.qtcentre.org/threads/24712-Marquee-QLabel

  10. #10
    Join Date
    Mar 2011
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: scrolling text

    yes just a simple text as exemple " this is a test" move from from left to right just it

Similar Threads

  1. Smooth Text Scrolling
    By Jones in forum Newbie
    Replies: 11
    Last Post: 19th November 2011, 19:40
  2. Smooth text scrolling
    By francesco.frankie in forum Newbie
    Replies: 9
    Last Post: 29th November 2010, 23:16
  3. Replies: 1
    Last Post: 12th August 2010, 15:42
  4. Replies: 2
    Last Post: 14th May 2010, 09:53
  5. automatic scrolling text edit
    By Vash5556 in forum Newbie
    Replies: 2
    Last Post: 19th March 2007, 19:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.