Results 1 to 2 of 2

Thread: QScrollBar question

  1. #1
    Join Date
    Dec 2014
    Posts
    29
    Thanks
    12
    Qt products
    Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default QScrollBar question

    Hello

    is there any way to get self.plainTextEdit.verticalScrollBar() #current value?

    because I'm trying to sync plainTextEdit with textEdit
    self.plainTextEdit.verticalScrollBar().valueChange d.connect(self.textEdit.verticalScrollBar().setVal ue)

  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: QScrollBar question

    The scrollbar class has a value() method (inherited from QAbstractSlider)

    Cheers,
    _

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

    vuletic (13th March 2015)

Similar Threads

  1. Steps on QScrollBar
    By Cucus in forum Qt Tools
    Replies: 1
    Last Post: 20th June 2011, 23:27
  2. Events on QScrollBar
    By xiongxiongchuan in forum Qt Programming
    Replies: 7
    Last Post: 16th June 2010, 10:32
  3. customizing QScrollbar
    By MarkoSan in forum Qt Programming
    Replies: 7
    Last Post: 15th October 2009, 18:51
  4. QScrollbar color
    By ntp in forum Qt Programming
    Replies: 0
    Last Post: 28th August 2008, 17:59
  5. qscrollbar styling
    By 20khz in forum Qt Programming
    Replies: 0
    Last Post: 5th May 2008, 14:17

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.