Results 1 to 2 of 2

Thread: Connect two different textedit scrollbars

  1. #1
    Join Date
    Apr 2014
    Posts
    7
    Thanks
    2
    Qt products
    Qt5

    Default Connect two different textedit scrollbars

    Hello,

    i just want to connect scrollbars of two different textedits. So when you scroll down on the first textedit, the same action should be proceeded on the second textedit and otherwise. I tried to connect both scrollbars, but i failed to determine sender and receiver (this->ui->textEdit ....).

    Is there any way how i can connect scrollbars to my textedits and connect both scrollbars with each other.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Connect two different textedit scrollbars

    QTextEdit is a QAbstractScrollArea and that class has accessors for its two scrollbars

    Cheers,
    _

Similar Threads

  1. scrollbars
    By giugio in forum Qt Programming
    Replies: 0
    Last Post: 12th November 2012, 18:33
  2. Scrollbars for QStackedLayout
    By JohannesMunk in forum Newbie
    Replies: 0
    Last Post: 6th December 2009, 16:50
  3. scrollbars and qgraphicsview
    By captiva in forum Qt Programming
    Replies: 13
    Last Post: 20th February 2009, 12:00
  4. QGraphicsView and scrollbars
    By godmodder in forum Qt Programming
    Replies: 1
    Last Post: 29th March 2008, 22:34
  5. How to get scrollbars in QTreeWidget
    By Arthur in forum Qt Programming
    Replies: 14
    Last Post: 5th May 2006, 21:51

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.