Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Writing model for QCompleater
Forum Updated to NodeBB v4.3 + New Features

Writing model for QCompleater

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maxim.prishchepa
    wrote on last edited by
    #1

    Hi All!
    Want write a model for QCompleater which make possible compleate pair key="word",
    need write first char for key, and compleater give a tip, then user write symbol ' = ', and automatical completing to ="" and cursor set at the middle of the quotation mark, then user write first chars of some value, and compleater give a tip again.

    pairs key="word" may be more than one...

    *like mini IntelliSense in VS ;)

    I try write model based on QStandardModel, but can't understand how compleater ask a model for tips :(

    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on last edited by
      #2

      There is a "wiki":http://www.developer.nokia.com/Community/Wiki/How_to_use_QCompleter_in_Qt .


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maxim.prishchepa
        wrote on last edited by
        #3

        [quote author="Rahul Das" date="1334040862"]There is a "wiki":http://www.developer.nokia.com/Community/Wiki/How_to_use_QCompleter_in_Qt .[/quote]

        very wonderful example BUT! work only for first one word, and i need tips for all of typing words....

        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved