Qt 4.7 using Eclipse on windows? - c++

Has anyone had luck getting Qt Eclipse integration working on windows?
Here is what I did, to no avail:
Download latest Qt SDK, and install.
Download the Eclipse for C/C++ developers bundle, and install.
Download latest Qt/eclipse integration. (Not so new... http://qt.nokia.com/developer/eclipse-integration/ )
At this point I can create a "qt project" in Eclipse, but the build buttons are greyed out. (Started Eclipse both normally and via the Qt/Mingw shortcut)
Any ideas?

So, it turns out that Qt is no longer really putting any effort to support Eclipse. They want to push Qt Creator.
The plugin has not been updated for a long time.

Have you added your QT version to Eclipse?
Windows->Preferences->Qt

Related

Adding MinGW compiler to QT 5.6.0 Windows

I am a Total Noob at this and I know nearly nothing about this.
I just started using Qt Creator for windows 5.6.0 and While I wrote my first "Hello World" code..
I was asked to add a kit. I searched the net for similar issues and it said that I needed a compiler for Qt. Thus, I installed MinGW from QtForums
now when go to Tools->Options->Build&Run->compiler, I can not understand how do I add it to the list.
Please help me through it?
To just get started the easiest thing to do would be to go here:
Link to Qt downloads page
Scroll down and select Qt 5.6.0 for Windows 32-bit (MinGW 4.9.2, 1.0 GB) this will download the installer (its about 1 GB). Run it and choose all the default options. Then you will have Qt 5.6 with mingw and Qt Creator all setup ready to go.
Note: Before you start that its probably best to delete your current version - if you are not attached to it in any way :)
If you want to fix your current setup, then it might be longer-winded to find out what you are missing for mingw. For example you need the mingw qmake file that would be located here (using default install options):
C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\qmake.exe
to create your "Qt Version" part of the kit. And the actual mingw compiler, which is located here (using default install options):
C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\g++.exe
to create your compiler. Once you have both of these then you can put them together to create your new kit.
But to just add a compiler all you need to do is:
Click compilers tab
Click add and select mingw
A new compiler is added, click it
You will see some options below, add your compiler executable path in (like the one above for example).
And you are done - there are some other options, but you probably don't need to use them.
note my paths are for qt 5.5.1 (obviously) so slightly different to 5.6 :)
update
Its all been moved around! - here are the new paths:
offline-installers
old-version-archives
Well. I was unable to provide the data before but it all makes more sense now.
What I had installed was Qt for windows 64-bit (vs 2013, 836mb).
Hence, Instead of MinGW, I have msvc2013_64. It does have qmake.exe but doesnt have g++.exe. And I had downloaded it separately.
You're answer was very helpful.
Added MinGW packages to QT installation with the QT Maintenance Tool (C:\Qt\MaintenanceTool.exe)
It allows to add/remove components via the qt repositories. So no need for re-installation.

Cannot Connect to QML Emluation Layer (QML Puppet)

I just made the fresh QT installation and when I create empty QT Quick project or open any of existing QT Quick examples, my QML designer doesn't work. It shows "Cannot Connect to QML Emluation Layer (QML Puppet)" error.
I tried to reinstall QT, reboot, installed additional QT kit versions and tried to switch between 32bit/64bit default/opengl versions of the kit and nothing seems to work for me. I was able to successfully run the designer ONCE, and after I closed it and tried to re-open the file it stopped working again. I also tried to search, but didn't find any solution. I also tried to ask on QT forums, but didn't receive any answer.
My system is Windows 7, with Visual Studio 2013 installed. Thanks for your help!
Do this:
Go to QT Creator Preferences (Menu Bar | Tools > Options)
Select QT Quick Option (Options headings - left side).
Click the QT Quick Designer tab.
Under QML Emulation Layer grouping, select "Use QML Emulation Layer that is built with selected QT".
No need to choose a path,
And click OK.
It will rebuild your designer view.
Worked for me.
Possibly related to this bug. Just try this workaround: in the Options
dialog go to “Qt Quick / Qt Quick Designer / QML Emulation Layer” and
disable the checkbox “Always use the QML emulation layer prived by Qt
Creator”. That will cause a rebuild of the emulation layer with the
used Qt version in the current project. That layer does not crash.
This workaround only works with Desktop Kits. – BaCaRoZzo Mar 30
This worked for me on Ubuntu 14.04.
Go to Tools->Options->Qt Quick.
In QML Emulation Layer, make sure
the path is correct for "Use fallback QML emulation layer".
Since I was reinstalling Qt, the new installation had the old path of Qt which gave rise to this issue.
If failed anyway, use "Qt Design studio" instead and build it again, it worked for me.
I recommend to uninstall Qt first and then reinstall it with "Qt Design Studio" box checked.
On Ubuntu 20 LTS, you can run it on: /home/Qt/Tools/QtDesignStudio/bin/qtdesignstudio
Good luck.

"No debugger set up" in Qt 5.4 [duplicate]

This question already has an answer here:
Qt Creator 5 - No debugger set up
(1 answer)
Closed 8 years ago.
I have installed Qt Creator (Qt 5.4). When I debug my Qt project it wouldn't and says 'No debugger set up'.
Now I already have VC-2010 on my computer and I obviously have debugger (I verified all works) but do I have to download another debugger for Qt Creator? How do I configure the debugger to work?
It should detect it automatically.
Try to:
close QtCreator
Backup and Delete (or just rename) C:\Users\<username>\AppData\Roaming\QtProject folder.
start QtCreator again
it should detect CDB in C:\Program Files\Debugging Tools for Windows 64-bit\cdb.exe or something like this
Alternatively, you could add it manually, by clicking Add button.
Additionaly:
check that you have MSVC2010 Qt package installed
why do you use 5 years old Visual Studio 2010, when the latest version is 2013 and it has free "Pro" version (Community edition) and it's has much better compiler and GUI?
Thanks guys, I got clues from the links and figured it out but I am going to post the answer for what I did to resolve the issue. It is a little more complicated in the linked posts.
I thought I was all set since I had VC2010 installed but not so. It turns out I also had to install Windows SDK and since I am using widows 7, that was "Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1"
This alone fixed it and didn't have to do anything else.
** Good to know **
Another thing I learned was even though I had VS2010-SP1 installed, apparently there is VC2010-compiler-SP1 as well. It was that when I was installing let me k now that I need to install SDK first.
After I installed SDK, there is 'Windows SDK Configure tool' menu option that appeared in my windows start menu but I didn't run it and restarted Qt Creator, and the debugger was already working so I didn't have to run the configure too.!
When I started Qt Creator it bring up this dialog press Ok and all done.
Just download and install this one http://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-windows-x86-mingw491_opengl-5.4.0.exe and every thing is setup for you

How to get Qt working on the blackberry playbook

I am completely frustrated because I have been trying to install Qt on Blackberry Playbook for over a month now. I have followed every single tutorial out there (so much that every time I google Qt and playbook, all links are purple instead of blue). I have downloaded Qt-everywhere source code and tried to compile it using the flags found here, but it tells me that it cannot install opengl, sqlite etc, so I use the --continue option with ./configure and that too crashes saying that it can't find qcc.
I have noticed a Qt library directory when browsing incudes in the qnx IDE, in the project explorer. The thing is when i write a Qt application it can't find the headers.
So Please Help, anyone who has done this in the RECENT past . ps. i am new to cross compiling on linux systems.
Probably quite late to say, but I have created a BlackBerry Native Plugin for Visual Studio 2015, where you can develop apps for BlackBerry PlayBook and Qt in particular.
Simply create new project "Other Languages / BlackBerry Projects / Qt / PlayBook - Qt4 Core Application" and you are ready to go. It downloads all required libraries via NuGet during first build.

Missing compiler in Qt Creator

I recently installed Qt creator 2.8.1 online on my win Vista 32 bit machine.
To start with Qt I wrote simple pushbutton code. And when I tried to build it shows error message saying
Qt Creator needs compiler set up to build. Configure a compiler in kit
option
I tried with that Kit option din't work. what do I do?
PS Thank You
Simply refer to MINGW online install available at Qt's official downloads( http://download.qt-project.org/). You need not do anything. It will automatically detect an kits and will compile successfully.