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. Run Qt in Eclipse??!
Forum Updated to NodeBB v4.3 + New Features

Run Qt in Eclipse??!

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 4 Posters 5.0k 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.
  • P Offline
    P Offline
    Peggy
    wrote on last edited by
    #1

    Hello everyone,

    I wrote a program with Qt Creator which works fine, now I want to run and test it in eclipse as well. The problem is when I give the project name and application path in Run Configuration I got this error:
    "The project specified in the launch configuration is not a C/C++ one."
    But actually it is c++ and application I give is main.cpp.

    I also would like to have a test class, like in java which is junit, to test the methodes and classes. But I don't know how to write it for Qt Project!!

    I am looking for your suggestions and solutions:)

    Peggy

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

      I can not help with eclipse, but for testing you can check out QtTest in help mode of Qt Creator for testing.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vincegata
        wrote on last edited by
        #3

        Qt Creator and Eclipse use own (and very different) project files, they are not interchangeable. You will have to create an empty C++ project in Eclipse and add all your source files into it.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          Qt can be set up on "Carbide.C++":http://qt-project.org/wiki/Carbide.c IDE which is based on Eclipse. May be you can get some hints how to load a Qt Project into Eclipse from "this tutorial about Carbide.C++":http://www.developer.nokia.com/Community/Wiki/Qt_Tutorial_Lesson_1:_Installation#Setup_Qt_on_Carbide_C.2B.2B.

          Update: Or you can just read this article how to "Develop Qt C++ applications in Eclipse":http://labs.qt.nokia.com/2007/07/11/develop-qt-applications-in-eclipse/ :)

          http://anavi.org/

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Peggy
            wrote on last edited by
            #5

            Thank you all for the answers. I will read the tutorial and may ask again if I got some problem:)

            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