Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Enhancing Qt Creator's autocomplete with acronyms and shorthand
Forum Updated to NodeBB v4.3 + New Features

Enhancing Qt Creator's autocomplete with acronyms and shorthand

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 3.7k 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    I notice there are plenty of Qt classes with absurdly long names, which is understandable and kind of unavoidable since the API is vast.

    I also notice a very useful feature to be missing in Qt Creator - the use of acronyms and shorthand, basically I would like to use the autocomplete in the following way:

    for QGraphicsScene - invoke autocomplete and type qgrsc
    for QGraphicsColorizeEffect - invoke autocomplete and type qgrcoef or coleff
    QGraphicsSceneContextMenuEvent - invoke autocomplete and type qgrsccomeev or contextmenu or conmenuev or whatever combinations of letters are contained in the class name

    ...and so on in that manner, I think you get the idea. It will add tremendously to Creator's autocomplete considering how long can some class names be in Qt. I have used this feature in VisualAssistX and just bothered to check if it is also present in Creator, but it doesn't seem to be.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      Type QGS, QGCE or QGSCME in Qt Creator and press CTRL + Space (or whatever you've set autocomplete to).

      Surprise ;-)

      1 Reply Last reply
      1
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        Ah yes, I see, but still this approach requires more intricate knowledge of the class name instead of just using fragments of the names. QGrScEv is resolved to QGraphicsSceneEvent as well.

        There doesn't seem to be any way to invoke all the names that contain the phrase "event" for example, unless the identifier begins with "event". Or is there?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          The problem is that such a fuzzy search is just too slow... You do not want to wait for a second till the popup appears, do you? The other issue is that we have lots of possible completions for generic terms like "event". Is a really long completion list really useful?

          Feel free to request features via "our bugtracker":http://bugreports.qt-project.org/ . We are looking at all of them:-)

          1 Reply Last reply
          0
          • ? This user is from outside of this forum
            ? This user is from outside of this forum
            Guest
            wrote on last edited by
            #5

            It works pretty fast with Qt in VS with VAX, probably at the cost of some extra memory usage I guess. Dare I say it is instantaneous.

            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