Re: [Qt-creator] How to add custom comments code complition

2010-11-01 Thread Paulo Silva
"completion" ermm coff coff

On Tue, Nov 2, 2010 at 12:03 PM, Paulo Silva  wrote:

> Hi again,
> is it possible to make qt-creator add this:
>
> /**
>
>  *
>
>  */
>
>
> after I type /** when I hit return?
>
>
> Thank you
>
> Paulo
>
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] How to add custom comments code complition

2010-11-01 Thread Paulo Silva
Hi again,
is it possible to make qt-creator add this:

/**

 *

 */


after I type /** when I hit return?


Thank you

Paulo
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Howto make qt-creator list the header files in the project tree for cmake in CMakelists.txt

2010-11-01 Thread Paulo Silva
Hi guys and girls,

my question is exactly that:
Howto make qt-creator list the header files in the project tree for cmake in
CMakelists.txt?
Because I have something like
include_directories(${INCLUDE_DIRECTORIES}include) and
it does nothing.

Now, if I do

file(GLOB HEADERS "include/*.hpp")

add_executable( ${BIN} test/main.cpp ${HEADERS} )


It works but it does not feel like the optimal solution.

Is there a better way of doing this?


Thanks,

Paulo
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Qt Creator master on Mac 10.4

2010-11-01 Thread eike.ziller
I'm wondering if anyone actually compiles Qt Creator on Mac OS 10.4 by 
themselves (we don't provide binary packages for that platform anymore).

If you do so, read on.

A recent change (49b86e771761b3a9a1799d11f777b13077c6305e) requires you to 
specify that you want to build Qt Creator 10.4-compatible by either
a) setting the env var QTC_TIGER_COMPAT=1, or
b) calling qmake -r TIGER_COMPAT_MODE=1

Technical reason is a switch to use @rpath instead of @executable_path, because 
the latter is an inflexible beast (and @loader_path too) and makes using the Qt 
Creator libs directly in e.g. tests next to impossible.

Please notify me of any problems you encounter.

++ Eike
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Preprocessor Definitions

2010-11-01 Thread Danny Price
In the .pro file, add DEFINES += 

On Mon, Nov 1, 2010 at 12:35 PM, Sergey  wrote:

>  Is there a way to set up preprocessor definitions in QtCreator? I need
> somethinig like this:
>
> int main(int argc, char** argv)
> {
> #ifdef DEBUG
> return 1;
> #endif
>
> return 0;
> }
>
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Preprocessor Definitions

2010-11-01 Thread Sergey
Is there a way to set up preprocessor definitions in QtCreator? I need 
somethinig like this:


   int main(int argc, char** argv)
   {
#ifdef DEBUG
return 1;
#endif

return 0;
   }

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Library build with MinGW and MSYS

2010-11-01 Thread Kobus Botha

Hi

I want to use an external library in a Qt project, but the libs have 
been compiled with Visual Studio and I'm using MinGW. The source 
distribution only supports Visual Studio on Windows. So, I want to build 
the library on Windows with MinGW.


As I see it, I have to install MSYS and I obviously want to use the 
MinGW installed as part of the Qt SDK installation. Unfortunately I am 
not sure what I'm supposed to do. I thought that I would just download 
MSYS and install it in C:\MSYS and configure it to use the current MinGW 
(C:\Qt\2010.04\mingw\bin). However, there doesn't seem to be a download 
for MSYS, but only for each "package". It seems the correct way is to 
use the MinGW installer, which I downloaded. But it looks like it wants 
to install the base MINGW by default. This means I will multiple 
versions of MINGW which sounds like a potential problem (having libs 
compiled with different version of gcc).


Any pointers on building external libraries with MinGW to use with Qt 
Creator will be appreciated. I searched for pages regarding this, but 
haven't been successful so far.


Thanks!
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Cpp parser documentation

2010-11-01 Thread Tim Beaulen
Thanks for the tips.

Over the weekend I had a look at the source code of the cpp parser and
the tests for it (which helped me a lot).

I have it all working pretty well at the moment. I still need to look
into preprocessing files.
And it's a bit of work to make it all available in QtScript files
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Cpp parser documentation

2010-11-01 Thread Nicolas Arnaud-Cormos
On Saturday 30 October 2010 13:03:23 Tim Beaulen wrote:
> I'm creating a plugin that performs some static code quality checks.
> To make the scripts more powerful, I would like to make use of the cpp
> parser that comes with Qt Creator.
> 
> Is there some documentation that describes how to use the cpp parser?

Somebody pointed me to this video once:
http://chaos.troll.no/~aportale/screencasts/cppengine/

Not sure it's still accurate, the API changed a bit, but it can give you an 
idea.

Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Last week in Qt Creator

2010-11-01 Thread tobias.hunger
Hello everybody,

we are approaching another release, so most work was again concentrated on 
testing,
polishing and fixing any issues uncovered by the testing. So there is little 
"big
stuff" going on right now.

Most notable fixes in the 2.1 branch:
 * Welcome screen got a face lift
 * Qt examples all deploy to the N900 now
 * The 'Creating a Qt Quick Application" tutorial was updated

The master branch already got some patches that were considered to disruptive 
for
the 2.1 branch. These include e.g.
 * New command line option to specify the path used by creator to find its 
settings.
   This is important to improve our test servers.
 * JavaScript debugger polish

As always you can get all changes from our git repository found here:
http://qt.gitorious.org/qt-creator/qt-creator

Please report any issues and feature requests to our bugtracker:
http://bugreports.qt.nokia.com/

Best Regards,
Tobias

-- 
Tobias Hunger
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Cpp parser documentation

2010-11-01 Thread tobias.hunger
Hi Tim,

our C++ guys are currently at the devdays in california, so they will probably
not be fully able to reply this week.

The documentation found in the C++ parser is not that great. But it is very
closely modeled to the official C++ grammar (see e.g.
here: http://linuxsoftware.co.nz/cppgrammar.html), so that can be used as
documentation. I found that document rather helpful.

I am sure we can answer any specific questions here.

Best Regards,
Tobias



From: qt-creator-boun...@trolltech.com [qt-creator-boun...@trolltech.com] On 
Behalf Of ext Tim Beaulen [tbsc...@gmail.com]
Sent: Saturday, October 30, 2010 1:03 PM
To: qt-creator@trolltech.com
Subject: [Qt-creator] Cpp parser documentation

I'm creating a plugin that performs some static code quality checks.
To make the scripts more powerful, I would like to make use of the cpp
parser that comes with Qt Creator.

Is there some documentation that describes how to use the cpp parser?
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Remote Debugging on N900 does not work: program does not stop on breakpoints

2010-11-01 Thread Christian Kandeler
On 10/31/2010 06:38 PM, ext Jochen Becher wrote:
> while parsing target description (at line 1): Target description
> specified unknown architecture "arm"
> Could not load XML target description; ignoring
> `/home/jbecher/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/lib/ld-linux.so.3':
>  Shared library architecture unknown is not compatible with target 
> architecture i386.
> `/home/jbecher/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/lib/ld-linux.so.3':
>  Shared library architecture unknown is not compatible with target 
> architecture i386.

It looks as if the gdb you are using does not have support for compiling 
ARM binaries. I can't imagine that to be the case with the gdb in MADDE; 
have you perhaps overriden the Maemo gdb location in Tools -> Debugger 
-> gdb? The debugger view tells you the exact path that is being used.


Christian
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Remote Debugging on N900 does not work: program does not stop on breakpoints

2010-11-01 Thread André Pönitz
On Sunday 31 October 2010 18:38:50 ext Jochen Becher wrote:
> Hi,
> 
> I created a very simple hello-world using Qt-Creator 2.0.93 (snapshot
> from about Wednesday for Ubuntu). The only change I did was adding a
> text label "Hello World" to the mainwindow.cpp. Compiling, deploying
> (using a WLAN device configuration with ssh) and running worked
> out-of-the-box. Then I set a breakpoint at the very first line in main()
> and started debugging. The program does not stop at that debugging and I
> get the following output in the output-window and in the debugger-log
> ( the right pane of the debugger-log cannot be copied - If I insert the
> copy text to any text editor nothing happens, bug in Ubuntu or Qt or Qt
> Creator?)

There's also a "Save Contents" context menu item. 

But it should work. It certainly does here (Ubuntu 10.04, target Kate, KMail
and gedit, both with mark + middle mouse button and  Ctrl-C/Ctrl-V).

Andre'
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator