Results 1 to 2 of 2

Thread: Completer with existing ui form

  1. #1
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Completer with existing ui form

    I'm studding an demo called "Customer Completer." That example shows how to add a completer to TextEdit Widget added through code not ui form. I have a project where i use an UI widget form that contain QTextEdit item.

    How do I implement a text completer similar with "Custom Completer" only where I have existing QTextEdit item on UI widget form?

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Completer with existing ui form

    The QTextEdit doesn't seem to have a possibility to relate to QCompleter. For QTextEdit you probably have to do completion yourself. Try overloading the QTextEdit class. QCompleter really seems to be for single line texts.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. Pass variable from a form to another form
    By dark1988 in forum Qt Programming
    Replies: 5
    Last Post: 8th February 2011, 18:19
  2. Replies: 1
    Last Post: 19th March 2009, 09:41
  3. Help me to load one form over another form PushButton
    By wagmare in forum Qt Programming
    Replies: 7
    Last Post: 26th November 2008, 16:11
  4. visible main form?
    By triperzonak in forum Newbie
    Replies: 1
    Last Post: 12th June 2008, 09:00
  5. Calling a new form from current form
    By webgenius in forum Qt Programming
    Replies: 7
    Last Post: 8th April 2007, 19:50

Tags for this Thread

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.