Results 1 to 5 of 5

Thread: Text shifts when control appears...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2007
    Posts
    74
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Text shifts when control appears...

    Hi,

    After spending way too much time on this annoying little
    problem I've decided to go to the experts..

    In Designer I have created this small custom control.
    It is a lineEdit with a left and right arrow (Pushbutton) at either
    end. Normally the arrows are hidden.

    When the control gets focus the arrows appear and clicking
    one results in the linedit text changing.

    This works fine. However if the text is sufficiently long then
    when the arrows appear the text shifts slightly to the left.

    I either want to keep the text from shifting, or perhaps
    there is a better design where the arrows appear translucently
    over the ends of the linedit without effecting the size of the
    edit control?

    Thank you!

    Mark
    Attached Images Attached Images
    Attached Files Attached Files

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. Editable text in QGraphicsView
    By wysota in forum Qt Programming
    Replies: 8
    Last Post: 24th February 2007, 15:30

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.