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. Auto populating virtual implementations
Forum Updated to NodeBB v4.3 + New Features

Auto populating virtual implementations

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 835 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.
  • Dan3460D Offline
    Dan3460D Offline
    Dan3460
    wrote on last edited by
    #1

    I have been re implementing some custom delegate classes some times as you typing the whole declaration shows and by <crl><enter> it is appended to the declaration, which is fantastic. But in the next line re implementing another function that declaration does not shows, with the first few letters of the function you get a small reminder of the whole declaration but cannot <ctr><enter> to bringing in. Is there a way to solve that?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Im not 100% sure what you see/what happens
      with the ctrl+enter when it works and when it do not.

      So just wanna to say you can insert virtual funcs another way
      alt text

      Just right click class name.

      1 Reply Last reply
      2
      • Dan3460D Offline
        Dan3460D Offline
        Dan3460
        wrote on last edited by Dan3460
        #3

        I'm reading my question and indeed is confusing. I try to explain further. I'm creating a class that have an inherited QStyleItemDelegate. On the header file under public as you type (for example: virtual QWidget *creat....) it shows the entire function, then if you press <ctr><enter>, you can paste the whole function on your definition. But in the very next line when typing the next function tom be re-implemented only a small remainder of what the function looks like shows up and <ctr><enter> does nothing.
        I didn't know about using the refactor at the class level, i think that solution works.
        Thanks very much.

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          I assume you mean this?
          alt text

          it would let me insert most functions by typing enough so it suggest it.

          1 Reply Last reply
          1
          • Dan3460D Offline
            Dan3460D Offline
            Dan3460
            wrote on last edited by
            #5

            It seems to me, that if you are in the header and start typing all the functions that you are re implementing it gives you the option to autocomplete all the functions. But if you type the first function, then go to the implementation, type some code there and then came back to re-implement the second function the option to autocomplete does not work. I have not tested thoroughly could by just a coincidence. Your suggestion about using the refactor at the class level works wonderfully. Thanks

            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