Results 1 to 3 of 3

Thread: QTextEdit Slider

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default QTextEdit Slider

    Hi everyone,

    Sometimes I get the following behaviour for qtextedit's slider.

    textedit_slider.png

    This is something I face when I deal with qcombobox.

    One reason is incorrect or missing implementation of style sheet. But I suspect inheritance as well. Any ideas?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QTextEdit Slider

    please post the code that is creating AND initializing this QTextEdit.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QTextEdit Slider

    The problem solved.

    I only styled QScrollar::handle subcontrol at first and it didn't work.

    Then I styled all elements of QScrollbar including handle, add-page, sub-page, down-arrow, up arrow etc. and it worked!

    Thank for your interest.

Similar Threads

  1. how to set markers below a slider in qt
    By qt_user in forum Qt Programming
    Replies: 1
    Last Post: 5th August 2010, 07:02
  2. help on my slider
    By newb in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2010, 15:36
  3. custom slider
    By weixj2003ld in forum Qt Programming
    Replies: 5
    Last Post: 23rd March 2010, 09:58
  4. Replies: 2
    Last Post: 21st March 2010, 09:01
  5. get slider value
    By eric in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2007, 19:47

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.