![]() |
Some questions regarding getting started with Qt Creator ..
Hey all .... I'm just hitting off with using Qt Creator to develop apps for my N900 using C++ ... I will use this thread to ask the issues which I face ..
My first question is: how can I know all the events that a specific control on a form supports ? (e.g. a button can support events such as clicks, hover over, etc ..) .. how do I get the full list of such events for each of the controls ? What are 'private slots' and doesn't Qt Creator automatically create all the even function declarations for you in the header file ? I'm asking this because I saw a Qt Creator getting started tutorial, and in that all event function declarations and definitions were manually written in .. |
Re: Some questions regarding getting started with Qt Creator ..
Quote:
also, if you right click on a control in a form and select "go to slots", you'll see all the signals that that control can emit, Quote:
Happy coding. |
Re: Some questions regarding getting started with Qt Creator ..
Ok thanks ... Qt Creator is proving to me a little bit more difficult than I had thought, but anyways ...
Next Question: How can I configure Qt Creator to run applications on my Windows 7 64bit computer directly (not even through the Maemo emulator) ..? Right now I have Qt Creator running apps directly on my N900, but I want to just have them run on my PC like any other application for the time being .. |
Re: Some questions regarding getting started with Qt Creator ..
Just install the Qt Desktop libraries from here. If you have Visual Studio 2008, use the VS2008 - otherwise the mingw version.
|
Re: Some questions regarding getting started with Qt Creator ..
Ok thanks, but how do I do the configuration in Qt Creator that the applications should be built and run for and on my PC .. ?
|
Re: Some questions regarding getting started with Qt Creator ..
Quote:
After doing that change to the "Projects" tab on the left (not the one in Settings). There you'll see a funny box at the top with a "+". Click on it to add a target. Target switching can be done by clicking on the mobile phone or computer icon at the bottom left of your QtCreator screen. |
Re: Some questions regarding getting started with Qt Creator ..
Ok I'm getting some errors here .. this is what I did ... I downloaded the minGW libraries, and then I started its install .. I was asked where to install the files, and I chose C:\Qt2\
I was also asked where is minGW installed .. I gave the C:\NokiaQtSDK\mingw\ directory ......... C:\NokiaQtSDK\ is where I had installed the Nokia Qt SDK BETA earlier on .. I then went to Tools --> Options --> Qt4 in Qt Creator and clicked on the '+' button on the right, and indicated the C:\Qt2\qmake\qmake.exe path for the qmake file .. Immediately, it said 'Qt version is not properly installed, please run make install' in the bottom section of this dialog box ... I closed it all, and went to 'Projects' in the left pane, clicked on the '+' button, and selected Desktop. The error reported here now is 'This Qt-Version is invalid', next to the 'Qt Version' list box (which has the newly added '4.6.2' entry) Now when I try to build a project for the Desktop target, I get the following compiler error: Qt version 4.6.2 is invalid. Set valid Qt Version in Tools/Options Qt version is not properly installed, please run make install Error while building project pixmap (target: Desktop) When executing build step 'qmake' |
Re: Some questions regarding getting started with Qt Creator ..
Wherever you installed Qt, qmake is in "<QtDir>/bin/qmake.exe". If you choose one from another location this might fail.
If this was just a typo in the forums, reinstall the Qt desktop version and install it with its own mingw. (this should work I think. Sadly I'm using the visual studio compiler) |
Re: Some questions regarding getting started with Qt Creator ..
Thanks ! Okay that solved the first two errors ... However, I'm still getting the following error when I try to build or run:
Could not find make command: make in the build environment Error while building project pixmap (target: Desktop) When executing build step 'Make' My settings are as follows: http://img153.imageshack.us/img153/3385/settings1.png http://img34.imageshack.us/img34/4366/settings2.png |
Re: Some questions regarding getting started with Qt Creator ..
If you see the message containing "An incompatible build exists", go to your project tree in "edit" mode, open the context menu and do a "run qmake" and then "rebuild all". If it still fails, disable the shadow build in the projects tab and do the first step again.
To ensure your Qt version works, rebuild the Qt debugging helpers for your desktop version in the settings. If the rebuild succeeds, the steps above should work. |
Re: Some questions regarding getting started with Qt Creator ..
When I try to rebuild the project, I get the same error:
Could not find make command: make in the build environment Error while building project pixmap (target: Desktop) When executing build step 'Make' I have noticed that make related stuff is not configured for the Desktop target, as shown in the following picture: http://img34.imageshack.us/img34/4366/settings2.png How do I fix this ? |
Re: Some questions regarding getting started with Qt Creator ..
OK, I managed to do something ... I found a picture in nokia Qt Tutorials that the Build settings for the Desktop target should be like this:
http://doc.trolltech.com/qtcreator-s...rojectpane.png Based on this, I managed to add the make command thing, like this: http://img153.imageshack.us/img153/2184/settings3.png The only difference now is that in my settings, the 'Toolchain' field is empty, and I don't know how to fix this ... Also, at this stage when I try to compile my code for the Desktop target, I get the following error: error: [debug/main.o] Error 1 |
Re: Some questions regarding getting started with Qt Creator ..
The toolchain should also be visible in your Qt4 configuration in settings. Maybe it can be changed there.
|
Re: Some questions regarding getting started with Qt Creator ..
Nope, there's no toolchain option anywhere in the Settings dialog box ..
|
Re: Some questions regarding getting started with Qt Creator ..
Hmm ...
Now I don't really know more. There might be 3 other options:
|
Re: Some questions regarding getting started with Qt Creator ..
Well the first option you mentioned is what I explained in my previous posts ...
I took your second option, by first uninstalling all Qt related stuff from my system and then did a fresh install of Nokia Qt SDK BETA, and then installed the Qt SDK with mingw as you mentioned ... Now, I noticed that Qt Creator automatically detected the Qt SDK libraries and made its necessary entries in the Tools --> Options --> Qt4 dialog box .... But still the Desktop build settings has no 'Toolchain' value .... :( Any help people ? |
Re: Some questions regarding getting started with Qt Creator ..
Hi,
I got below error message while configuring connections in Qt Creator.. Device configuration test failed: Could not connect to host. Did you start Qemu? can anybody please help..?? I installed Nokia Qt SDK on windows xp and Mad developer on n900. set up mad developer for usb connection.. then tried configuring connections in qt and got this error.. |
Re: Some questions regarding getting started with Qt Creator ..
Quote:
Daniel |
Re: Some questions regarding getting started with Qt Creator ..
Quote:
What do i hve to select when i plug the n900 to the pc, mass storage or pc suite? |
Re: Some questions regarding getting started with Qt Creator ..
|
All times are GMT. The time now is 13:02. |
vBulletin® Version 3.8.8