Results 1 to 5 of 5

Thread: How to make the text scroll

  1. #1
    Join Date
    May 2015
    Posts
    30
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to make the text scroll

    Dear Experts,

    Kindly could you help me out to make the text scrolling. May be text have the 20 characters, instead giving so much width to display (since there is a size constraints), I just wanted to give only less width where only can show some 10 characters at a time, but rest of the characters should scroll.

    I would really appreciated your help and suggestions on this. Thanks in advance

    Regards,
    Maiya

    Am using Linux os and 4.7.2 Qt version.

  2. #2
    Join Date
    Jun 2015
    Location
    India
    Posts
    185
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to make the text scroll

    what do you mean by scrolling text /

    are you using QTextEdit or QLineEdit or something else ?

    If you are using either of the above scrolling is a default behavior.

    Thanks.
    Thanks :-)

  3. #3
    Join Date
    May 2015
    Posts
    30
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to make the text scroll

    I Mean -- Imagine a label with a fixed size containing a single-line text string which is too wide to fit inside the label. I need to design a widget which shows the complete text string by scrolling the text string from right to left - similar to a horizontal moving banner.

    Will this QLineEdit, and QTextEdit help me to do it?

    Regards,
    Maiya

  4. #4
    Join Date
    Jun 2015
    Location
    India
    Posts
    185
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to make the text scroll

    Here I have seen similar posts, may be they could help you well.

    http://www.qtcentre.org/threads/3005...Text-Scrolling

    http://www.qtcentre.org/threads/4556...el-%28again%29

    BTW: think about display short description on QLabel & display complete text as ToolTip.
    Thanks :-)

  5. #5

    Default Re: How to make the text scroll

    Thanks this helped me a lot!

Similar Threads

  1. Scroll to the text on the page
    By ejoshva in forum Newbie
    Replies: 0
    Last Post: 21st May 2015, 07:09
  2. Replies: 0
    Last Post: 30th January 2014, 13:35
  3. qwt plot to scroll data text file
    By vanduongbk in forum Qwt
    Replies: 0
    Last Post: 1st November 2013, 04:18
  4. How to scroll text in Qtablewidget item
    By pradeepreddyg95 in forum Qt Programming
    Replies: 3
    Last Post: 26th September 2012, 20:35
  5. About Box - Scroll Plain Text
    By sheeeng in forum Newbie
    Replies: 2
    Last Post: 20th October 2009, 09:04

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.