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. Who can save my code-completion?
QtWS25 Last Chance

Who can save my code-completion?

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 1.4k Views
  • 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.
  • B Offline
    B Offline
    brsfjzzfxl
    wrote on last edited by
    #1

    Hey,Guy. I am getting into a trouble now.

    I hava set the completethis shortcut.So When I create a target as follow:

    QLabel* label = new QLabel("Help me!");

    When I input la and use the completethis shortcut, la becomes label.

    There is no problem here.

    But when I input label-> and use the completethis shortcut,nothing happened!

    I've looked up a lot of information and sloved nothing.

    Who comes to save the poor Chinese ?

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @#include <QLabel>@

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • B Offline
        B Offline
        brsfjzzfxl
        wrote on last edited by
        #3

        @#include <QApplication>
        #include <QLabel> // Hover the <QLabel> and It prompts
        //No such file or directory

        int main(int argc , char* argv[])
        {
        QApplication app(argc,argv);
        QLabel* label = new QLabel(
        "<h2>Hello</h2>"
        "<a >oschina</a>"
        "<h3><font color=red>Qt</font></h3>");
        label->setOpenExternalLinks(true);
        label->show();
        return app.exec();
        }
        @
        Thanks your answer.But I think I should provide more information.
        There is no error occured in above-mentioned code. But when my mouse
        hovers on the code #include <QLabel>,it prompts No such file or directory.
        But I can debug with no error.And I'am so sorry that upload a picture is so
        diff.
        What's more , when I try to press F4 so I can go to the QLabel.h,I failed once more.So I think there is some matter with my environment variable,
        But I don't know how to deal with it.Thanks, Amen.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          brsfjzzfxl
          wrote on last edited by
          #4

          [quote author="brsfjzzfxl" date="1394442702"]@#include <QApplication>
          #include <QLabel> // Hover the <QLabel> and It prompts
          //No such file or directory

          int main(int argc , char* argv[])
          {
          QApplication app(argc,argv);
          QLabel* label = new QLabel(
          "<h2>Hello</h2>"
          "<a >oschina</a>"
          "<h3><font color=red>Qt</font></h3>");
          label->setOpenExternalLinks(true);
          label->show();
          return app.exec();
          }
          @
          Thanks your answer.But I think I should provide more information.
          There is no error occured in above-mentioned code. But when my mouse
          hovers on the code #include <QLabel>,it prompts No such file or directory.
          But I can debug with no error.And I'am so sorry that upload a picture is so
          diff.
          What's more , when I try to press F4 so I can go to the QLabel.h,I failed once more.So I think there is some matter with my environment variable,
          But I don't know how to deal with it.Thanks, Amen.
          [/quote]

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andreyc
            wrote on last edited by
            #5

            Have you added widgets to CONFIG in your .pro file
            @
            CONFIG += widgets
            @

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              What version(s) of Qt did you install?

              [quote author="andreyc" date="1394477883"]Have you added widgets to CONFIG in your .pro file
              @
              CONFIG += widgets
              @[/quote]It should be "QT += widgets", not "CONFIG += widgets".

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andreyc
                wrote on last edited by
                #7

                Right.
                I should never publish without unit-testing. I should never publish without unit-testing.I should never publish without unit-testing.
                :-)

                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