[Qt-creator] debugging VS steps: 30 seconds

2009-07-09 Thread Boy Lenssen
Using Win XP SP3, repository build Qt Creator

 

Hi,

 

I said before that I had problems with seeing Qt types values, that
seems to be solved now.

But I still have the problem that every step (or when I hit a
breakpoint) the whole program hangs for about 30 seconds. 

 

It worked faster before. I'm not sure if it is just me (and I need to
reinstall my system or something :s ) or that this is normal for now and
work-in-progress. Do other people have this issue? 

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


Re: [Qt-creator] Strange parser/validator bug in Qt Creator 1.2?

2009-07-09 Thread Oswald Buddenhagen
On Wed, Jul 08, 2009 at 02:40:29PM -0700, Kendall Bennett wrote:
 Never mind, it appears Qt Creator does not like the semicolon at the
 end of my functions, which I have done since the dawn of time. It is
 not invalid syntax to do that,
 
try to compile that with -pedantic with a halfways recent gcc version.
;)

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


Re: [Qt-creator] Annoying 'changed text' lines on left of edit screen?

2009-07-09 Thread Eike Ziller
Hi,

it would be great if we could/would fill this changed text information  
with the information from the version control system, but we don't at  
the moment :)
Red is what changed since last save, green is what changed since file  
was opened.

++ Eike

On Jul 8, 2009, at 11:45 PM, ext Kendall Bennett wrote:

 Here is something I am finding very annoying. Qt Creator seems to  
 want to keep track of everything that I have edited in a session,  
 and shows green lines next to the areas of the code that I have  
 changed, on the left of the editor screen. If I have not saved the  
 file, the lines are red, and when the file is saved, they are green.

 However for the life of me I cannot understand why these lines  
 always remain? The only way I have found to clear the green lines is  
 to exit Qt Creator and then restart it again?

 At first I thought perhaps it was tracking what had changed since my  
 last commit with Perforce, but it seems to be totally unrelated to  
 that as submitting the files with Perforce (which I do either with  
 P4V or the command line; not using Qt Creator) does not clear the  
 lines either.

 What am I missing here? Is there some way to to turn this off? I am  
 more than happy to see the red lines for stuff that is not saved to  
 disk, but the green lines for me are pretty superfluous as I always  
 run a diff on my files when I check them in with Perforce anyway to  
 make sure I am not submitting something silly.

 Regards,

 Kendall Bennett, CEO
 A Main Hobbies
 424 Otterson Drive, Suite 160
 Chico, CA 95928
 1-800-705-2215 (Toll-Free)
 1-530-894-0797 (Int'l  Local)
 1-530-894-9049 (Fax)
 http://www.amainhobbies.com
 ATT1.txt

-- 
Eike Ziller
Software Engineer
Nokia, Qt Software
Phone  +49 (0)30 6392 3255
Fax+49 (0)30 6392 3256
E-mail eike.zil...@nokia.com




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


Re: [Qt-creator] Linked projects/workspace/'solutions'

2009-07-09 Thread Eike Ziller
Hi,

On Jul 8, 2009, at 11:33 PM, ext Juan Leni wrote:

 I have a similar problem. I would like to keep two projects ( app and
 framework) together.
 I already know about sessions, but how can I debug the application and
 be able to step into the framework?
 I guess I should embed the framework in the application like in Xcode,
 but how should I do that in QtCreator? (By the way, I am using OSX)

Please note that on OSX you most probably need to tick the check
Use debug version of frameworks (DYLD_IMAGE_SUFFIX=_debug)
in the run configuration of your application to be able to debug into  
frameworks.
(Projects mode, run settings).

++ Eike

 Andre Poenitz wrote:
 On Wed, Jul 08, 2009 at 08:47:43PM +0100, Robert Caldecott wrote:

 Nearly all the projects I create using Qt Creator have a separate  
 unit
 test project - how can I link projects so that when I open the main
 project, the unit test one is also opened?  The same question would
 apply to projects that use library projects, etc.  I'm thinking of
 something similar to the Visual Studio 'solution' idea.  It wouldn't
 have to be anything too complicated.

 Is this possible?  If not, it is planned?  Can I hack my .pro  
 files by
 hand in the meantime?


 You can (and should...) use 'Sessions' to handle projects (and some
 other information) that logically belong together.

 A 'TEMPLATE = subdirs' .pro might be an option, too.

 Andre'
 ___
 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

-- 
Eike Ziller
Software Engineer
Nokia, Qt Software
Phone  +49 (0)30 6392 3255
Fax+49 (0)30 6392 3256
E-mail eike.zil...@nokia.com




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


[Qt-creator] Enhancement Request - File|New Unit Test

2009-07-09 Thread Robert Caldecott
I am a big fan of unit testing and am always creating new classes that
look like this:

// footests.h

#ifndef FOOTESTS_H
#define FOOTESTS_H

#include QTest

class FooTests : public QObject
{
Q_OBJECT
private slots:
void initTestCase();
void cleanupTestCase();
};

#endif // FOOTESTS_H

// footests.cpp

#include footests.h

void FooTests::initTestCase()
{
}

void FooTests::cleanupTestCase()
{
}

This is quite laborious and as I'm sure most of us agree that unit
testing is a good thing, how about an option in File|New for creating
a unit test class similar to the one above?
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Incorrect error diagnostics in C++ editor

2009-07-09 Thread Roberto Raggi

Hi Bradley,

On Jul 8, 2009, at 5:47 PM, Bradley Smith wrote:
 Can someone fix this, or point me to where in the code to look at  
 fixing it?

I'm fixing it :)

Thanks for the report!

ciao robe

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


Re: [Qt-creator] Annoying 'changed text' lines on left of edit screen?

2009-07-09 Thread Matthias Ettrich
The plan was indeed to connect the green lines to the source code management 
system. 

 Matthias

On Thursday 09 July 2009 11:45:45 Ziller Eike (Nokia-D-Qt/Berlin) wrote:
 Hi,

 it would be great if we could/would fill this changed text information
 with the information from the version control system, but we don't at
 the moment :)
 Red is what changed since last save, green is what changed since file
 was opened.

 ++ Eike

 On Jul 8, 2009, at 11:45 PM, ext Kendall Bennett wrote:
  Here is something I am finding very annoying. Qt Creator seems to
  want to keep track of everything that I have edited in a session,
  and shows green lines next to the areas of the code that I have
  changed, on the left of the editor screen. If I have not saved the
  file, the lines are red, and when the file is saved, they are green.
 
  However for the life of me I cannot understand why these lines
  always remain? The only way I have found to clear the green lines is
  to exit Qt Creator and then restart it again?
 
  At first I thought perhaps it was tracking what had changed since my
  last commit with Perforce, but it seems to be totally unrelated to
  that as submitting the files with Perforce (which I do either with
  P4V or the command line; not using Qt Creator) does not clear the
  lines either.
 
  What am I missing here? Is there some way to to turn this off? I am
  more than happy to see the red lines for stuff that is not saved to
  disk, but the green lines for me are pretty superfluous as I always
  run a diff on my files when I check them in with Perforce anyway to
  make sure I am not submitting something silly.
 
  Regards,
 
  Kendall Bennett, CEO
  A Main Hobbies
  424 Otterson Drive, Suite 160
  Chico, CA 95928
  1-800-705-2215 (Toll-Free)
  1-530-894-0797 (Int'l  Local)
  1-530-894-9049 (Fax)
  http://www.amainhobbies.com
  ATT1.txt


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


[Qt-creator] Right-click on a project to debug?

2009-07-09 Thread Robert Caldecott
At the moment, if I want to debug a project I need to first
right-click on it and use the 'Set Run Configuration' option and then
I hit F5 to launch the debugger.  When using a session containing
multiple projects, this can be time consuming.  How about a 'Debug'
option when you right-click on a project in the same way as the
existing 'Run' option?  It would be very useful.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Code completion crash in Qt creator

2009-07-09 Thread Andreas Nicolai
Hi there,

this is probably a known bug, but then again, maybe not. 

Qt Creator crashes when using the code completion feature (by pression . after 
an object variable).

Applies to: Qt Creator 1.1.0 (Qt 4.5.1) both Linux (openSuse 11.0) and WinXP 
SP3

Steps to reproduce:

1. type class declaration with some function

class NameNotImportant {
public:
void setData(Data  data);
}

2. mistype argumentlist in implementation and inside function, type object and 
press . afterwards

void NameNotImportant::setData(Data  data()) {
data  //  pressing . (period) after 'data' crashes Qt Creator
}

Problem is the invalid type of the argument, data() instead of data

Bye,
Andreas

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


Re: [Qt-creator] Code completion crash in Qt creator

2009-07-09 Thread Roberto Raggi

Hi Andreas,

On Jul 9, 2009, at 4:17 PM, ext Andreas Nicolai wrote:
 Qt Creator crashes when using the code completion feature (by  
 pression . after
 an object variable).

Oops!

 Problem is the invalid type of the argument, data() instead of data

Fixed.

Thanks for the report

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