Results 1 to 7 of 7

Thread: Qt codecompletion etc. without a project.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2010
    Location
    Norway
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt codecompletion etc. without a project.

    Is it possible to get qt code completion in qt creator without working in a project.

    1. Open qt-creator.
    2. drag a cpp file into the editor.
    3. req.1 - Verify that you have F1 (help) for all Qxxx
    4. req.2 - Verify that you have completion for all Qxxx

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt codecompletion etc. without a project.

    As far as I remember code works based on files included by the current file so all you have to do is to add #include statements to your code.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Sep 2010
    Location
    Norway
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt codecompletion etc. without a project.

    It doesn't work for me. I don't get Qt code completion, but in some cases i get completion between files i drag in and are listed in "Open Documents". Are there a setting or syntax I'm missing?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt codecompletion etc. without a project.

    Quote Originally Posted by mrandreas View Post
    It doesn't work for me. I don't get Qt code completion, but in some cases i get completion between files i drag in and are listed in "Open Documents". Are there a setting or syntax I'm missing?
    Are the include files from Qt underlined with green and when you hover over them Creator says it can't find the respective file?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qt project management - bigger project
    By Peppy in forum Qt Programming
    Replies: 11
    Last Post: 24th December 2010, 13:50
  2. cannot run the project
    By kazal in forum Qwt
    Replies: 0
    Last Post: 24th May 2010, 08:18
  3. Replies: 1
    Last Post: 3rd December 2009, 23:34
  4. Bug in my project
    By phast in forum Qt Programming
    Replies: 1
    Last Post: 21st December 2008, 07:10
  5. Project generation on linux from QT Project
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 11th December 2006, 09:43

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
  •  
Qt is a trademark of The Qt Company.