Results 1 to 4 of 4

Thread: How to scroll text in Qtablewidget item

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Location
    Bangalore
    Posts
    52
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 9 Times in 9 Posts

    Default How to scroll text in Qtablewidget item

    hi every body,
    I want to scroll text inside the Qtablewidget cell is there any method to do this ...

    Thanks in advance .

  2. #2
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 47 Times in 43 Posts

    Thumbs up Re: How to scroll text in Qtablewidget item

    hi,
    you can set any QWidget inside QTableWidget.
    use following code
    Qt Code:
    1. setCellWidget(index, new QTextEdit);
    To copy to clipboard, switch view to plain text mode 
    QTextEdit will take care of scrolling

    hope it helps,
    Bala

  3. The following user says thank you to BalaQT for this useful post:

    pradeepreddyg95 (26th September 2012)

  4. #3
    Join Date
    Oct 2010
    Location
    Bangalore
    Posts
    52
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 9 Times in 9 Posts

    Default Re: How to scroll text in Qtablewidget item

    hi bala i want the text should move from left to right or right to left is there any method to achieve that .

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to scroll text in Qtablewidget item

    Provide a custom delegate that will animate the item
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Item In QTableWidget
    By Vidhya in forum Qt Programming
    Replies: 3
    Last Post: 26th July 2012, 10:09
  2. QTableWidget can't scroll automaticlly
    By nthung in forum Newbie
    Replies: 0
    Last Post: 18th November 2011, 15:55
  3. Replies: 2
    Last Post: 27th June 2011, 18:59
  4. About Box - Scroll Plain Text
    By sheeeng in forum Newbie
    Replies: 2
    Last Post: 20th October 2009, 09:04
  5. How to disable vertical scroll bar in QTableWidget
    By grsandeep85 in forum Qt Programming
    Replies: 2
    Last Post: 14th October 2009, 11:07

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.