Results 1 to 3 of 3

Thread: char arrays to "multiline editor"

  1. #1
    Join Date
    Aug 2007
    Posts
    274
    Thanks
    27
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default char arrays to "multiline editor"

    I have a char array of "some size" and i want my user to change its values thru a GUI(widget). I was looking for like Q3MultiLineEdit equivalent in Qt4 of some sort . I would like to limit the input to "some size" so that i don't have worry about memory pointers on the loose when i convert my QString to my char arrays,

    Is there such a thing that i can limit the number of inputs in QLineEdit or QTextBrowser?

    baray98

  2. #2
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Thanks
    55
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: char arrays to "multiline editor"

    You could try QLineEdit::setMaxLength(n) to set it to a max of n characters.

  3. #3
    Join Date
    Aug 2007
    Posts
    274
    Thanks
    27
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: char arrays to "multiline editor"

    I saw that but I want to give a Multiline look a.k.a QTextBrowser

Similar Threads

  1. unable to save QCStrings properly in a buffer
    By nass in forum Qt Programming
    Replies: 13
    Last Post: 15th November 2006, 20:49

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.