qt-creator

Qt 4.5 third-party installer programs

Are there any good setup builders for Qt 4.5 projects on Windows? I have heard there is an installer that you just point at your Qt Creator project, and it figures out the dependancies and creates an .MSI setup file. I haven't located anything like that so far. What are others using? ...

Adding external library into Qt Creator project

Have created a simple library using vc6 compiler which defines a class Sum with a method add which takes two parameters and retruns an int, I have included this in my QT application in the pro file as win32:LIBS +=D:\nest_qt_dev\SumLib\Debug\SumLib.lib However I get an undefined reference to `CSum::Add(int, int)' error. My Library Co...

How to change the Layout of QFileDialog when language changes to Arabic

I have developed a aaplication in Qt. I am using the Static function getSaveFileName() of QFileDialog to show the fileDialog. But when I am changing the language to Arabic then it is not changing the Layout of the fileDialog. Can anybdy help how to change it? ...

Simple Qt Application won't compile on OS X

I've downloaded the Qt SDK and am trying to get started on my first Qt application using Qt Creator. Using the wizard from the opening splash screen I selected "Qt4 Gui Application" and it threw together a little project for me. When I try to build that project (without making any changes) I get build errors: Running build steps for ...

Automatic increment of build number in QT Creator

I would like to have a variable (or #define) in C++ source that will increment each time I use QT Creator to build source code. Is there any way I can do this, perhaps some QT Creator plugin or similar? If there is a way to do it if I use "make" on command line to build? ...

Qt Creator: “XYZ does not name a type”

This is a very frustrating error message in Qt Creator: ’XYZ’ does not name a type. This usually means that there is an error in the class XYZ that prevents the compiler from generating the type, but there are no additional hints as to what went wrong. Any suggestions? ...

Qt Creator: “inline function used but never defined” – why?

Why am I getting this warning in Qt Creator: ` inline function ‘bool Lion::growl ()’ used but never defined? I double-checked my code, and have a declaration inline bool growl () in Lion (lion.h) and the corresponding implementation in lion.cpp: inline bool Lion::growl () What’s going on? EDIT: My assumption has been that it is l...

Source code hierarchies and header files (C++)

What’s the preferred way to reference header files from cpp files that are in different sub-directories in a project? For example, bear.cpp in the forest directory needs to include lion.h in jungle. Is there a better way than using `#include “../jungle/lion.h”? I would prefer to set an include path and simply use #include <lion>, but ...

Debug Qt application among dlls

I have Qt project with multiple children projects, most of them are dll's. And exactly one is Qt application. How to launch debugging of application? Can it be done in some config file to allow other users of versioning system to use same settings all over the team. Of course I know the way to "attach" to already existing process. But s...

Why "Follow symbol under cursor" does not work in QT Creator for Mac OS X?

Hi I'm using QT Creator under Mac osx, but "Follow symbol under cursor" option, to allow me to jump for class and methods' definitions, does not really work... it only works for local symbols. neither does "Switch between method declaration/definition" any ideas? thanks much for any thought Lior ...

File templates in Qt Creator

Salutations. Currently, I use Eclipse (Galileo) with CDT and Boost libraries in OS X 10.5. I have begun the adventure of learning Qt, and I have installed the free version of the Qt SDK. I have grown quite accustomed to Eclipse, but unfortunately, integration has not been developed for Eclipse in OS X yet. My question, therefore, is ...

How to avoid entering library's source files while debugging in Qt Creator with gdb?

How can I configure Qt Creator and/or gdb so that while debugging my program using Qt libraries the debugger would avoid stepping into Qt's source files? ...

Using Qt Creator with Git version control

I’ve recently installed git and initialized a git repo in my project folder. I can commit and checkout without any issues through the command line, but for some reason the gui in qt creator claims my connection has timed out. Im running windows…. Any ideas? Error message(s): 21:15 Executing: git status –u Unable to obtain the status: E...

Qt Creator - how to set application icon?

How do you set application icon for application made in QtCreator. Is there some easy way? ...

Is there any memory browser in QtCreator?

I can't find it. In the watcher window I can manually type memory addresses but I'd like to see bigger chunks of memory... If this doesn't exist, is there any other free memory mapper for the Mac (except for XCode and Eclipse)? Thanks, rui ...

Configure Qt Creator to work with GDB

I have both GDB and CDB in my machine. My Qt creator is using the CDB for debugging. How do i configure it to use GDB? I tried to point to the GDB path, but it doesn't work. How do i set Qt Creator to debug using GDB? ...

Using cin in QtCreator

Hello, For school, we use C++ as the language of choice. I am currently using QtCreator as an IDE, and for its GUI library, it is wonderful. The school is using Visual Studio. However, most of the programs we are writing make use of cin and cout for input/output. cout works fine as output, as you can see what it puts out in the applica...

QtCreator build returns collect2: ld returned exit status 1

While building several different projects in QtCreator, I have run across the following build error: collect2: ld returned 1 exit status After only changing a few things (that should not change anything significant in the build), it will go away if it has already appeared, or it will appear if it's not there. In my current program fo...

Force relink when building in QT Creator

Greetings, I have a subdirs project which wraps a couple libraries and a main application. When I change something in one of the libraries the main application does not relink with them.. does anyone have a trick for getting an application to relink with its statically linked libs automatically when using QT Creator? -Dan O ...

Center QGraphicsView in Widget

Hi, I have a QDialog that contains several dock widgets and one QGraphicsView. The widget layout is set to grid, the QGraphicsView size policy is set to fixed on the 2 axes and it the QGraphicsView is center in the empty zone of the QDialog. I would like to resize my QGraphicsView and let it at the center of the empty zone of the QDial...