Re: [Qt-creator] CDB QList debugging helpers problem

2009-07-06 Thread Friedemann Kleint
Hi Robert,

currently, gdb is able to display more types as it provides a sort-of C++ 
interpreter language, which allows us to inspect types (for example, it let's 
you query sizeof() of an arbitrary complex template type and similar). CDB 
does not provide that, so, we are currently trying to improve type support as 
best as possible.

Regards,
Friedemann

-- 
Friedemann Kleint
Nokia, Qt Software

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


Re: [Qt-creator] Debugging Helper broken in 1.2?

2009-07-06 Thread Andre Poenitz
On Tue, Jul 07, 2009 at 07:18:14AM +0100, Robert Caldecott wrote:
> Is there any update for the gdb issues on XP with Qt Creator 1.2?
> There was mention of a potential fix or even a back port to 1.2 last
> week.

Except for those cases where the dumpers use code that's too complicated
for cdb to handle (QVector, QMap, some parts of QObject) last weeks
problems (most notably the gdb restart bug) have been fixed in both
master and 1.2 branch. The "only" missing part is a real release. This
is on the agenda, but, as usual, we can't give a date.

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


[Qt-creator] CDB QList debugging helpers problem

2009-07-06 Thread Robert Caldecott
I have found an issue where the contents of a QList will not display when
debugging using CDB.  I am running XP SP3 with Qt Creator 1.2 and a MSVC9
build of Qt 4.5.2.  The following sample code shows the problem:


#include 
#include 
#include 

class Foo
{
public:
   Foo(const QString& str, const int n) :
   str_(str), n_(n)
   {
   }
private:
   QString str_;
   int n_;
};

int main(int argc, char *argv[])
{
   QCoreApplication a(argc, argv);

   QList list;
   list.append(Foo("Hello", 1));
   list.append(Foo("World", 2));

   return a.exec();
}


If you put a breakpoint on the 'return a.exec()' line and attempt to inspect
the contents of 'list', the two 'Foo' items are not displayed.  If I use
gdb, then it works perfectly and I can display each 'Foo' object.
I thought that QList was supported with CDB?  Certainly QStringLists work
OK.

I have attached some screen dumps showing the differences between CDB and
gdb that I am seeing.

If I can get a build of Qt Creator that fixes the gdb restart bug then I
will stop using CDB for now, as even though it is faster, the gdb debugging
helpers are much more useful IMHO.

[image: cdb-qlist.png][image: gdb-qlist.png]
<><>___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] CDB debug helpers bug with reference parameters

2009-07-06 Thread Friedemann Kleint
Hi Robert,

this issue will be fixed in version 1.3 and is already visible in the master 
branch. We are currently working to improve dumping of various types for CDB.
If you decide to use the master branch, please always rebuild the dumpers (via 
the Qt versions settings page) every time you update your repository.

Regards,
Friedemann

-- 
Friedemann Kleint
Nokia, Qt Software

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


Re: [Qt-creator] Debugging Helper broken in 1.2?

2009-07-06 Thread Robert Caldecott
Is there any update for the gdb issues on XP with Qt Creator 1.2?
There was mention of a potential fix or even a back port to 1.2 last
week.  I am struggling with CDB as the debugging helpers aren't as
good as gdb.

2009/6/26 André Pönitz :

> Ok, it looks like we have two, or possibly three separate problems:
>
> A shows up when re-starting the debugger, dumpers "don't work" then.
> B seems to affect Windows only where the choice of "Use dumpers" is
>    not remembered (or more likely wrongly restored)
> C is "start requires sometimes an extra 'continue'". This might be the
>   same as A, though.

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


Re: [Qt-creator] Drawing on QWidget

2009-07-06 Thread Ladnar, Marc
The developing tool has nothing to do with the IDE you use for 
programming. 

Qt stays Qt, even if you use QtCreator for implementation or Qt designer 
and gvim...

-Ursprüngliche Nachricht-
Von: Alex Williams [mailto:linuxf...@gmail.com] 
Gesendet: Montag, 6. Juli 2009 15:49
An: qt-creator@trolltech.com
Betreff: Re: [Qt-creator] Drawing on QWidget

> You even asked on the wrong mailinglist because this one covers the 
> IDE and not the toolkit.

Sorry, I'm just asked question about using QWidget and painting on it 
right in the Qt Creator IDE. If you creating your GUI outside Qt Creator 
- there are many examples about QPainter in Qt SDK...
___
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] Disabling File Changed dialog

2009-07-06 Thread Coda Highland
Could I suggest a related option to always ignore external modifications?

Would it be possible to tag the automatic behavior on a file-per-file basis?

/s/ Adam

On Mon, Jul 6, 2009 at 2:43 PM, Henrik Abelsson wrote:
> Hey all,
>
> I created a patch which adds an option to automatically reload changes. It's
> implemented as global option for all files and projects at the moment,
> similar to "Automatic reload of externally modified files" in Visual Studio.
> It should silently reload unmodified files, but still prompt you on files
> which have been modified but are unsaved.
>
> The patch is here for review:
>
> http://qt.gitorious.org/~abelsson/qt-creator/abelssons-clone/commit/b93560f4b4ff02b55175320c4ce7348d70e8c7b9
>
> I'm still relatively new to this codebase, but quite enjoy hacking a bit on
> it. Would any experienced trolls please let me know if I'm breaking any
> fundamental design principles with this patch? :)
>
> -henrik
>
> On Fri, Jul 3, 2009 at 10:47 PM, Ilyes Gouta  wrote:
>>
>> Hi,
>>
>> I've been experiencing this annoying behavior too in my Qt Creator
>> project where I have couple lex and bison files generated, where I get
>> that dialog at every build cycle!
>>
>> Best approach: Give the choice to the end-user. We could for example,
>> add a tick box for such a dialog (per file?) to let the user ignore or
>> accept such a warning. Another global setting would restore all the
>> warnings for the entire project.
>>
>> Regards,
>> Ilyes Gouta.
>>
>> P.S: Qt Creator rocks! we've been dreaming about such an IDE for a
>> long time! Keep up the good work!
>>
>> On Fri, Jul 3, 2009 at 4:31 PM, Coda Highland
>> wrote:
>> > I completely agree with the current behavior as defaults, although I
>> > would agree to options to set the behavior.
>> >
>> > The reason you might not want to reload the file from disk is because
>> > reloading kills your undo history. Also, the update may have been
>> > unexpected and you want to inspect the changes before loading them, or
>> > worse you may have had unsaved changes in the editor.
>> >
>> > /s/ Adam
>> >
>> > On Thu, Jul 2, 2009 at 11:46 AM, Jonathan Arnold
>> > wrote:
>> >> Is there any way to turn off the File Changed dialog in Qt Creator? I
>> >> have been
>> >> playing with having emacs as my external editor, but getting a dialog
>> >> every time
>> >> I switch back to Qt Creator asking if I want to reload the file because
>> >> it has
>> >> changed on the disk makes the feature much less useful. In fact, I
>> >> really can't
>> >> come up with a compelling reason as to why reloading silently wouldn't
>> >> be the
>> >> default option. How many times does a developer *not* want to reload
>> >> the editor
>> >> with the file that is on the disk? This is esp. true when you use a
>> >> source code
>> >> control system and sync with the latest.
>> >>
>> >> --
>> >> Jonathan Arnold        Webstream: http://hieronymus.soup.io
>> >>
>> >> Here’s a bumper sticker I’d like to see: “We are the proud parents
>> >> of a child who’s self-esteem is sufficient that he doesn’t need us
>> >> promoting his minor scholastic achievements on the back of our car."
>> >>  -- George Carlin
>> >> ___
>> >> 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 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 mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] VCS presentation in Tools menu

2009-07-06 Thread Gena
Hi!

I've noticed a strange behaviour in Tools menu when using diff from subversion 
or git (may be and others, didn't test). After applying diff to project or file 
from Subversion menu, Git menu is getting available too. The opposite is  
correct as well - subversion menu is getting available for projects under git.
Back to normal after closing diff view...
Noticed with today's 1.2.0 snapshot for x86_64. Compiled master doesn't have 
this issue.

Also, it would be greate if there was an option to save diff view...

P.S. Thanks for great IDE! I have switched to Creator and that is wonderful!

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


Re: [Qt-creator] Disabling File Changed dialog

2009-07-06 Thread Henrik Abelsson
Hey all,


I created a patch which adds an option to automatically reload changes. It's
implemented as global option for all files and projects at the moment,
similar to "Automatic reload of externally modified files" in Visual Studio.
It should silently reload unmodified files, but still prompt you on files
which have been modified but are unsaved.

The patch is here for review:


http://qt.gitorious.org/~abelsson/qt-creator/abelssons-clone/commit/b93560f4b4ff02b55175320c4ce7348d70e8c7b9

I'm still relatively new to this codebase, but quite enjoy hacking a bit on
it. Would any experienced trolls please let me know if I'm breaking any
fundamental design principles with this patch? :)

-henrik

On Fri, Jul 3, 2009 at 10:47 PM, Ilyes Gouta  wrote:

> Hi,
>
> I've been experiencing this annoying behavior too in my Qt Creator
> project where I have couple lex and bison files generated, where I get
> that dialog at every build cycle!
>
> Best approach: Give the choice to the end-user. We could for example,
> add a tick box for such a dialog (per file?) to let the user ignore or
> accept such a warning. Another global setting would restore all the
> warnings for the entire project.
>
> Regards,
> Ilyes Gouta.
>
> P.S: Qt Creator rocks! we've been dreaming about such an IDE for a
> long time! Keep up the good work!
>
> On Fri, Jul 3, 2009 at 4:31 PM, Coda Highland
> wrote:
> > I completely agree with the current behavior as defaults, although I
> > would agree to options to set the behavior.
> >
> > The reason you might not want to reload the file from disk is because
> > reloading kills your undo history. Also, the update may have been
> > unexpected and you want to inspect the changes before loading them, or
> > worse you may have had unsaved changes in the editor.
> >
> > /s/ Adam
> >
> > On Thu, Jul 2, 2009 at 11:46 AM, Jonathan Arnold
> wrote:
> >> Is there any way to turn off the File Changed dialog in Qt Creator? I
> have been
> >> playing with having emacs as my external editor, but getting a dialog
> every time
> >> I switch back to Qt Creator asking if I want to reload the file because
> it has
> >> changed on the disk makes the feature much less useful. In fact, I
> really can't
> >> come up with a compelling reason as to why reloading silently wouldn't
> be the
> >> default option. How many times does a developer *not* want to reload the
> editor
> >> with the file that is on the disk? This is esp. true when you use a
> source code
> >> control system and sync with the latest.
> >>
> >> --
> >> Jonathan ArnoldWebstream: http://hieronymus.soup.io
> >>
> >> Here’s a bumper sticker I’d like to see: “We are the proud parents
> >> of a child who’s self-esteem is sufficient that he doesn’t need us
> >> promoting his minor scholastic achievements on the back of our car."
> >>  -- George Carlin
> >> ___
> >> 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 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] Creator segmentation faults becoming common...

2009-07-06 Thread Andre Poenitz
On Mon, Jul 06, 2009 at 10:25:44AM -0700, Glenn Tarbox, PhD wrote:
> Has there been a shift away from "master" being ready for testing?

Not intentionally.
 
> Hopefully, the questionable practice of "pushing" from the "inside" repo to
> gitorious isn't being used for Creator as it is for Qt

It is the same practice.

> (can't imagine why that policy exists other than CVS / SVN hangover...
> git branches and direct repo access are a much better approach)

It is a good idea to have a grace period to press the red button in case
of accidental commits.

> Looks like Emacs for the time being but this is the first time Creator has
> become unusuable for a sustained period.

Just going back a week or two seems to be an option as well...

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


[Qt-creator] Creator segmentation faults becoming common...

2009-07-06 Thread Glenn Tarbox, PhD
I like to work with the bleeding edge yet released version of Qt and Creator
to help identify bugs.  However, for the last few days, Creator has become
extremely unstable, crashing so frequently its not usable.

Scanning the lists, crashing doesn't appear widely reported so I was
wondering if its to do with my systems.  I use Ubuntu 9.04 on multiple
desktops and see the same crashes so, the current creator / qt master is
definitely bad on ubuntu systems. (if I were using one machine, it might be
something machine specific, but the desktops are virgin Ubuntu).

Thinking it might be a small bug, I pulled and rebuilt last night... same
segmentation fault behavior.

Has there been a shift away from "master" being ready for testing?

Hopefully, the questionable practice of "pushing" from the "inside" repo to
gitorious isn't being used for Creator as it is for Qt (can't imagine why
that policy exists other than CVS / SVN hangover... git branches and direct
repo access are a much better approach)

Looks like Emacs for the time being but this is the first time Creator has
become unusuable for a sustained period.

-glenn

-- 
Glenn H. Tarbox, PhD ||  206-274-6919
http://www.tarbox.org
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] CDB debug helpers bug with reference parameters

2009-07-06 Thread Andre Poenitz
On Mon, Jul 06, 2009 at 09:47:08AM +0100, Robert Caldecott wrote:
> I am using Qt Creator 1.2 on Windows XP SP3 with a MSVC9 build of Qt
> 4.5.2 and the MS CDB cannot show Qt objects when they are passed to a
> function by reference.  For example:
> 
>   #include 
>   #include 
> 
>   void test(const QString& str)
>   {
>   // Do something with str
>   }
> 
>   int main(int argc, char *argv[])
>   {
>   QString str = "Hello, world!";
>   test(str);
>   return 0;
>   }
> 
> If you put a breakpoint in 'main' on the 'test(str)' line, the
> contents of the 'str' QString display fine.  If you then step into the
> 'test' function then the passed QString contents are not displayed and
> instead look like this:
> 
>   str 0x0012ff58 class QString* QString*
> 
> I tried again using gdb and this works fine (but only the first time I
> run Qt Creator due to the known issue with restarting gdb...).
> 
> I tend to use a lot of foreach loops with const reference parameters -
> foreach (const QString& str, list) - and so this bug is quite
> frustrating.

Thanks for the report.

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


Re: [Qt-creator] Syntax highlighting, template templates

2009-07-06 Thread Nico Kruber
It's not declared, because it's (supposed to be) a template template...
but I mixed some things up when I reduced my code to the examples I gave you - 
attached is a fixed file also including the value template.
It can not even be used with g++ to prove its correctness ("g++ x.cpp").

Nico

On Monday 06 July 2009 17:39:11 Roberto Raggi wrote:
> Hi,
>
> On Jul 6, 2009, at 2:55 PM, Nico Kruber wrote:
> > Just tested your patch and it fixes my first issues but not the value-
> > template.
>
> Sorry, but do you have "class Element" and "class QString" declared
> before your templates?
>
> I don't get any warning/error messages when I load x.cpp (attached to
> this email).
>
> ciao robe
#include 

template< template< typename /* ElementType */ > class Container, typename ElementType >
bool foo1(Container container){
}

template< template< typename /* ElementType */ > class Container, typename ElementType >
bool foo2(Container container);


template< template< typename /* ElementType */ > class Container, typename ElementType >
bool foo3(Container container, const int number);


template< template< typename /* ElementType */ > class Container, typename ElementType >
bool foo4(Container container, const int number) {

 typename Container::const_iterator i = container.constBegin();
 const typename Container::const_iterator end =  container.constEnd();
 while(i != end) {
   // do something
   ++i;
 }
}

template
class A {
  T t;
public:
  A() {
std::cout << count << std::endl;
  }
};

template
void foo5(A* var) {
}

int main() {
  foo5(new A());
  return 0;
}

signature.asc
Description: This is a digitally signed message part.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Syntax highlighting, template templates

2009-07-06 Thread Roberto Raggi


Hi,

On Jul 6, 2009, at 2:55 PM, Nico Kruber wrote:


Just tested your patch and it fixes my first issues but not the value-
template.


Sorry, but do you have "class Element" and "class QString" declared  
before your templates?


I don't get any warning/error messages when I load x.cpp (attached to  
this email).


ciao robe



x.cpp
Description: Binary data


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


Re: [Qt-creator] latest git build laggy?

2009-07-06 Thread Roberto Raggi


On Jul 6, 2009, at 4:52 PM, Boy Lenssen wrote:


Ow, lol! I’m sorry, I meant ‘works without lag indeed…’


cool :)

ciao robe


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


Re: [Qt-creator] latest git build laggy?

2009-07-06 Thread Boy Lenssen
Ow, lol! I'm sorry, I meant 'works without lag indeed...'

 

Sorry for the confusion!

 



From: Roberto Raggi [mailto:roberto.ra...@trolltech.com] 
Sent: maandag 6 juli 2009 16:48
To: qt-creator@trolltech.com
Subject: Re: [Qt-creator] latest git build laggy?

 

 

On Jul 6, 2009, at 1:04 PM, Boy Lenssen wrote:





Works with lag indeed..thanks...

 

hmm, that's not cool. Please can you try something for me? 

 

Open src/plugins/cpptools/cppmodelmanager.cpp and search for

 

if (mode == Document::FullCheck) {

 

the if-statement should be around line 618.  Now, replace the condition
with something like

 

if (false  &&   mode == Document::FullCheck) {

 

and let me know if the editor feels more responsive.

 

Thanks for your help

 

ciao robe

 

 

 

 

 





From: Roberto Raggi [mailto:roberto.ra...@trolltech.com] 
Sent: maandag 6 juli 2009 10:05
To: qt-creator@trolltech.com
Subject: Re: [Qt-creator] latest git build laggy?

 

 

Hi,

 

please can you try today's snapshot?

 

ciao robe

 

On Jul 3, 2009, at 2:01 PM, Boy Lenssen wrote:








Some more info: I found when I click somewhere, it hangs for
about a second...

 





From: Boy Lenssen [mailto:boy.lens...@esaote.nl] 
Sent: vrijdag 3 juli 2009 13:59
To: qt-creator@trolltech.com
Subject: [Qt-creator] latest git build laggy?

 

Hi,

 

Just to make sure: is the latest build with other users also
laggy? Often, when I type it hangs for a few seconds.

I don't seem to have this problem with the released version.

 

I'm using XP SP3

___
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 mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] latest git build laggy?

2009-07-06 Thread Roberto Raggi


On Jul 6, 2009, at 1:04 PM, Boy Lenssen wrote:


Works with lag indeed..thanks…


hmm, that's not cool. Please can you try something for me?

Open src/plugins/cpptools/cppmodelmanager.cpp and search for

if (mode == Document::FullCheck) {

the if-statement should be around line 618.  Now, replace the  
condition with something like


if (false  &&   mode == Document::FullCheck) {

and let me know if the editor feels more responsive.

Thanks for your help

ciao robe






From: Roberto Raggi [mailto:roberto.ra...@trolltech.com]
Sent: maandag 6 juli 2009 10:05
To: qt-creator@trolltech.com
Subject: Re: [Qt-creator] latest git build laggy?


Hi,

please can you try today's snapshot?

ciao robe

On Jul 3, 2009, at 2:01 PM, Boy Lenssen wrote:


Some more info: I found when I click somewhere, it hangs for about a  
second…


From: Boy Lenssen [mailto:boy.lens...@esaote.nl]
Sent: vrijdag 3 juli 2009 13:59
To: qt-creator@trolltech.com
Subject: [Qt-creator] latest git build laggy?

Hi,

Just to make sure: is the latest build with other users also laggy?  
Often, when I type it hangs for a few seconds.

I don’t seem to have this problem with the released version.

I’m using XP SP3
___
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 mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Syntax highlighting, template templates

2009-07-06 Thread Roberto Raggi

On Jul 6, 2009, at 2:55 PM, Nico Kruber wrote:

> Just tested your patch and it fixes my first issues but not the value-
> template.

oki, thanks for trying my patch. I think I know what's missing in my  
code, I will try to fix the remaining issues in the next few days.

ciao robe

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


Re: [Qt-creator] Drawing on QWidget

2009-07-06 Thread Alex Williams
> You even asked on the wrong mailinglist because this
> one covers the IDE and not the toolkit.

Sorry, I'm just asked question about using QWidget and painting on it
right in the Qt Creator IDE. If you creating your GUI outside Qt
Creator - there are many examples about QPainter in Qt SDK...
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Drawing on QWidget

2009-07-06 Thread Axel Jäger
>
> OK, sorry... I looked at QPainter documentation only. Thank you all  
> for help.
> P.S.
> I'm just comparing effort of starting to paint with other toolkits :)
> VCL - 5 minutes, wxWidgets - 1 hour, Qt - 4 days :)-

Will you stop praising other toolkits and say how long it took you to  
do certain thing? You even asked on the wrong mailinglist because this  
one covers the IDE and not the toolkit.

Axel

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


Re: [Qt-creator] Syntax highlighting, template templates

2009-07-06 Thread Nico Kruber
Just tested your patch and it fixes my first issues but not the value-
template.


Nico

On Monday 06 July 2009 14:06:29 Nico Kruber wrote:
> I'll try that (waiting for the compile to finish ;) )
>
> In the meanwhile:
> with today's snapshot I noticed another strange behaviour:
> When opening a session which contains the file with this source, I do not
> get the errors, even when I switch to other files or build the app. Closing
> and opening that file again (or changing any text in it) shows the errors
> again. (it's just a minor visualisation error though)
>
> Also the following results in a similar error message (using the boost
> library):
>
> template
> void setArray(boost::array* array) {
> }
> --> "'elements' is not a type name" (it isn't but that's fine, too ;) )
>
>
> I'll report back later whether your patch fixes those issues
>
> Nico
>
> On Monday 06 July 2009 13:44:23 Roberto Raggi wrote:
> > Hi Niko,
> >
> > please try this patch.
> >
> > ciao robe
> >
> > diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/
> > cpptools/cppmodelmanager.cpp
> > index 7d7dc94..53f1498 100644
> > --- a/src/plugins/cpptools/cppmodelmanager.cpp
> > +++ b/src/plugins/cpptools/cppmodelmanager.cpp
> > @@ -373,6 +373,14 @@ protected:
> >
> >   virtual bool visit(TypenameTypeParameterAST *ast)
> >   {
> > +if (NameAST *nameAst = ast->name)
> > +addType(nameAst->name);
> > +
> > +return true;
> > +}
> > +
> > +virtual bool visit(TemplateTypeParameterAST *ast)
> > +{
> >   if (ast->name)
> >   addType(ast->name->name);
> >
> > On Jul 6, 2009, at 1:22 PM, Nico Kruber wrote:
> > > I've been working with template templates and there are still some
> > > bugs in Qt
> > > Creator's syntax highlighter which highlights my code suggesting it
> > > has errors
> > > (snapshot from 01/07/2009):
> > >
> > > 
> > >
> > > template< template< typename > class Container, typename ElementType >
> > > bool printSimulations(Container container){
> > > }
> > > --> "'Container' is not a type name"
> > >
> > > 
> > >
> > > template< template< typename > class Container, typename ElementType >
> > > bool printSimulations(Container container);
> > > --> strangely this doesn't show any error
> > >
> > > 
> > >
> > > template< template< typename > class Container, typename ElementType >
> > > bool printSimulations(Container container, const QString&
> > > path);
> > > --> "'Container' is not a type name"
> > > (adding an additional "typename" before Container works with the
> > > syntax
> > > highlighter, but not with g++ - QtCreator could instead complain
> > > about that ;)
> > > )
> > >
> > > 
> > >
> > > template< template< typename > class Container, typename ElementType >
> > >bool printSimulations(Container container, const
> > > QString& path) {
> > >
> > >  typename Container::const_iterator i =
> > > container.constBegin();
> > >  const typename Container::const_iterator end =
> > > container.constEnd();
> > >  while(i != end) {
> > >// do something
> > >++i;
> > >  }
> > > }
> > > --> "'Container' is not a type name" at the function
> > > declaration
> > > --> and "'Container is not a namespace or class name" shown at the
> > > const_iterator lines
> > >
> > > 
> > >
> > > Cheers,
> > > Nico Kruber
> > > ___
> > > 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


signature.asc
Description: This is a digitally signed message part.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Drawing on QWidget

2009-07-06 Thread Alex Williams
> Don't exaggerate... If you look through the QWidget's documentation, sooner
> or later, you must see the paintEvent() method and it's described really
> well...

OK, sorry... I looked at QPainter documentation only. Thank you all for help.
P.S.
I'm just comparing effort of starting to paint with other toolkits :)
VCL - 5 minutes, wxWidgets - 1 hour, Qt - 4 days :)
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Syntax highlighting, template templates

2009-07-06 Thread Nico Kruber
I'll try that (waiting for the compile to finish ;) )

In the meanwhile:
with today's snapshot I noticed another strange behaviour:
When opening a session which contains the file with this source, I do not get 
the errors, even when I switch to other files or build the app. Closing and 
opening that file again (or changing any text in it) shows the errors again.
(it's just a minor visualisation error though)

Also the following results in a similar error message (using the boost 
library):

template
void setArray(boost::array* array) {
}
--> "'elements' is not a type name" (it isn't but that's fine, too ;) )


I'll report back later whether your patch fixes those issues

Nico

On Monday 06 July 2009 13:44:23 Roberto Raggi wrote:
> Hi Niko,
>
> please try this patch.
>
> ciao robe
>
> diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/
> cpptools/cppmodelmanager.cpp
> index 7d7dc94..53f1498 100644
> --- a/src/plugins/cpptools/cppmodelmanager.cpp
> +++ b/src/plugins/cpptools/cppmodelmanager.cpp
> @@ -373,6 +373,14 @@ protected:
>
>   virtual bool visit(TypenameTypeParameterAST *ast)
>   {
> +if (NameAST *nameAst = ast->name)
> +addType(nameAst->name);
> +
> +return true;
> +}
> +
> +virtual bool visit(TemplateTypeParameterAST *ast)
> +{
>   if (ast->name)
>   addType(ast->name->name);
>
> On Jul 6, 2009, at 1:22 PM, Nico Kruber wrote:
> > I've been working with template templates and there are still some
> > bugs in Qt
> > Creator's syntax highlighter which highlights my code suggesting it
> > has errors
> > (snapshot from 01/07/2009):
> >
> > 
> >
> > template< template< typename > class Container, typename ElementType >
> > bool printSimulations(Container container){
> > }
> > --> "'Container' is not a type name"
> >
> > 
> >
> > template< template< typename > class Container, typename ElementType >
> > bool printSimulations(Container container);
> > --> strangely this doesn't show any error
> >
> > 
> >
> > template< template< typename > class Container, typename ElementType >
> > bool printSimulations(Container container, const QString&
> > path);
> > --> "'Container' is not a type name"
> > (adding an additional "typename" before Container works with the
> > syntax
> > highlighter, but not with g++ - QtCreator could instead complain
> > about that ;)
> > )
> >
> > 
> >
> > template< template< typename > class Container, typename ElementType >
> >bool printSimulations(Container container, const
> > QString& path) {
> >
> >  typename Container::const_iterator i =
> > container.constBegin();
> >  const typename Container::const_iterator end =
> > container.constEnd();
> >  while(i != end) {
> >// do something
> >++i;
> >  }
> > }
> > --> "'Container' is not a type name" at the function
> > declaration
> > --> and "'Container is not a namespace or class name" shown at the
> > const_iterator lines
> >
> > 
> >
> > Cheers,
> > Nico Kruber
> > ___
> > 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


signature.asc
Description: This is a digitally signed message part.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Syntax highlighting, template templates

2009-07-06 Thread Roberto Raggi
Hi Niko,

please try this patch.

ciao robe

diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/ 
cpptools/cppmodelmanager.cpp
index 7d7dc94..53f1498 100644
--- a/src/plugins/cpptools/cppmodelmanager.cpp
+++ b/src/plugins/cpptools/cppmodelmanager.cpp
@@ -373,6 +373,14 @@ protected:

  virtual bool visit(TypenameTypeParameterAST *ast)
  {
+if (NameAST *nameAst = ast->name)
+addType(nameAst->name);
+
+return true;
+}
+
+virtual bool visit(TemplateTypeParameterAST *ast)
+{
  if (ast->name)
  addType(ast->name->name);



On Jul 6, 2009, at 1:22 PM, Nico Kruber wrote:

> I've been working with template templates and there are still some  
> bugs in Qt
> Creator's syntax highlighter which highlights my code suggesting it  
> has errors
> (snapshot from 01/07/2009):
>
> 
>
> template< template< typename > class Container, typename ElementType >
> bool printSimulations(Container container){
> }
> --> "'Container' is not a type name"
>
> 
>
> template< template< typename > class Container, typename ElementType >
> bool printSimulations(Container container);
> --> strangely this doesn't show any error
>
> 
>
> template< template< typename > class Container, typename ElementType >
> bool printSimulations(Container container, const QString&  
> path);
> --> "'Container' is not a type name"
> (adding an additional "typename" before Container works with the  
> syntax
> highlighter, but not with g++ - QtCreator could instead complain  
> about that ;)
> )
>
> 
>
> template< template< typename > class Container, typename ElementType >
>bool printSimulations(Container container, const  
> QString& path) {
>
>  typename Container::const_iterator i =  
> container.constBegin();
>  const typename Container::const_iterator end =
> container.constEnd();
>  while(i != end) {
>// do something
>++i;
>  }
> }
> --> "'Container' is not a type name" at the function  
> declaration
> --> and "'Container is not a namespace or class name" shown at the
> const_iterator lines
>
> 
>
> Cheers,
> Nico Kruber
> ___
> 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] Syntax highlighting, template templates

2009-07-06 Thread Nico Kruber
I've been working with template templates and there are still some bugs in Qt 
Creator's syntax highlighter which highlights my code suggesting it has errors 
(snapshot from 01/07/2009):



template< template< typename > class Container, typename ElementType >
bool printSimulations(Container container){
}
--> "'Container' is not a type name"



template< template< typename > class Container, typename ElementType >
bool printSimulations(Container container);
--> strangely this doesn't show any error



template< template< typename > class Container, typename ElementType >
bool printSimulations(Container container, const QString& path);
--> "'Container' is not a type name"
(adding an additional "typename" before Container works with the syntax 
highlighter, but not with g++ - QtCreator could instead complain about that ;) 
)



template< template< typename > class Container, typename ElementType >
bool printSimulations(Container container, const QString& path) {
  
  typename Container::const_iterator i = container.constBegin();
  const typename Container::const_iterator end = 
container.constEnd();
  while(i != end) {
// do something
++i;
  }
}
--> "'Container' is not a type name" at the function declaration
--> and "'Container is not a namespace or class name" shown at the 
const_iterator lines



Cheers,
Nico Kruber


signature.asc
Description: This is a digitally signed message part.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] latest git build laggy?

2009-07-06 Thread Boy Lenssen
Works with lag indeed..thanks...

 



From: Roberto Raggi [mailto:roberto.ra...@trolltech.com] 
Sent: maandag 6 juli 2009 10:05
To: qt-creator@trolltech.com
Subject: Re: [Qt-creator] latest git build laggy?

 

 

Hi,

 

please can you try today's snapshot?

 

ciao robe

 

On Jul 3, 2009, at 2:01 PM, Boy Lenssen wrote:





Some more info: I found when I click somewhere, it hangs for about a
second...

 



From: Boy Lenssen [mailto:boy.lens...@esaote.nl] 
Sent: vrijdag 3 juli 2009 13:59
To: qt-creator@trolltech.com
Subject: [Qt-creator] latest git build laggy?

 

Hi,

 

Just to make sure: is the latest build with other users also laggy?
Often, when I type it hangs for a few seconds.

I don't seem to have this problem with the released version.

 

I'm using XP SP3

___
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] Drawing on QWidget

2009-07-06 Thread Adrian Łubik
Don't exaggerate... If you look through the QWidget's documentation, sooner
or later, you must see the paintEvent() method and it's described really
well...

>
> Anyway, there is no clear path from QPainter to QWidget, and no
> information about painting in context of Qt Creator. Just search in
> samples and internet - if you find this info you will be a hero and I
> you deserve medal ^_^
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Error writing to program database with CDB and Qt Creator 1.2

2009-07-06 Thread Robert Caldecott
I am using Qt Creator 1.2/XP SP3/Qt 4.5.2 built with MSVC9 and when
building again after a CDB debugging session I am often getting the
following error:

:-1: error:  error writing to program database 'C:\..\foo.pdb'; check
for insufficient disk space, invalid path, or insufficient privilege

This happens perhaps 20% of the time and the only way to clear this is
to restart Qt Creator.  Attempting to delete the file in Windows
Explorer results in an 'Access is denied' error.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] CDB debug helpers bug with reference parameters

2009-07-06 Thread Robert Caldecott
I am using Qt Creator 1.2 on Windows XP SP3 with a MSVC9 build of Qt
4.5.2 and the MS CDB cannot show Qt objects when they are passed to a
function by reference.  For example:

#include 
#include 

void test(const QString& str)
{
// Do something with str
}

int main(int argc, char *argv[])
{
QString str = "Hello, world!";
test(str);
return 0;
}

If you put a breakpoint in 'main' on the 'test(str)' line, the
contents of the 'str' QString display fine.  If you then step into the
'test' function then the passed QString contents are not displayed and
instead look like this:

str 0x0012ff58 class QString* QString*

I tried again using gdb and this works fine (but only the first time I
run Qt Creator due to the known issue with restarting gdb...).

I tend to use a lot of foreach loops with const reference parameters -
foreach (const QString& str, list) - and so this bug is quite
frustrating.

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


Re: [Qt-creator] latest git build laggy?

2009-07-06 Thread Roberto Raggi


Hi,

please can you try today's snapshot?

ciao robe

On Jul 3, 2009, at 2:01 PM, Boy Lenssen wrote:

Some more info: I found when I click somewhere, it hangs for about a  
second…


From: Boy Lenssen [mailto:boy.lens...@esaote.nl]
Sent: vrijdag 3 juli 2009 13:59
To: qt-creator@trolltech.com
Subject: [Qt-creator] latest git build laggy?

Hi,

Just to make sure: is the latest build with other users also laggy?  
Often, when I type it hangs for a few seconds.

I don’t seem to have this problem with the released version.

I’m using XP SP3
___
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] Error/Warning underlining issue

2009-07-06 Thread Roberto Raggi

Hi Frank,

Yeah, we are working on many new features for the next main release of  
Creator so the code in the master's branch can get quite unstable :)
Please continue to report bugs and regressions we will try to fix them  
ASAP.

Thanks for the report

ciao robe

On Jul 3, 2009, at 10:33 PM, Frank Neuhaus wrote:

> Hi,
>
> I have this code:
>
> template
> class X
> {
>   void doSomething(X v)
>   {
>   std::cout << "hello world" << std::endl;
>   }
> };
>
> Qt Creator incorrectly underlines the line "void doSomething(X
> v)" saying "'N' is not a type name". It compiles fine though.
> I am using the latest version from git.
>
> Thanks
>   Frank
> ___
> 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] Drawing on QWidget

2009-07-06 Thread Alex Williams
> The induction from "I could not find it" to "it is (generally) hard to find"
> is lacking a proof. [I doubt there is one as I have a counter example:
> I found that page within two minutes without ever seing it before]

> And, as a really subjective point: Given your wxWidgets code below I am
> fairly sure you knew that you had to create a widget for "such a
> primitive action as drawing something". wxPanel is a widget, isn't it?

Please, stop this... don't worry & relax... :) wxPanel - i'm just
dropping this widget on form and no more actions required. I didn't
knew that NOW for painting we must create our own widget. That's all.
Thanks to Coda Highland, I know that this is for performance reason.

Anyway, there is no clear path from QPainter to QWidget, and no
information about painting in context of Qt Creator. Just search in
samples and internet - if you find this info you will be a hero and I
you deserve medal ^_^
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator