×
Namespaces

Variants
Actions

Archived:Tips and Tricks - Qt Programming

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

SDKs and versions referred to long superceded. Developers should use Qt SDK

Article Metadata
Compatibility
Platform(s):
Symbian
Article
Created: mrudulpen (20 Jan 2009)
Last edited: hamishwillee (11 Oct 2012)

Archived:Since Qt is in very much preliminary stage, one comes across lots of issues. Here are some of the common errors experienced while installing Qt on s60. I am pretty sure many of you have experienced similar errors.


Contents

Preconditions

  • Download and install the Qt SDK

Qt release installation issues and solutions

Here are some of the solutions to the problems faced.

The list at present is short but if there are similar experiences which other have a solution for one can add to the list. Following is the list of Errors and their resolution-

Qt not configured properly

  • If your system date and time is not set correctly then it is possible that your Qt installation is not completed properly. So before you start installation check your system date and time.

Carbide unable to detect SDK

If your carbide is unable to detect the SDK's then their is a problem with Devices.xml were you have to insert all the system path of SDK's manually.


Note, on Using Nokia SDKs and Tools on Windows Vista environment variables (including Path) are not updated until you reset the PC. So ensure you reset after setting the path to the \bin directory

Configure Your Carbide.c++

Before running all the Qt command ensure that your carbid enviroment variable should be set properly.For setting this variable Start->All Progrrams->carbid c++ ->configure winscw enviroment

Sdk Not Found in carbide when creating Qt application from template

Check have you extracted the libraries as given in the instructions. It can be found over here Qt install path C:\Qt\ This package contains all the binaries and libraries and headers required to integrate Qt as part of sdk.

If the sdk is not found while running SDK then please have a look at the device.xml where all the Device edition are listed here if your SDK version is not shown then you hav to add the device manually

Emulator Option not shown

This will happen, if you forgot to build Qt for emulator. You should do bldmake bldfiles abld build winscw udeb after extracting qtlibs .exe

Screen Resolution not correct on 3.1 Device. Your application runs out of bounds when created from Template.

Check the settings for the default window. There is nothing wrong in your setup. The Templates are not stable yet. So some manipulation is required.

Unable to close Qt application.

Just press Red key on your phone and the application would be closed.

Unable to find custom slot created in my class, when using Signal/Slot dialog box. How do I use the custom slot in such a scenario?

Probably you need to work a way around this. Edit "MyApplication.cpp"(Name of Application in this case is MyApplication. Add your signal slot call in constructor of your MyApplication Class function. And there you go :)

for Eg:

GUIWidget.h

class GUIWidget : public QWidget
{
Q_OBJECT
public slots:
void plusClicked();
....
....
};

GUIWidget.cpp

GUIWidget::GUIWidget(QWidget *parent): QWidget(parent)
{
ui.setupUi(this);
QObject::connect(ui.pushButton1, SIGNAL(clicked()), this, SLOT(plusClicked()));
}

NOTE: "pushButton1" is the button created using GUI toolbox(Qt C++ Widget Box).

New Signal/slot information is not reflected (after new interaction is added using Signal/Slot dialog Box) to the class is not reflected in ui_MyApplication.h, when seen in Carbide.

Just close the MyApplication.ui (after addition of new Signal/Slot information in Signal/Slot Dialog Box )and open ui_MyApplication.h. It should now work for you. You can verify the changes simultaneously by opening the ui_MyApplication.h file in some other editor.

How to Change UID of the application

Edit .pro file of the application.

How do I add new src paths and files

Edit the .pro file of the application.


Common errors and their resolution could also be found here

This page was last modified on 11 October 2012, at 04:19.
88 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×