Results 1 to 3 of 3

Thread: About QLineEdit

  1. #1
    Join Date
    Mar 2006
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default About QLineEdit

    Hi

    I want to Disable Scroll Bars in QLineEdit, How To Do it. i have set SetMaxLength with value. I should enter the characters length , where QLineEdit control has maximum width and maximum height. Scroll bars should not come when excedding maxlength.

    Warm Regards
    Vijay

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

    Default Re: About QLineEdit

    QLineEdit doesn't have scrollbars. Do you mean QTextEdit? You can disable the scrollbars through set(Horizontal|Vertical)ScrollBarPolicy() methods.

    BTW. Try to use more descriptive thread titles next time, please.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: About QLineEdit

    QLineEdit does not even have scroll bars. But are you talking about QTextEdit? If so, try


    Edit: Oops, I bit late answer..
    J-P Nurmi

Similar Threads

  1. background color of QLineEdit
    By Seema Rao in forum Qt Programming
    Replies: 4
    Last Post: 11th December 2006, 20:40
  2. Replies: 1
    Last Post: 14th June 2006, 08:12
  3. QLineEdit & keyPressEvent(QKeyEvent *)
    By munna in forum Newbie
    Replies: 7
    Last Post: 29th March 2006, 14:50
  4. QLineEdit
    By therealjag in forum Newbie
    Replies: 1
    Last Post: 23rd February 2006, 17:45
  5. a box around QLineEdit?
    By GreyGeek in forum Qt Tools
    Replies: 13
    Last Post: 8th February 2006, 15:40

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.