Re: [Qt-creator] Creating cmake instead of qmake project?

2010-12-12 Thread Danny Price
That was extremely...unhelpful.

You might find this useful Nikos: 
http://strange-paradox.livejournal.com/1855.html#cutid1


On 12 Dec 2010, at 21:55, Andre Poenitz wrote:

> On Sun, Dec 12, 2010 at 11:46:52PM +0200, Nikos Chantziaras wrote:
>> Currently, I don't see a way of creating a cmake-based project with 
>> Creator (2.1.0 RC1) when selecting "File->New File or Project".  I 
>> compiled Creator with cmake support, and "Help->About Plugins" lists 
>> "CMakeProjectManager" is installed and activated.
>> 
>> Am I missing something?
> 
> No. This feature does not exist.
> 
> 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


Re: [Qt-creator] Again checked qt-creator progress...

2010-12-02 Thread Danny Price
Hehe it's like the control panel properties in the Designer inspector that
simply repeat the title as opposed to providing any useful information.

On Thu, Dec 2, 2010 at 8:54 AM, Guido Seifert  wrote:

> ...and I am still not so satisfied.
> I am very happy that I now can disable one automatic annoyance by setting
>  'Activate Autocompletion'  to 'When triggered'.
>
> Is there a way to disable all the other popups in text, too?  I find it
> very distracting when some text pops up that I can help with F1 whenever I
> move the mouse over some keyword.
>
> And proably the most idiotic feature of the qt-creator.
> Line like:
> anchors.horizontalCenter: parent.horizontalCenter
> Mouse in same line -> popup (or better tooltip): AnchorLine.
> Thank you, Mr. Obvious.
>
> Why not automatic comments? ++a -> automatic comment: // increases a by
> one.
>
> Regards,
> Guido
>
> --
> GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit
> gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
> ___
> 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] Qt Creator master on Mac 10.4

2010-11-03 Thread Danny Price
Thanks for the heads-up.

Out of interest, how can you use rpath with qmake, in the pro. file? I still
use excutable_path, run as a post-link command on my dylibs.

On Mon, Nov 1, 2010 at 2:21 PM,  wrote:

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


Re: [Qt-creator] linking libs with shadow builds fails

2010-09-23 Thread Danny Price
I didn't provide a link. I said I could provide a sample project if you need it.

Your post said that the library was created as a project in a subdir therefore 
it is not an 'external' library. And the path is not correct - if it was 
correct you would not be having these problems.

On 23 Sep 2010, at 23:44, Matthias Pospiech wrote:

>  Am 24.09.2010 00:27, schrieb Danny Price:
>> I think your code is failing because you're not accounting for the 
>> paths within the build directory.
>> 
> Sorry, but I do not see the link to the information you provide. I have 
> a problem with an external library.
> And the path to the library is correct.
> 
> Matthias
> ___
> 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] linking libs with shadow builds fails

2010-09-23 Thread Danny Price
I think your code is failing because you're not accounting for the paths within 
the build directory.

When you use shadow builds and your projects are contained within a subdir, 
everything is built under the same directory so you just have to make sure your 
paths are relative to that build output. Example:

I have to projects in a subdir. 'MyLib' is a static lib:

CONFIG(debug, debug|release) {
OBJECTS_DIR = ./Debug
} else {
OBJECTS_DIR = ./Release
}

CONFIG += debug_and_release

DESTDIR = $${OBJECTS_DIR}

This ensures that the lib is built in a directory called Debug or Release 
depending on the configuration. 

I have a unit test, MyTest, an executable that links against MyLib.a:

_LIB_PATH   = ../MyLib/${OBJECTS_DIR}
LIBS += -L$${_LIB_PATH} -lMyLib
PRE_TARGETDEPS += $${_LIB_PATH}libMyLib.a

This code will work with shadow builds because both MyLib and MyTest are built 
to the same directory tree. MyTest simply navigates up one level from it's 
output directory to find the MyLib directory. This contains the library binary 
under a directory with the same name as a the configuration (OBJECTS_DIR).

The _LIB_PATH variable is just a convenience and the PRE_TARGETDEPS ensures the 
library is re-linked by MyTest when it changes.

This example is from OSX and I might be missing a few things because QMake is 
something of a black art. If you need an working example I can make you one.


On 23 Sep 2010, at 21:54, Matthias Pospiech wrote:

> I experience so frequently problems with shadow builds that I switch them off 
> by default.
> However I understand the principle behind the shadow builds and would also 
> like to understand
> how to get my project working with shadow builds.
> 
> Here is what I do: A project which creates a lib which is later linked in the 
> example.
> 
> /project/example/
> /project/fftw/32/libfftw3-3.a <- the lib file I want to link against
> /project/src/ <- my own libary code, containing src.pro
> 
> I am using subdirs. In src.pro I am using this code to link:
> LIBS += -L../lib/fftw/32/ -lfftw3-3
> 
> which _fails_ with shadow builds
> 
> If I use this code:
> LIBS += -L../lib/other/fftw/32/libfftw3-3.a
> then it does not complain about not finding the lib file.
> However non of the containing functions are found. Which means it was no 
> linked.
> 
> without shadow builds everything works as expected.
> 
> Solutions of this problem are welcome,
> however any solution requiring an absolute path c:\user\ is a no go.
> 
> Matthias
> 
> 
> 
> 
> 
> 
> ___
> 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] plain C++ project

2010-09-23 Thread Danny Price
Yeah that's what it wants you to think.

>  but for simple projects like
> school assignments, it's PERFECT in its simplicity. You can't GET
> simpler.
> 
> /s/ Adam
> 
> On Thu, Sep 23, 2010 at 5:25 AM, Max Waterman
>  wrote:
>> I'm trying to get my university C++ course tutor to use QtCreator in his
>> lectures rather than something which actually looks pretty aweful.
>> 
>> However, because he's not teaching Qt, he needs it to support plain
>> boring C++.
>> 
>> What's the easiest way to do this? It's not entirely obvious from the
>> project options.
>> 
>> Max.
>> ___
>> 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] plain C++ project

2010-09-23 Thread Danny Price
I completely disagree. C++ is complex enough without having to worry about
introducing makefiles and toolchains to students, particularly non-standard,
platform-specific makefiles and toolchains.

On Thu, Sep 23, 2010 at 1:04 PM, Karl Ruetz  wrote:

>  It would also depend on exactly what is being taught.  If this is a level
> one C++ course, I would recommend editing the make file manually so the
> students have some basic understanding of what a makefile is and how it
> relates to project management.  Then you can move to CMake or qmake or
> whatever makefile generator makes sense and see what these tools do for you
> as your projects become more complex.
>
> Karl
>
> On 9/23/2010 6:41 AM, Danny Price wrote:
>
> You can do that but it means using qmake which is rather unforgiving and
> cludgy. It's nice to have confidence in your tools. Plus it mean every
> student would need the Qt sdk. You'd much rather spend your time
> productively than trying to figure what qmake is not linking your libraries
> because you got the order of the variables wrong.
>
>  Again, I would really recommend CMake. A project is just a single text
> file which you can process with a GUI tool to generate the make files for
> your platform.
>
> On Thu, Sep 23, 2010 at 12:35 PM, Max Waterman <
> davidmaxwaterman+qtcrea...@fastmail.co.uk
> > wrote:
>
>> Wow. So much trouble/hassle :(
>>
>> I think I'd rather recommend just making a Qt Console application and
>> editing the project file to remove 'core' from $$QT.
>>
>> The lecturer can then just this project to quickly 'type, compile, run'
>> stuff, with the console output at the bottom of the page.
>>
>> Perhaps bigger generic projects would benefit from following the
>> instructions below, but it's too much effort compared to his current
>> tool for me to be able to recommend it.
>>
>> Thanks though,
>>
>> Max.
>>
>> On Thu, 23 Sep 2010 21:49 +1100, "Alexander 'hatred' Drozdoff"
>>  wrote:
>> > В Thu, 23 Sep 2010 13:25:41 +0300
>> > "Max Waterman" 
>> > >
>> пишет:
>> >
>> > MW> I'm trying to get my university C++ course tutor to use QtCreator in
>> > his
>> > MW> lectures rather than something which actually looks pretty aweful.
>> > MW>
>> > MW> However, because he's not teaching Qt, he needs it to support plain
>> > MW> boring C++.
>> > MW>
>> > MW> What's the easiest way to do this? It's not entirely obvious from
>> the
>> > MW> project options.
>> >
>> > Create Makefile-based project and use Generic project
>> > http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html
>> >
>> >
>> > --
>> > WBR
>> > Alexander Drozdov
>> > FIDO: 2:5045/41.84
>> > Site: http://hatred.homelinux.net
>> > Site: http://archlinux.org.ru
>> >
>> > ___
>> > 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 
> listqt-crea...@trolltech.comhttp://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] plain C++ project

2010-09-23 Thread Danny Price
You can do that but it means using qmake which is rather unforgiving and
cludgy. It's nice to have confidence in your tools. Plus it mean every
student would need the Qt sdk. You'd much rather spend your time
productively than trying to figure what qmake is not linking your libraries
because you got the order of the variables wrong.

Again, I would really recommend CMake. A project is just a single text file
which you can process with a GUI tool to generate the make files for your
platform.

On Thu, Sep 23, 2010 at 12:35 PM, Max Waterman <
davidmaxwaterman+qtcrea...@fastmail.co.uk
> wrote:

> Wow. So much trouble/hassle :(
>
> I think I'd rather recommend just making a Qt Console application and
> editing the project file to remove 'core' from $$QT.
>
> The lecturer can then just this project to quickly 'type, compile, run'
> stuff, with the console output at the bottom of the page.
>
> Perhaps bigger generic projects would benefit from following the
> instructions below, but it's too much effort compared to his current
> tool for me to be able to recommend it.
>
> Thanks though,
>
> Max.
>
> On Thu, 23 Sep 2010 21:49 +1100, "Alexander 'hatred' Drozdoff"
>  wrote:
> > В Thu, 23 Sep 2010 13:25:41 +0300
> > "Max Waterman" 
> > >
> пишет:
> >
> > MW> I'm trying to get my university C++ course tutor to use QtCreator in
> > his
> > MW> lectures rather than something which actually looks pretty aweful.
> > MW>
> > MW> However, because he's not teaching Qt, he needs it to support plain
> > MW> boring C++.
> > MW>
> > MW> What's the easiest way to do this? It's not entirely obvious from the
> > MW> project options.
> >
> > Create Makefile-based project and use Generic project
> > http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html
> >
> >
> > --
> > WBR
> > Alexander Drozdov
> > FIDO: 2:5045/41.84
> > Site: http://hatred.homelinux.net
> > Site: http://archlinux.org.ru
> >
> > ___
> > 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] plain C++ project

2010-09-23 Thread Danny Price
If you have the option, I would recommend CMake. It's a lot easier than
crafting your own makefiles. Creator has very limited support for cmake but
it's enough for trivial projects.

On Thu, Sep 23, 2010 at 11:49 AM, Alexander 'hatred' Drozdoff <
adrozd...@gmail.com> wrote:

> В Thu, 23 Sep 2010 13:25:41 +0300
> "Max Waterman" 
> >
> пишет:
>
> MW> I'm trying to get my university C++ course tutor to use QtCreator in
> his
> MW> lectures rather than something which actually looks pretty aweful.
> MW>
> MW> However, because he's not teaching Qt, he needs it to support plain
> MW> boring C++.
> MW>
> MW> What's the easiest way to do this? It's not entirely obvious from the
> MW> project options.
>
> Create Makefile-based project and use Generic project
> http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-generic.html
>
>
> --
> WBR
> Alexander Drozdov
> FIDO: 2:5045/41.84
> Site: http://hatred.homelinux.net
> Site: http://archlinux.org.ru
>
> ___
> 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] The last two weeks in Creator

2010-09-20 Thread Danny Price
> 
> ---++ Qmake
>* Project wizards were extended to make the generated .pro-files
>  more usable for use in SUBDIRS pro-files.
>* New wizard to help with adding new library dependencies to
>  .pro-files.


Just had a quick play with the library wizard. This is a HUGE step forward for 
Creator!
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Run config dialog is not updated after adding and remove projects from a subdir

2010-09-17 Thread Danny Price
I was going to add this a bug but figured I'd ask here first if there's a 
workaround.

I have subdir template containing several projects. I open the .pro file in 
Creator. Creator generates a pro.user set to build the projects in a shadow 
build directory.

If I edit the subdir to manually add or remove projects to it, the Projects 
tree is correctly updated but the 'run configuration' sheet-thing is not so I 
cannot select the new projects from it. Closing the project does not help. I 
have to TRASH THE PRO.USER and then re-import the .pro file into Creator 
(causing it to generate a new one) in order to get it back in sync with the 
projects.

This did not happen in Creator 1.3x and although the configuration selector is 
a much cleaner interface, this is a deal-breaker for me as I'm often adding and 
remove projects from the 'solution' and another reason to despise pro.user 
files!

Is this a known issue? Is there a workaround?
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] New EnvironmentId variable in .creator.user files

2010-09-17 Thread Danny Price
If that is the case, what is the purpose of the pro.user files?

> 
> On Fri, Sep 17, 2010 at 7:28 AM, Coda Highland  wrote:
> A properly configured .pro file should be able to satisfy your needs;
> Qt is designed to be able to handle building apps at the command line
> without needing to use Creator at all, and that doesn't use the
> .pro.user file, so you should be able to put all of the necessary
> configuration in the .pro file.
> 
> /s/ Adam

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


Re: [Qt-creator] All libraries statically linked

2010-09-16 Thread Danny Price
What the heck is SUBLIBS?

This is what really irritates me about qmake. I'll spend hours trying to get
one trivial thing to work only to find that there's an undocumented variable
that would have done the job for. Or at least it would do that job
*sometimes*.

Is QMake simply on life-support? Is anyone still working on it?

On Thu, Sep 16, 2010 at 1:29 PM, Oswald Buddenhagen <
oswald.buddenha...@nokia.com> wrote:

> On Thu, Sep 16, 2010 at 01:46:47PM +0200, ext Danny Price wrote:
> > Don't forget to the PRE_TARGETDEPS if you expect the libraries to be
> re-linked
> > when they change. I've only managed to get this to work when all projects
> were
> > part of a SUBDIR however (at least with shadow builds which are too much
> of a
> > hassle to turn off).
> >
> i recently stumbled over the code of yet another totally undocumented
> qmake feature: list needed internal static libraries in the SUBLIBS
> qmake variable to get the dependencies and the rebuilding of the libs
> (kind of) right. this may be limited to the makefile based build tools,
> and you do it completely at your own backwards compatibility risk.
> ___
> 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] All libraries statically linked

2010-09-16 Thread Danny Price
Don't forget to the PRE_TARGETDEPS if you expect the libraries to be
re-linked when they change. I've only managed to get this to work when all
projects were part of a SUBDIR however (at least with shadow builds which
are too much of a hassle to turn off).

On Thu, Sep 16, 2010 at 12:22 PM, André Pönitz wrote:

> On Thursday 16 September 2010 13:11:35 ext Paul Smith wrote:
> > Dear All,
> >
> > I would like to compile my programs with ALL necessary libraries
> > statically linked.
>
> [Why?]
>
> > With KDevelop, there is an option "All static libraries" to do that
> > automatically;
>
> It changes the project files to add linker instructions to use static
> instead of dynamic libraries?
>
> > I cannot find a similar option in QtCreator.
>
> You need a static build of Qt to start with, then in the .pro use e.g.
> the LIBS variable to directly include the .a files.
>
> 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


Re: [Qt-creator] using environment variables in build directory specification for CMake project

2010-09-14 Thread Danny Price
Those setting are stored in the pro.user files.

You're better off putting them in the .pro files directly.

On 14 Sep 2010, at 19:08, Theo de Vries wrote:

> I would very much like to specify a Build directory in the Projects
> view, Build settings tab that is relative to some environment variable
> for CMake projects. The reason being that my projects may be
> transported to several computers with differing user names and
> directory layouts.
> I have been trying to use things like $PWD and  $$(PWD) but this does
> not seem to work.
> How can I accomplish what I want?
> 
> Thanks in advance,
> Theo.
> ___
> 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] Any way to stop qt creator automatically hiding itself on application flip?

2010-08-24 Thread Danny Price
On Tue, Aug 24, 2010 at 12:47 PM, Jan Ekholm wrote:

>
> Well, I've never got the idea behind those votes. Are they there so that I
> can try to get the bugs
> that most annoy me to get more attention and thus get fixed?


In my experience that is not the case :(
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Any way to stop qt creator automatically hiding itself on application flip?

2010-08-23 Thread Danny Price
I've also noticed this behavior on Mac. Sometimes Create will hide itself
when launching the application, sometimes not.

On Mon, Aug 23, 2010 at 8:31 AM, Brett Morgan wrote:

> OSX 10.6 default =)
>
>
> On Mon, Aug 23, 2010 at 5:09 PM, Kai Koehne  wrote:
>
>> On 8/23/2010 8:11 AM, ext Brett Morgan wrote:
>> >
>> > Qt Creator has taken to hiding itself of late. Semi randomly when
>> > starting an application, and pretty much constantly when i want to flip
>> > to Grab to snapshot some broken part of the UI.
>> >
>> > Is there a way to stop it auto hiding? Tis hella annoying.
>>
>> Sounds like a window manager issue. Which OS/Window Manager are you using?
>>
>> Kai
>>
>>
>> --
>> Kai Koehne
>> 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
>>
>
>
>
> --
> Brett Morgan
> http://www.google.com/profiles/brett.morgan
>
> ___
> 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] *.cpp & *.h lost from project ?

2010-08-18 Thread Danny Price
I've never seen the *.h wildcard used in .pro files either! Nice find if it
works!

On Wed, Aug 18, 2010 at 8:32 AM, Jakov  wrote:

> Hi,
>
> Why don't you try to use the normal way:
>
> HEADERS += business/*.h
> SOURCES += *.cpp \
>   business/*.cpp
>
> I've never seen HEADERS *= before :-) I'm a newbie too.
>
>
>
>
> On Wed, Aug 18, 2010 at 2:27 PM, Jordi Pujol  wrote:
>
>> Hi all,
>>
>> I don't remember if this bug was reported, but last week I had to make a
>> fresh install of QtCreator and I used the last known distribution
>> version ( 2.0.0 ) on a windows machine.
>>
>> I'm currently using 1.3.1 version ( Qt 4.6.2, Ubuntu 64 bits ) for my
>> daily work and I use to create projects like this :
>>
>> *
>>
>> TARGET   = PLG_Planif
>> TEMPLATE = lib
>>
>> ADDLIBS = EPC_Model
>>
>> MPFDIR=$$IN_PWD/../../../../MPF
>> APPDIR=$$IN_PWD/../../..
>>
>> CONFIG -= debug_and_release debug_and_release_target debug release
>> CONFIG *= MPFPlugin opt_app debug_and_release
>>
>> DEFINES += __EXPORT_PLUGIN_DLL__ __MPF_CALL_TRACE_SCOPE__
>>
>> HEADERS *= business/*.h
>> SOURCES *= *.cpp \
>>   business/*.cpp
>>
>> *
>>
>> The relevant lines are the ones related to HEADERS & SOURCES. With
>> version 1.3.1, I can see all the files in the project tree. But with
>> 2.0.0 no CPP or H file is shown on that tree.
>>
>> Why this option has changed ? It's a must for me the old behaviour, so I
>> usually have projects with many files well organized in directories and
>> it's very useful for me define .pro files like that.
>>
>> I have a "code generator" that creates pairs of CPP / H files for table
>> management classes and it's annoying to edit every time I have to add a
>> file the .pro file to add them.
>>
>> Also, some projects have more than 30 classes in it, so it's a tedious
>> task...
>>
>> Regards,
>>
>>Jordi.
>>
>> ___
>> 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] Creator incorrectly underlines size_t as 'not a type name'

2010-08-12 Thread Danny Price
I working on a simple C program and I'm using variables and parameters of type 
size_t. Although the code compiles fine, Creator insists on underlining in 
green every occurrence of the size_t symbol with the tooltip "'size_t' is not a 
typename".

I'm on OSX and size_t is defined in stddef.h which I have included. I've 
observed the same problem in Creator 2.0 and the latest 2.1 snapshots.

Is this a bug? Is there a workaround?
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] QtCreator's {source editor}-based text editor :)

2010-07-30 Thread Danny Price
On Fri, Jul 30, 2010 at 10:14 AM, Tobias Hunger wrote:

> On 30.07.2010 10:57, ext Danny Price wrote:
> > TextMate is a very heavy-weight product. Ideally this Creator 'Lite'
> > would just be a text editor with syntax highlighting (it doesn't really
> > need auto-completion).
>
> Arent there lots of lightwight text editors with syntax highlighting
> available already?


Few that are cross platform and none that I know about that aren't ugly as
sin and/or are as slow as a snail (Java).

Why add another one? To me creator shines since it
> understands the code I write. So some simple regular expression based
> syntax highlighting is not enough.
>

That's exactly why it would be good :)

>
> Of course you can just take the C++ engine build into creator (just
> include cplusplus.pri into your project, it is meant to be reusable) and
> build a more light weight editor. Of course for the engine to work
> properly you need to provide it with information like which other files
> are there, where to look for files to include, etc. ... basically all
> the stuff that makes a project:-)
>
> > Most importantly, it must launch really fast. The
> > recent releases of Creator have started to become rather sluggish on
> > startup; VisualStudio 2008 actually launches faster on my machine now
> > than Creator which isn't good.
>
> Where does it take so much time? It feels pretty fast for me (less that
> 3s). I did have trouble with sluggish startup for a while on windows
> though. Turned out that my proxy setup in windows was to blame. Windows
> insisted on figuring out by waiting for a timeout that I do not need a
> proxy (automatic proxy configuration)... and it insisted on blocking
> while doing this:-/
>

I'll start Creator from the Start menu in Windows (or the dock on my Mac at
home for that matter) and it can take up 10s to actually appear. I suspect
it might be something to do with loading content from the web and both
machines are on entirely different networks with good net connections.



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


Re: [Qt-creator] QtCreator's {source editor}-based text editor :)

2010-07-30 Thread Danny Price
At first I thought this was a silly request given that Creator is already
fairly lightweight but now that I've thought about it, a standalone text
editor would be really useful. I often have to edit .pro files outside of
creator when setting up projects and for that I use Notepad or TextEdit.

TextMate is a very heavy-weight product. Ideally this Creator 'Lite' would
just be a text editor with syntax highlighting (it doesn't really need
auto-completion). Most importantly, it must launch really fast. The recent
releases of Creator have started to become rather sluggish on startup;
VisualStudio 2008 actually launches faster on my machine now than Creator
which isn't good.

On Thu, Jul 29, 2010 at 5:54 PM, Ilyes Gouta  wrote:

> Hi,
>
> Is it possible to pull out QtCreator's source code editor and make it
> a stand alone text editor? Something like TextMate, beautiful, raw yet
> consistent?
>
> How much effort would that require?
>
> Thanks,
> Ilyes Gouta
> ___
> 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] Adding header files

2010-07-23 Thread Danny Price
If you're a beginner then working with boost may be a bit ambitious.

Library and system headers are added to the include path so that you can do
stuff like this:

#include 

The include path tells the compiler where it can find the directory that
contains boost/xxx.

You do not add the files to your project.

Also a lot of the boost classes DO require libraries to be linked (regex for
example).

On Fri, Jul 23, 2010 at 12:13 PM, Jothy  wrote:

> I am not creating any make file for my project.
>
> If so how to do that in Qt Creator. I don't want to build corss-platform
> apps. If it runs on winodws thats fine.
>
> Thanks,
>
> Jothy
>
> On Fri, Jul 23, 2010 at 12:10 PM, Alex T.  wrote:
>
>> No, I'm talking about makefiles for your own project.
>>
>>
>> On 23 July 2010 14:01, Jothy  wrote:
>>
>>> No, in the boost website they say, we don't need to build them, we just
>>> need to include them.
>>>
>>> I am just a beginner in c++ and don't know many of the concepts.
>>>
>>> But, I able to build simple applications with vtk!
>>>
>>> Thanks,
>>>
>>> Jothy
>>>
>>>
>>> On Fri, Jul 23, 2010 at 11:54 AM, Alex T.  wrote:
>>>
 Did you regenerate Makefiles?


 On 23 July 2010 13:51, Jothy  wrote:

> Sorry for the mistake!
>
> Now set it to INCLUDEPATH += -IC:\Boost\multi_array
>
> it says view.hpp: No such file or dir
>
> Thanks,
>
> Jothy
>
>
> On Fri, Jul 23, 2010 at 11:47 AM, Alex T.  wrote:
>
>> -L is the flag that refers to libraries, and has to be passed to vars
>> as LIBS. the same with -l (lower el).
>>
>> -I (capital i)refers to includes.
>>
>> So this is not a good idea to pass -L to INCLUDEPATH. You need to
>> double check ytour paths.
>>
>>
>> On 23 July 2010 13:44, Jothy  wrote:
>>
>>> No, it says no such file or directory.
>>>
>>> I add INCLUDEPATH += -LC:\Boost\multi_array -lview
>>>
>>> Thanks,
>>>
>>> Jothy
>>>
>>>
>>> On Fri, Jul 23, 2010 at 11:35 AM, Alex T.  wrote:
>>>
 I don't think you need to add boost headers to HEADERS variable.
 Instead, add the path to boost headers to INCLUDEPATH variable, e.g.

 INCLUDEPATH += -I/home/user/my_unpacked_boost_headers/multi_array

 Note that is capital i before the path.

 After that just #include  in your sources.

 On 23 July 2010 12:53, Jothy  wrote:

> Hi Guys,
>
> I am trying to use boost header files with a simple Qt project in
> Qt creator. By right clicking "Add existing files" in the headers (in 
> the
> project files view), I added few boost headers.
>
> And the pro file look like this
>
> *QT += core gui *
>
> *TARGET = untitled8*
>
> *TEMPLATE = app*
>
> *SOURCES += main.cpp\*
>
> *widget.cpp
>
> *
>
> *HEADERS  += widget.h \*
>
> *../../Boost/multi_array/view.hpp \*
>
> *../../Boost/multi_array/types.hpp \*
>
> *../../Boost/multi_array/subarray.hpp \*
>
> *../../Boost/multi_array/storage_order.hpp \*
>
> *../../Boost/multi_array/range_list.hpp \*
>
> *../../Boost/multi_array/multi_array_ref.hpp \*
>
> *../../Boost/multi_array/iterator.hpp \*
>
> *../../Boost/multi_array/index_range.hpp \*
>
> *../../Boost/multi_array/index_gen.hpp \*
>
> *../../Boost/multi_array/extent_range.hpp \*
>
> *../../Boost/multi_array/extent_gen.hpp \*
>
> *../../Boost/multi_array/copy_array.hpp \*
>
> *../../Boost/multi_array/concept_checks.hpp \*
>
> *../../Boost/multi_array/collection_concept.hpp \*
>
> *../../Boost/multi_array/base.hpp \*
>
> *../../Boost/multi_array/algorithm.hpp
>
> *
>
> *FORMS+= widget.ui*
>
>
> Now, how should I add in the widget.cpp file. It does not show any
> of the hpp files after typing #include<, I even tried #include
>
> Any hints?
>
> Thanks,
>
> Jothy
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> 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/mailma

Re: [Qt-creator] Cout not printing

2010-07-22 Thread Danny Price
That's fine for C++ but what about C? printf("test\n") doesn't work unless I
follow it with flush(stdout).

I'm on OSX so the console config flag is not applicable.

On Thu, Jul 22, 2010 at 3:15 PM, Christian Kandeler <
christian.kande...@nokia.com> wrote:

> On 07/22/2010 04:11 PM, ext Jothy wrote:
> > Hi all,
> >
> > I am trying to print a string with cout, but it's not printing at all!
> >
> > I have included #include
> >
> > then
> >
> > cout<<"printing";
> >
> > But, nothing prints, while the application compiles and runs fine.
>
> Not a Qt Creator problem.
> You have to flush the output:
> std::cout << "printing" << std::endl;
>
>
> Christian
> ___
> 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] Switching project automatically

2010-07-22 Thread Danny Price
I agree!

On Thu, Jul 22, 2010 at 4:19 AM, Li Lirong  wrote:

> Hi,
>
> Before qtcreator 2.0, the current project was switched whenever the
> active file is switched.  This is handy because I can always "Ctrl +
> B" to build the project that contains the files I am currently
> editing.  Now in qtcreator 2.0, I have to manually change the project
> with several mouse clicks.  Is it possible to bring back the old
> behavior of switching project back in 2.0?
>
> Best regards,
> Lirong
> ___
> 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] How to set LIBS in pro file?

2010-07-21 Thread Danny Price
You don't pass the 'lib' and '.a' parts to the variable, only the library name.

On 21 Jul 2010, at 17:21, Jothy wrote:

> Hi Guys,
> 
> I have managed to build Qt creator from src, now I am using it with vtk. I 
> have built and installed vtk in C:\VTK and I have bin,lib,include.
> 
> I set INCLUDEPATH += C:\VTK\include\vtk-5.6
> 
> 
> 
> I set LIBS += -L\C:\VTK\lib\vtk-5.6 -llibQVTK.dll.a -llibvtkCommon.dll.a
> 
> and its able to find the files in include dir, but it say unable to find 
> dir/file QVTK.
> 
> What's wrong?
> 
> Thanks,
> 
> Jothy
> 
> 
> ___
> 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] Ability to specify custom tools

2010-07-21 Thread Danny Price
If you want a custom tool to run automatically as part of a build, qmake has
the QMAKE_POST_LINK variable to which you can pass a command line program
name and options.

On Wed, Jul 21, 2010 at 8:06 AM, Litkevich Yuriy  wrote:

>  Please make the possibility of creating custom tools.
> Example:
> Specify field "Name" = "Make debug"
> Specify field "Command" = "make debug"
> ...
> This name appears in the "Tools" menu.
> When I click on the "Make debug" item, the corresponding command is
> executed.
>
> It would be very convenient to realize the establishment of custom tools.
> Which would appear as a submenu.
>
>
> Attached screenshot of Programmer's Notepad 2, which I use to write
> programs.
>
>
>
>
>
>
> ___
> 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] parallel processing in make

2010-07-16 Thread Danny Price
I used to do that but the setting is lost when the pro.user file is
regenerated. Is there a way to set this in the .pro file?

Doesn't make automatically use all available cores if the 'j' argument is
not set? I'm sure I read that somewhere.

On Fri, Jul 16, 2010 at 11:15 AM, Oleg Shalnev wrote:

> In Linux I just modify "Additional arguments"
>
>
> 2010/7/16 Carter, Nathan 
>
>
>> Is there a way to tell Creator to use "make -j N" for some N in all
>> projects?  I know that I can change it on a per-project basis, but since
>> it's a value that's pretty much just contingent on how many cores my machine
>> has, I'd like to just say "please use all cores all the time."
>>
>> I couldn't find this in the options.  Did I miss it or should I file a
>> request for it?
>>
>> (Or I could set MAKEFLAGS="-j 4" in my environment, but I guess I'm not
>> sure where Qt Creator gets its environment from in OS X, when launched from
>> Finder rather than the command line...maybe from my bash .profile??  I have
>> no idea.)
>>
>> Nathan
>> ___
>> Qt-creator mailing list
>> Qt-creator@trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>
>
>
> --
> Oleg Shalnev (Kalpa Project)
> --
> mailto: o...@kalpa.ru
> skype:  oleg_shalnev
> jabber:  oleg.shal...@gmail.com
> http://kalpa.ru
>
> ___
> 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 highlight doesn't understand C99 initializers?

2010-07-15 Thread Danny Price
Oh that's a shame.

On 16 Jul 2010, at 00:05, Coda Highland wrote:

> That may be valid C99 syntax but it's not valid C++03 syntax. Creator
> only supports C++.
> 
> /s/ Adam
> 
> On Thu, Jul 15, 2010 at 5:43 PM, Danny Price  
> wrote:
>> I'm using Creator 2.0 with a C99 program and have the following demo 
>> structure:
>> 
>> typedef struct
>> {
>>  char name[20];
>>  int ID;
>>  int age;
>>  FILE *record;
>> }
>> Employee;
>> 
>> Employee emp = {.ID=0, .record=NULL};
>> 
>> This is valid C99 code but Creator underlines the initializer line in red 
>> with the error 'expected token '} ' got '.'
>> 
>> Is this a bug? The code compiles fine without errors.
>> 
>> I'm using GCC 4.2 on OS 10.6.2 and have added the QMAKE_CFLAGS += -std=c99 
>> to the .pro file.
>> 
>> 
>> 
>> ___
>> 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] Syntax highlight doesn't understand C99 initializers?

2010-07-15 Thread Danny Price
I'm using Creator 2.0 with a C99 program and have the following demo structure:

typedef struct
{
 char name[20];
 int ID;
 int age;
 FILE *record;
}
Employee;

Employee emp = {.ID=0, .record=NULL};

This is valid C99 code but Creator underlines the initializer line in red with 
the error 'expected token '} ' got '.'

Is this a bug? The code compiles fine without errors.

I'm using GCC 4.2 on OS 10.6.2 and have added the QMAKE_CFLAGS += -std=c99 to 
the .pro file.



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


Re: [Qt-creator] Qt Creator 2.1 Binary Shapshots not available for Windows

2010-07-14 Thread Danny Price
Hehe now you know what it feels like :P

On 14 Jul 2010, at 23:25, Litkevich Yuriy wrote:

> http://get.qt.nokia.com/qtcreator/snapshots/latest/
> only for Linux and Mac, no Windows pakage
> :(
> 
> ___
> 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] Is there a Try and Catch method in QT

2010-07-01 Thread Danny Price
Catch them within the handler or in QApplication::notify()

http://strange-paradox.livejournal.com/4902.html

On Thu, Jul 1, 2010 at 2:35 AM, Coda Highland  wrote:

> I know this is the wrong mailing list but I will caution that Qt is
> not exception-safe (and doesn't even have to be compiled with
> exception support enabled) and throwing exceptions through Qt code
> (for instance, in a slot or in an event handler) has negative effects.
> It's possible to safely use exceptions (QtConcurrent uses them
> internally for instance) but you need to make sure to catch them
> before it crosses Qt code.
>
> /s/ Adam
>
> On Wed, Jun 30, 2010 at 8:05 PM, Carter, Nathan 
> wrote:
> >
> > This is actually the Qt-creator mailing list, not the Qt mailing list.
>  But
> > I'll answer your question anyway.  In the future, though, ask Qt
> questions
> > over there.  (It's called "qt-interest" and shows up if you search for
> that
> > term.)
> > The QString::toDouble() method does not throw an exception if it gets
> text
> > that's not a double.  Instead, it has the "ok" parameter to let you know
> > that information.  See the documentation (inside Qt-creator!) for
> > QString::toDouble() to see how to use the ok parameter to do your test,
> > instead of try-catch.
> > But yes, the very fact that your code compiled tells you that C++ (and
> hence
> > Qt) support try-catch structures.
> > Nathan
> >
> >
> > On Jun 30, 2010, at 9:01 PM, Diego Turcios wrote:
> >
> > Hi guys
> > I thinks this is the right mailing list for my doubt.
> > I am working on a small application in QT. But right now I have the
> > following problem.
> > I have a line edit, and I want to manipulate the values so only numbers
> > (doubles) can be written on this line edit.
> > I was trying something like this
> >
> >
> > double quantity;
> >  try
> > {
> > quantity=ui->LEPrecio->text().toDouble();
> >  }
> > catch(QString error)
> > {
> > QMessageBox msgBox;
> > msgBox.setText(error);
> > msgBox.exec();
> > }
> > After doing this. I am planning to manipulate the double value, but this
> > doesn't work. If I write hello world on the line edit. Supposly it
> converts
> > it, and it doesn't work. Any idea ;)
> >
> > Diego Turcios
> > DiegoTc
> > Ubuntu User  # 27518
> > ---
> > Mis Blogs
> > http://diegoturcios.wordpress.com/
> > https://wiki.ubuntu.com/DiegoTurcios
> > --
> > Recuerden Dios siempre esta presente:
> > http://sagradocorazondejesus-diegotc.blogspot.com/
> > 
> >
> > ___
> > 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] Qt Creator 2.0 does not load my old .user file

2010-06-29 Thread Danny Price
>
> A properly written .pro file should indeed not break when using shadow
> builds.
>

There's very little documentation (other than working examples like Creator
itself which are huge) on how to write a .pro file 'properly'. Creator
itself confounds this by providing overly simple templates. I had to turn to
google to figure out how to setup basic things like library links, include
paths and change-dependencies. These are functions that the IDE should
provide. Better wizards would go a long way to helping here (eg. a Wizard
for setting up a library link capable of setting up the pro file 'properly'
and a SUBDIR wizard).


>
> Of course, I can sympathize with the problems many are having now and
> the lack of documentation. It was a hard choice to make between breaking
> some projects by doing shadow builds by default (which can generally be
> fixed), or not being able to support building against different Qt
> configurations properly (desktop, Maemo, S60, Simulator, etc.)


I don't understand why shadow builds were made the default - they've been an
optional feature of Creator for some time now so if you needed them, they
were there. Why the change?


> Of course, maybe it still makes sense to have an option to disable the
> "shadow-build by default" thing for those not interested in building for
> different targets.
>

Yes this would be a good idea, a return to 1.x behavior. The problem is that
the pro.user files have to be regularly being re-generated.



> Regards,
> Bjørn
>
> --
> Thorbjørn Lindeijer
> Software Engineer
> Nokia, Qt Development Frameworks
> ___
> 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] Qt Creator 2.0 does not load my old .user file

2010-06-28 Thread Danny Price
Yup.


On 28 Jun 2010, at 23:07, Leo Spalteholz wrote:

> On Mon, Jun 28, 2010 at 11:56 AM, Danny Price
>  wrote:
>> Agreed but this is hardly a new problem. Some of us have been complaining 
>> about pro.user files since before v1.0 :)
> 
> Right, but it seems the .user files are taking on more and more
> functionality and making this worse.
> Now we have this build directory field in the projects tab, which
> clutters my file system with top level directories even though I
> already set up my pro file just the way I like it (with OBJECTS_DIR,
> UI_DIR, RCC_DIR, MOC_DIR = ./build and so forth).
> 
> Leo
> ___
> 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] Qt Creator 2.0 does not load my old .user file

2010-06-28 Thread Danny Price
Agreed but this is hardly a new problem. Some of us have been complaining about 
pro.user files since before v1.0 :)

It CAN be worked around in the pro file. The problem here is the lack of 
documentation combined with the quirkiness of qmake. Better wizards would help 
in this area.

On 28 Jun 2010, at 19:42, Leo Spalteholz wrote:

> On Fri, Jun 25, 2010 at 2:57 PM, Jochen Becher  wrote:
>> Hi,
>> 
>> I just installed Nokia Qt SDK 1.0 after I removed old beta installation.
>> When I try to load my existing project Qt Creator asks me to create new
>> project settings (for Maemo and Simulator). But I already have a
>> complex .user file which I do not want to replace.
> 
> This brings up a bigger issue that I've encountered as well.  It used
> to be that everything needed to compile Qt projects was in the .pro
> file.  With Qt Creator, we now have a .user file which is slowly
> taking on more and more capabilities that were previously in the .pro
> file.  This makes it pretty confusing since people without Qt Creator
> will have trouble compiling projects if half of the configuration is
> in the user file, and it's confusing when working in source control,
> since the .user file seems to be a lot more volatile than the .pro
> file.
> 
> Leo
> ___
> 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] Qt Creator - linking fails!

2010-06-24 Thread Danny Price
The shadow build option is stored in the pro.user file so if it ever gets
regenerated, you'll have the same issues again.

It's worth updating your code to account for the shadow build. If you have
multiple projects with inter-dependencies, the easiest solution is to add
them to a subdir. That way Creator will generate a single shadow-build
directory for all projects so your (relative) build paths will still work.


On Thu, Jun 24, 2010 at 1:16 PM,  wrote:

> Bingo - "shadow build" - that was it!
>
> Turn it off and everything works just fine again...
>
> Thanks a lot: I would have never ever ever found this problem by my own!
> (Even after 35 years of programming...)
>
> Greetings,
> Cornelis
>
> _
>
> Cornelis Bockemühl
> Holcim Group Support Ltd
> Cement Manufacturing Services
> Materials Technology
> Reserve Evaluation and Quarry Planning
> Im Schachen
> CH-5113 Holderbank
> Phone +41 58 858 51 30
> Fax +41 58 858 51 51
> cornelis.bockemu...@holcim.com
> www.holcim.com
> This e-mail is confidential and intended only for the use of the above
> named addressee. If you have received this e-mail in error, please delete
> it immediately and notify us by e-mail or telephone.
>
>
> ___
> 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] Qt Creator - linking fails!

2010-06-24 Thread Danny Price
Are you using shadow builds? Be aware that this is now the default and it
broke my projects too.

On Thu, Jun 24, 2010 at 9:33 AM,  wrote:

> > qt-creator-boun...@trolltech.com
> >
> > Try removing the -l in front of each lib. Change it to:
> > > LIBS += htmlhelp \
> > >dimeDbld \
> > >simage1d \
> > >coin3d
>
> With this, the error message changes to:
>
> :: error:  cannot open file 'htmlhelp.obj'
>
> So obviously the linker sees this now as an OBJ file, not a LIB any more!
> So I added the .lib explicitly:
>
> CONFIG(debug, debug|release):LIBS += htmlhelp.lib \
>dimeDbld.lib \
>simage1d.lib \
>coin3d.lib
>
> Effect: Now I am getting this error message:
>
> :: error:  cannot open file 'dimeDbld.lib'
>
> Which means: now it "sees" the htmlhelp.lib, but fails now at the second
> library! (Btw., both are located in the lib/ subdirectory, so logically if
> it finds one, there is no reason why it does not find the other!)
>
> This is the full output that the qmake generates:
>
> 
> Starting: "D:/Qt/qtcreator-2.0.0/bin/jom.exe"
> D:\Qt\qtcreator-2.0.0\bin\jom.exe -nologo -j 2 -f Makefile.Debug
> link /LIBPATH:"lib" /LIBPATH:"D:\Coin-3.1.3\lib" /LIBPATH:"d:\Qt\4.5.3
> \lib" /NOLOGO /DEBUG /MANIFEST /MANIFESTFILE:"./obj/debug
> \QmModeler40.intermediate.manifest" /SUBSYSTEM:WINDOWS
> "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls'
> version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*'
> processorArchitecture='*'" /OUT:debug\QmModeler40.exe @C:\DOCUME~1\cbockenm
> \LOCALS~1\Temp\QmModeler40.exe.262706531.jom
> LINK : fatal error LNK1104: cannot open file 'dimeDbld.lib'
> d:\qt\4.5.3\bin\qmake.exe -spec d:\Qt\4.5.3\mkspecs\win32-msvc2005 -win32
> -o Makefile ..\QmModeler40\QmModeler40.pro
> command failed with exit code 1104
> jom 0.8.3 - empower your cores
>
> command failed with exit code 2
> The process "D:/Qt/qtcreator-2.0.0/bin/jom.exe" exited with code %2.
> Error while building project QmModeler40 (target: Desktop)
> When executing build step ''
> 
>
> In order to really see what is happening, I would have to have a look
> inside that temporary file C:\DOCUME~1\cbockenm\LOCALS~1\Temp
> \QmModeler40.exe.262706531.jom, but unfortunately this is always deleted
> after each run (which is of course correct - normally!).
>
> Btw., this is what I got from running the same PRO file (with htmlhelp.lib
> etc.):
>
> 
> Running build steps for project QmModeler40...
> Configuration unchanged, skipping QMake step.
> Starting: D:/Qt/2010.03/bin/jom.exe
> D:\Qt\2010.03\bin\jom.exe -nologo -j 2 -f Makefile.Debug
> link /LIBPATH:"lib" /LIBPATH:"D:\Coin-3.1.3\lib" /LIBPATH:"d:\Qt\4.5.3
> \lib" /NOLOGO /DEBUG /MANIFEST /MANIFESTFILE:"./obj/debug
> \QmModeler40.intermediate.manifest" /SUBSYSTEM:WINDOWS
> "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls'
> version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*'
> processorArchitecture='*'" /OUT:debug\QmModeler40.exe @C:\DOCUME~1\cbockenm
> \LOCALS~1\Temp\QmModeler40.exe.263107375.jom
> LINK : debug\QmModeler40.exe not found or not built by the last incremental
> link; performing full link
> obj\debug\MapFeature.obj : warning LNK4042: object specified more than
> once; extras ignored
> mt.exe -nologo -manifest ".\obj\debug\QmModeler40.intermediate.manifest"
> -outputresource:debug\QmModeler40.exe;1
> jom 0.8.3 - empower your cores
>
> Exited with code 0.
> 
>
> So the only difference seems to be in the generated temporary input file
> for the linker!
>
> Greetings,
> Cornelis
>
> > Aloha,
> > John
> >
> > On Jun 23, 2010, at 8:54 PM, cornelis.bockemu...@holcim.com wrote:
> >
> > >
> > > Reading about the new Qt Creator 2.0.0 release yesterday, I immediately
> > > downloaded and installed it. However, very quickly I was not very happy
> any
> > > more, and at this moment I am back to version 1.3.1 for my work because
> I
> > > simply could not get my project properly linked! It is to say that the
> > > exactly project (*.pro file) works fine with the old version.
> > >
> > > My system is Windows XP, commercial license, working with the MS Visual
> C++
> > > 2005 compiler, and this is the message that I receive:
> > >
> > > :: error:  cannot open file 'lib\htmlhelp.lib'
> > >
> > > That library is there just fine, and it is correctly found if I work
> with
> > > the old Creator! These are the relevant lines in the *.pro file:
> > >
> > > LIBPATH += lib \
> > >$(COINDIR)/lib
> > > CONFIG(debug, debug|release):LIBS += -lhtmlhelp \
> > >-ldimeDbld \
> > >-lsimage1d \
> > >-lcoin3d
> > > else:LIBS += -lhtmlhelp \
> > >-ldimeDbl \
> > >-lsimage1 \
> > >-lcoin3
> > >
> > > If I change the order of the lib files, the error message changes: It
> will
> > > always complain about the first library on the list.
> > >
> > > Any helpful hints? Something I am doing possibly wrong (with the old
> > > Creator being more tolerant)?? Or even a but in the new Cr

Re: [Qt-creator] Cannot run projects added to SUBDIR in Creator 2.0rc

2010-06-14 Thread Danny Price
Is there a reason why this is not automatic? Will it be fixed?

If I add an existing standalone project, the selector does update to list
it. I'd rather not have to deal with the project screen.

On Mon, Jun 14, 2010 at 11:59 AM, Daniel Teske wrote:

> On Saturday 12 June 2010 19:45:06 ext Danny Price wrote:
> > If I add a new project to an existing SUBDIR from within Creator, I
> cannot
> >  set that project as the active target in the new 'project selector'
> unless
> >  I close the project, trash the .pro.user file and re-import it. Is this
> a
> >  bug? Is there a work-around? It's like the selector panel doesn't know
> >  that the project list has changed.
> You should be able to create run configurations for new subdirectories on
> the
> project page.
>
> We've slightly changed the logic when runconfigurations are automatically
> created.
>
> daniel
> ___
> 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] Cannot run projects added to SUBDIR in Creator 2.0rc

2010-06-12 Thread Danny Price
If I add a new project to an existing SUBDIR from within Creator, I cannot set 
that project as the active target in the new 'project selector' unless I close 
the project, trash the .pro.user file and re-import it. Is this a bug? Is there 
a work-around? It's like the selector panel doesn't know that the project list 
has changed.

I store all my working projects within a SUBDIR (like a solution in 
VisualStudio) and I often add/remove projects from it during a session by 
commenting them out in the template.

This was not an issue in 1.x.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] What a great IDE!

2010-05-14 Thread Danny Price
Agreed! XD

While I may come across as harsh in some of my criticisms, it's only because
Creator is for the most part excellent and this only exacerbates the faults
as I see them.

It's certainly more pleasant to work with than MSVC or XCode
(auto-completion that actually works!!!) and the debugging tools are
excellent.

My gripes are with the project management but the Qt/Nokia guys are very
talented...

On Fri, May 14, 2010 at 4:12 PM, Robert Hairgrove wrote:

> Don't know how to say it, but ... I've worked with other IDEs in the
> past (mostly Borland Builder and MSVC Visual Studio, but also some
> others albeit briefly ... Eclipse, for example).
>
> QtCreator ROCKS!!! I sometimes have the feeling that it could actually
> write my entire application by itself, if I would only let it (i.e. if I
> only knew exactly what configuration parameters to set)...
>
> Hats off, folks ... the current version of QtCreator beats the socks off
> of everything else. Give the folks at Nokia a BIG HAND!
>
> :))
> ___
> 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] Shadow Build Folder Location in QMake

2010-05-14 Thread Danny Price
On Fri, May 14, 2010 at 11:49 AM, Robert Caldecott <
robert.caldec...@gmail.com> wrote:

> Hi, long time no post.
>
> I have installed the Qt Creator 2.0 beta and have decided to try
> shadow builds (as they are enabled by default).  The problem I have is
> that some of my qmake .pro files are assuming that targets will end up
> in ./debug, ./release, etc. which no longer works.  For example, the
> following snippet will set a dependency:
>
> CONFIG(debug, debug|release):OUTDIR = debug
> else:OUTDIR = release
> PRE_TARGETDEPS += ../ProjectName/$${OUTDIR}/someLib.a
>
> This will now fail as the shadow build path is different.
>

Hi had the exact same problem and it was a royal pain because:
a) all my projects encode their deps via relative paths like this.
b) i don't keep pro.user files in source control and so i get this problem
everytime i do a clean checkout due to Creator setting up new shadow builds.


>
> So, what I want to do is simple - I want to be able to get the shadow
> build location from my .pro file.  I've tried every qmake variable I
> can think of but none of them help.  DESTDIR is always blank for
> example.  The closest I've found is OUT_PWD but I really need one that
> specifies a folder a level about this.
>

Shadow-builds appear to be a Creator specific feature so qmake won't help.


> Before I give up on what seems to be a useful feature can anyone offer
> me some advice?  I store all my dependency information in the main
> .pro files and want to avoid anything that requires a user to set (so
> changing .pro.user is out of the question.)
>
> QMAKE_SHADOW_BUILD_DIR would be great obviously.  :)
>

Store your related projects within a single SUBDIR project. That way,
Creator will create a single shadow build directory for the SUBDIR and all
it's projects. Your relative paths should then work again :)

I've done this and it seems to work fine.

Session-only projects and shadow builds do not mix.


> Thanks in advance.
> ___
> 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] Share color scheme across platforms?

2010-05-06 Thread Danny Price
Is there anyway to share my custom Creator color scheme between my Mac and Pc? 
I don't want to have to re-create it.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] build settings for cross platform? multiple svn checkouts on each development computer

2010-04-26 Thread Danny Price
On Mon, Apr 26, 2010 at 1:12 PM, Eike Ziller  wrote:

>
> On Apr 26, 2010, at 1:14 PM, ext Danny Price wrote:
>
> >
> > On Mon, Apr 26, 2010 at 11:13 AM, Tobias Hunger 
> wrote:
> >> Hi Danny!
> >>
> >> Sorry, I really do not see anything to fix in creator for the following
> >> reasons:
> >>
> >>  * No variable is ignored. DESTDIR is relative to the build directory,
> >> so it is set and used correctly (but points to a location where the
> >> stuff it is looking for is not found).
> >>
> >>  * No build pathes are changed. Everything is put exactly where
> specified.
> >>
> >>  * Creator does not interfere with anything set in the .pro-file.
> >>
> >>
> >> Your example project layout is basically three separate projects, tied
> >> together using relative pathes so that the libraries are found. That
> >> does indeed break in the presence of shadow building (or even more minor
> >> changes like the user checking out these three projects into separate
> >> directories, renaming some directory, etc.). I do not know your project
> >> requirements and there is probably a good reason for doing things the
> >> way you did, but I would really suggest making the build system more
> robust.
> >>
> > Ah so you can explain how I should modify the sample projects to do just
> that? I assume that relative paths from the shadow build directories are
> also a bad idea?
> >
> >> The preferred way is of course (as you already suggested) to bundle the
> >> libraries and the application using them together into one SUBDIRS
> >> project. That way you do get dependency tracking and the libraries will
> >> get automatically rebuild when they are changed. This further should
> >> ease packaging of the complete thing.
> >>
> > Now this I find interesting as it seems to contradict Nokia's previous
> advice on the subject - that is to use sessions...
>
> We (as in "a bunch of Qt Creator developers") have been promoting the use
> of subdirs pro files a lot as well on this mailing list. Because both
> sessions and special setups in Qt Creator's project settings are special Qt
> Creator setups. So relying on these is no use in mixed environments.
>
> > I've had very mixed results with SUBDIRS in creator. I have to be setup
> manually, require the use of undocumented qmake features and don't always
> link together properly when dependants change. And until recently, you had
> to rebuild the until tree for a single dependant change to be picked up.
> >
> > But even if I use a subdir, won't I have the same issues? SUBDIRS allow
> me to specify the build order but not link dependencies for which I need
> PRE_TARGETDEPS. So I have to specify a path. What path do I specify?
>
> Since you would open the SUBDIRS project in Qt Creator, you end up with a
> single project in Qt Creator,
> and therefore with a single shadow build directory for your whole,
> multi-part project. So you can use relative paths for mapping between the
> sub-projects.
> Like when opening qtcreator.pro.
> The thing that is not clear to me (haven't tried), though, is how qmake
> actually maps the paths to a shadow build directory if you use SUBDIRS that
> refer to sub projects via ../ (ie. if your sub projects are not in a
> sub-path of the SUBDIRS project).
>
>
Thanks for the clarification. So if you're going to be pushing shadow builds
from now on, and SUBDIRs are the most compatible form of project
organization, can we expect to see improved support for SUBDIRs in Creator
any time soon?


>
> >> If you are reusing the same libraries together with several applications
> >> you can of course have several top-level SUBDIRS project files (one for
> >> each application, referencing the application itself and all libraries
> >> used by it).
> >>
> > Thanks I might try that.
> >
> >
>
> Br, Eike
>
> --
> Eike Ziller
> 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
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] build settings for cross platform? multiple svn checkouts on each development computer

2010-04-26 Thread Danny Price
On Mon, Apr 26, 2010 at 11:13 AM, Tobias Hunger wrote:

> Hi Danny!
>
> Sorry, I really do not see anything to fix in creator for the following
> reasons:
>
>  * No variable is ignored. DESTDIR is relative to the build directory,
> so it is set and used correctly (but points to a location where the
> stuff it is looking for is not found).
>
>  * No build pathes are changed. Everything is put exactly where specified.
>
>  * Creator does not interfere with anything set in the .pro-file.
>
>
> Your example project layout is basically three separate projects, tied
> together using relative pathes so that the libraries are found. That
> does indeed break in the presence of shadow building (or even more minor
> changes like the user checking out these three projects into separate
> directories, renaming some directory, etc.). I do not know your project
> requirements and there is probably a good reason for doing things the
> way you did, but I would really suggest making the build system more
> robust.
>

Ah so you can explain how I should modify the sample projects to do just
that? I assume that relative paths from the shadow build directories are
also a bad idea?


> The preferred way is of course (as you already suggested) to bundle the
> libraries and the application using them together into one SUBDIRS
> project. That way you do get dependency tracking and the libraries will
> get automatically rebuild when they are changed. This further should
> ease packaging of the complete thing.
>

Now this I find interesting as it seems to contradict Nokia's previous
advice on the subject - that is to use sessions...

I've had very mixed results with SUBDIRS in creator. I have to be setup
manually, require the use of undocumented qmake features and don't always
link together properly when dependants change. And until recently, you had
to rebuild the until tree for a single dependant change to be picked up.

But even if I use a subdir, won't I have the same issues? SUBDIRS allow me
to specify the build order but not link dependencies for which I need
PRE_TARGETDEPS. So I have to specify a path. What path do I specify?


>
> If you are reusing the same libraries together with several applications
> you can of course have several top-level SUBDIRS project files (one for
> each application, referencing the application itself and all libraries
> used by it).
>

Thanks I might try that.


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


Re: [Qt-creator] printf() with Qt Creator?

2010-04-24 Thread Danny Price

On 24 Apr 2010, at 22:22, Robert Hairgrove wrote:
>> 
> 
> This is also an issue in non-Qt apps. Just change this line:
>  std::cout << "test";
> to this:
>  std::cout << "test" << std::endl;
> 
> On some platforms (*nix, I think) you need to do this in order to keep 
> the next output from overwriting the line "test".

Thanks it now works! The CONFIG += console line appears to have no effect on 
OSX either way. I suppose it's really for Windows?

I've not been able to get printf to work though, even with a '\n'.

> ___
> 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] printf() with Qt Creator?

2010-04-24 Thread Danny Price
OSX 10.6.3 Leopard, Qt 4.6.2, Creator  build 1.3.83 (rev 026237b008). 

pro:

SOURCES += main.cpp
CONFIG += console


Build log:
Running build steps for project ArrayTest...
Starting: /usr/bin/make clean -w
make: Entering directory `/Users/ks/Projects/ArrayTest-build'
rm -f main.o
rm -f *~ core *.core
make: Leaving directory `/Users/ks/Projects/ArrayTest-build'
Exited with code 0.
Configuration unchanged, skipping qmake step.
Starting: /usr/bin/make -w
make: Entering directory `/Users/ks/Projects/ArrayTest-build'
g++ -c -pipe -g -gdwarf-2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 
-Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/usr/local/Trolltech/Qt-4.6.2/mkspecs/macx-g++ -I../ArrayTest 
-I/usr/local/Trolltech/Qt-4.6.2/lib/QtCore.framework/Versions/4/Headers 
-I/usr/local/Trolltech/Qt-4.6.2/include/QtCore 
-I/usr/local/Trolltech/Qt-4.6.2/lib/QtGui.framework/Versions/4/Headers 
-I/usr/local/Trolltech/Qt-4.6.2/include/QtGui 
-I/usr/local/Trolltech/Qt-4.6.2/include -I. -I../ArrayTest -I. 
-F/usr/local/Trolltech/Qt-4.6.2/lib -o main.o ../ArrayTest/main.cpp
g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 
-mmacosx-version-min=10.5 -o ArrayTest.app/Contents/MacOS/ArrayTest main.o 
-F/usr/local/Trolltech/Qt-4.6.2/lib -L/usr/local/Trolltech/Qt-4.6.2/lib 
-framework QtGui -L/usr/local/Trolltech/Qt-4.6.2/lib 
-F/usr/local/Trolltech/Qt-4.6.2/lib -framework QtCore
make: Leaving directory `/Users/ks/Projects/ArrayTest-build'
Exited with code 0.

(ArrayTest is just a dummy project I previously created for something else)






On 24 Apr 2010, at 22:21, Bruno Matos wrote:

> Strange, as was expected, works for me. Could you please attach the  
> console output of your compiler. And give the information about your  
> environment.
> 
> Thank you.
> 
> On 2010/04/24, at 21:25, Danny Price wrote:
> 
>> Definitely an issue here. I created a C++ project and added CONFIG  
>> += console to the pro file. The following does NOT print to the  
>> console until after main returns (as shown with a breakpoint)
>> 
>> #include 
>> int main()
>> {
>>  std::cout << "test";
>>  return 0;
>> }
>> 
>> 
>> However if I add cout.flush() before the return, the output appears:
>> 
>> #include 
>> int main()
>> {
>>  std::cout << "test";
>>  std::cout.flush();
>>  return 0;
>> }
>> 
>> The CONFIG += console line appears to have NO EFFECT. This must be a  
>> recent regression because I'm sure this used to work. I've not been  
>> able to get it to work at all with  as I think it lacks a  
>> standard function to flush the buffer.
>> 
>> 
>> On 15 Apr 2010, at 08:47, Brad Hubbard wrote:
>> 
>>> Berk Demirkır wrote:
>>>> A simple program output that prints a lot via printf don't show on  
>>>> Application Output. But when i close this application output  
>>>> shows. Strange issue...
>>>> 
>>> Sounds like the output buffer is not being flushed.
>>> 
>>> Cheers,
>>> Brad
>>> ___
>>> 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
> 
> --
> Bruno Matos
> bruno.ma...@gmail.com
> 
> 
> 
> 
> ___
> 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] printf() with Qt Creator?

2010-04-24 Thread Danny Price
Definitely an issue here. I created a C++ project and added CONFIG += console 
to the pro file. The following does NOT print to the console until after main 
returns (as shown with a breakpoint)

#include 
int main()
{
std::cout << "test";
return 0;
}


However if I add cout.flush() before the return, the output appears:

#include 
int main()
{
std::cout << "test";
std::cout.flush();
return 0;
}

The CONFIG += console line appears to have NO EFFECT. This must be a recent 
regression because I'm sure this used to work. I've not been able to get it to 
work at all with  as I think it lacks a standard function to flush the 
buffer.


On 15 Apr 2010, at 08:47, Brad Hubbard wrote:

> Berk Demirkır wrote:
>> A simple program output that prints a lot via printf don't show on 
>> Application Output. But when i close this application output shows. Strange 
>> issue...
>> 
> Sounds like the output buffer is not being flushed.
> 
> Cheers,
> Brad
> ___
> 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] build settings for cross platform? multiple svn checkouts on each development computer

2010-04-24 Thread Danny Price

On 19 Apr 2010, at 17:33, Tobias Hunger wrote:

> On 19.04.2010 18:02, ext Danny Price wrote:
>> I think the settings in the .pro file should always take priority. This
>> is allows for automated builds and builds outside of Creator.
> 
> I do not get your point here: Of course the pro-file gets preference. 
> Qmake does not know of the .user file at all, so if you run qmake 
> outside creator will of course completely ignore any Creator settings.

Yes but the reverse is no-longer true.

> 
>> It
>> shouldn't be muddied up to handle Creator special-cases. That sets
>> a precedent.
> 
> I do not consider shadow building to be a creator special case. I use it 
> for all projects I work on (be it qmake based or cmake or even 
> autotools, if they actually support it without too much breakage) and 
> did so long before I started using Qt Creator in earnest. It makes 
> switching between different configurations of a project so much easier, 
> be it debug/release, different set of defines/dependencies or even 
> different platforms.
> 
> You should really give it a try! You are missing out if you do not.

It doesn't seem to offer anything that qmake can do with a little tweaking. In 
fact, I consider it a flaw in Creator that the template projects used by the 
wizards contain such basic pro files. They need a LOT of tweaking before they 
can be useful.

Perhaps you could give me a concrete example where shadow builds do something 
that .pro files settings cannot?

> 
>> I'm not sold on the idea that Creator must turn on shadow builds by
>> default. If it's an issue as stated by Tobias, why not simple turn it on
>> in via the Project screen/pro.user file for the projects that require it
>> as was the case previously?
> 
> Why not simply turn it off for the projects that do not need it? 
> Seriously, this does not get us anywhere.

Because as I explained in my previous email to Tobias with my attached sample 
project, simply turning off the settings still leaves my projects borked. I 
have to manually go through the file system and trash all the make files to get 
them working again. And if I check in the working project into SVN, the next 
user who checks it out will have to go through the whole process again if they 
neglect to uncheck the shadow build option in their newly-generated pro.user 
files before hitting build.

I'm tempted to write a little script that actually goes through my projects and 
cleans down the broken make files. This is clearly a failure in Creator's part 
as an IDE.

> 
> What exactly is broken for you? Which of your settings are ignored by 
> creator?
> 
>> The functionality is identical.
> 
> No, shadow building is far more flexible and I am convinced we should 
> offer that flexibility by default. Plus it reduces the number of clean 
> up issues we currently have with creator when switching configurations.

But It shouldn't override my handcrafted .pro file settings! I shouldn't have 
to re-configure all my project settings every-time Nokia release a new version 
of Creator and decide to turn on some new feature that breaks them.

> 
>> Tobias, your statement seems to imply that the Nokia/Qt devs are also
>> throwing away their pro.user files to get builds working which is the
>> underlying issue.
> 
> I usually do not delete my .user files, but I sometimes do loose them 
> when running git clean in the terminal. I keep forgetting that creator 
> can do that nowadays (and it will leave the .user file by default;-)
> 
>> If that's the case, why not fix pro.user files once
>> and for all? Fix the problem at source?
> 
> The .user file does what it is meant to do quite well for my use case. 
> You seem to have a different use case which I would really like to 
> understand.

I use Creator daily, both in a production environment and as a hobbyist. The 
proi.user files have repeatedly proven to be very brittle and break my builds. 

One issue is the fact that they cannot be used with with source control, so 
every compiler setting, dependency, flag and build step has to be created 
manually every-time someone does a clean checkout of the project. I know of no 
other IDE that does this. It was for this reason that I gave up on the Project 
screen and stated coded everything into the .pro files. To qmakes credit, it's 
all worked so far. At least until I tried importing my projects into the latest 
snapshot.

I've also had many issues where Creator cannot find the binaries it just built 
('Permissions wrong?") or couldn't locate objects to link to resulting in 
linker errors that Creator simply reported as generic makefile failures. This 
often happened when a project was built independently of a session when 
previou

Re: [Qt-creator] build settings for cross platform? multiple svn checkouts on each development computer

2010-04-19 Thread Danny Price
I think the settings in the .pro file should always take priority. This is
allows for automated builds and builds outside of Creator. It shouldn't be
muddied up to handle Creator special-cases. That sets a precedent.

I'm not sold on the idea that Creator must turn on shadow builds by default.
If it's an issue as stated by Tobias, why not simple turn it on in via the
Project screen/pro.user file for the projects that require it as was the
case previously? The functionality is identical.

Tobias, your statement seems to imply that the Nokia/Qt devs are also
throwing away their pro.user files to get builds working which is the
underlying issue. If that's the case, why not fix pro.user files once and
for all? Fix the problem at source?

On Mon, Apr 19, 2010 at 2:56 PM, Coda Highland wrote:

> As a thought... How troublesome would it be to have something like a
> CREATOR_PRAGMA variable in the .pro file that directs these kinds of
> things? qmake could simply ignore it, after all. This would allow some
> settings -- like, for instance, shadow builds -- to be overridden by
> the .pro file.
>
> /s/ Adam
>
> On Mon, Apr 19, 2010 at 3:49 AM, Tobias Hunger 
> wrote:
> > Hi Danny!
> >
> > Yes, using the .pro-file for settings to be shared between developers is
> > the right thing to do. Thanks for explaining that so well!
> >
> > On 19.04.2010 10:16, ext Danny Price wrote:
> >> However, I've noticed that the latest snapshots turn on the shadow build
> >> feature by default. This is a problem because it overrides the build
> >> paths specified in the .pro file. And if I turn off the feature it will
> >> be turned on again the next time the .pro.user is generated (ie. when
> >> someone checks out my code).
> >
> > Can you please describe your directory layout? Are you using your own
> > shadow building setup? Which variables are ignored by our use of shadow
> > builds? Can you send us a .pro-file that breaks for you so that we can
> > improve the situation?
> >
> > A existing in-source build should get detected and get imported using
> > the settings used to create the build. This is of course not a help in
> > the fresh-checkout use-case you mention:-/
> >
> >  > I hope Nokia revert this to the previous behavior (turn off shadow
> >  > builds by default).
> >
> > We did turn on shadow-building by default since we need to improve the
> > multiple platform use-case. That is a real pain with pre-2.0beta
> > creators since switching platforms totally confuses make, thus resulting
> > in broken builds and all kinds of strangeness. There is just too many
> > complaints about this to ignore;-). So shadow-building is -- from our
> > perspective -- a must have for the next version.
> >
> > However we are open for suggestions on how to minimize the impact on
> > other use-cases.
> >
> > 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
> >
>
> ___
> 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] build settings for cross platform? multiple svn checkouts on each development computer

2010-04-19 Thread Danny Price
The .pro file is all you need. Compiler settings, include paths, build
steps, versioning and more can all be specified here. You also MUST use the
pro file to specify library link and project dependencies. It's not possible
to do this via the Project screen (the dependency settings merely sets the
build order - an application dependant on a library in the same session will
NOT be linked to it).

I actually prefer having these settings inside the readable .pro text file.
It's better than the MSVC solution that requires hunting through dozens of
tiny model dialogs.

Up until now I've found the pro.user file to be totally expendable. In fact
it has occasionally broken my projects (Creator not being able to find the
executable to run for example, or problems building).

However, I've noticed that the latest snapshots turn on the shadow build
feature by default. This is a problem because it overrides the build paths
specified in the .pro file. And if I turn off the feature it will be turned
on again the next time the .pro.user is generated (ie. when someone checks
out my code). I hope Nokia revert this to the previous behavior (turn off
shadow builds by default).

On Mon, Apr 19, 2010 at 4:18 AM, Coda Highland wrote:

> The makefile is generated directly from the .pro file. This is where
> everything needs to go, especially if you want your project to work if
> you're building it at the command line instead of from within Creator.
>
> The .pro.user file is really just intended for short-term,
> system-specific, non-general details that aren't intended to be shared
> with other users of the source code.
>
> The only thing that's "broken" is that it's not clear from the way
> Creator's UI is laid out that this is the case, and it has to be
> explained like this.
>
> Basically, what you need to keep in mind is that Creator is first and
> foremost a tool for writing code and creating software, not for
> managing projects.
>
> /s/ Adam
>
> On Sun, Apr 18, 2010 at 9:35 PM, nobodyhere 
> wrote:
> > This makes Qt Creator sound broken?  I mean, what's the point of having
> it generate your make files for you (in the .pro.user file), if you have to
> then rewrite them manually anyway (in the .pro file)?
> >
> > regards
> >
> > - Original Message -
> > From: "Coda Highland" 
> > To: qt-creator@trolltech.com
> > Sent: Sunday, April 18, 2010 8:45:29 PM GMT -06:00 US/Canada Central
> > Subject: Re: [Qt-creator] build settings for cross platform? multiple svn
> checkouts on each development computer
> >
> > No, we mean the .pro file. qmake's file format supports a lot of logic
> > there, including platform detection (scopes like win32, unix, and
> > macx). Never edit the .pro.user file and avoid using Creator's
> > built-in tools for changing the build settings -- do all the work
> > directly in the .pro file except for things that are SPECIFICALLY
> > relevant to only the checkout you're working on.
> >
> > /s/ Adam
> >
> > On Sun, Apr 18, 2010 at 7:32 PM, nobodyhere 
> wrote:
> >> You mean edit and (svn commit) the project's ".pro.user" file?  (Not the
> project's ".pro" file?)
> >>
> >> And the .pro file has hardcoded / absolute paths in it, so how does this
> let me do a simple (svn checkout and build that just works, with the exact
> same .pro.user file) for (multiple computers) and (multiple checkouts on the
> same computer)?
> >>
> >> Is it required to manually edit the .pro.user XML file's text?
> >>
> >> thank you for any leads
> >>
> >> - Original Message -
> >> From: "Danny Price" 
> >> To: qt-creator@trolltech.com
> >> Sent: Sunday, April 18, 2010 9:21:30 AM GMT -06:00 US/Canada Central
> >> Subject: Re: [Qt-creator] build settings for cross platform? multiple
> svn checkouts on each development computer
> >>
> >> Set you build settings, project directories and platform-specific
> configs in the .pro file.
> >>
> >> On 18 Apr 2010, at 09:26, nobodyhere wrote:
> >>
> >>> Is there information on how to (svn commit) cross platform (Windows,
> Mac, Linux) build settings for a Qt Creator project, that doesn't have any
> absolute paths?
> >>>
> >>> I created a new project on Windows, then (svn commit) it.  Then I did
> (svn checkout) of the project on Mac OS.  Unfortunately, I had to create a
> new set of build settings to get it to build / compile?  But it seems to be
> storing this build settings stuff in the [project].pro.user file, with
> absol

Re: [Qt-creator] build settings for cross platform? multiple svn checkouts on each development computer

2010-04-18 Thread Danny Price
Set you build settings, project directories and platform-specific configs in 
the .pro file.

On 18 Apr 2010, at 09:26, nobodyhere wrote:

> Is there information on how to (svn commit) cross platform (Windows, Mac, 
> Linux) build settings for a Qt Creator project, that doesn't have any 
> absolute paths?
> 
> I created a new project on Windows, then (svn commit) it.  Then I did (svn 
> checkout) of the project on Mac OS.  Unfortunately, I had to create a new set 
> of build settings to get it to build / compile?  But it seems to be storing 
> this build settings stuff in the [project].pro.user file, with absolute paths?
> 
> How can I fix it so that I can simplify for anyone to do multiple fresh (svn 
> checkout)'s of the project on each machine (regardless of OS), and have the 
> build / compile just work (for Windows, Mac, Linux builds) (with multiple 
> checkouts per machine, using relative paths)?
> 
> Why are there absolute paths in this [project].user.pro file (for example, 
> the buildDirectory has an absolute path)?
> 
> thank you for any leads
> ___
> 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] Qt Creator and generic projects

2010-03-11 Thread Danny Price
Creator's session system and the .user file schema are deeply flawed. This has 
been discussed several times on the list. The best thing you can do is keep as 
many of your project's settings inside the build system master file(s) (the 
.pro files for qmake, the CMakeLists.txts for cmake etc). Ignore the 'Project' 
tab completely.

With qmake it's actually possible to create project 'solutions' with sub 
projects, dependencies, global includes and build settings all inside the .pro 
file. The current wizards do not demonstrate any of this however so you'll have 
to research it on your own. I'm actually planning to write some tutorials on 
qmake as Creator has forced me to become quite knowledgeable in it :)

Creator still has a long, long way to compete with MSVC or XCode in regard to 
simple project management, even at version 2.0. The priority at Nokia is to 
push QML and mobile-platform support as unique features of Creator as opposed 
to addressing is fundamental shortcomings as an IDE. When I attended the 2009 
Qt Dev days it was repeatedly emphasised by Nokia that Creator was considered 
an supplement to 'proper' desktop development tools only. It has even been 
stated on this list by Qt employees that Creator is an editor, not an IDE.

That said it is a great editor and if you stick with it you'll learn a lot more 
about your platform, build tools and software development than just using the 
wizards to create projects in MSVC. I think it's wonderful that with qmake, you 
can compile a 'real' application with so few settings in a text file and it 
sure beats writing makefiles. It has the potential to be a wonderful teaching 
tool for c/c++ and Qt.


On 11 Mar 2010, at 23:36, Bryce Schober wrote:

> I've gone through the process of figuring out how to use Qt Creator with our 
> strange project tree and Makefile structure (even semi-auto-updating the 
> files list). The only little thing left in my way (I'm so close!!!) is Qt 
> Creator's behavior of "disallowing" an empty build directory spec. I put that 
> in quotes, because it actually builds just fine with an empty builddir spec, 
> since it defaults to the project file's directory. But it saves that abs-path 
> default back into the *.creator.user file, which makes it impossible to 
> easily check it into source control and share the project settings with other 
> users, or even just other sandboxes for the same user.
> 
> -- 
> Bryce Schober
> ___
> 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] Qt-creator Digest, Vol 18, Issue 14

2010-03-09 Thread Danny Price
It doesn't work like that. Add to widgets to a form, select them and then
hit the vertical or horizontal splitter buttons to split them.

Works just the same in the regular designer. Not a Creator question.

2010/3/9 

> Hi:
> How can I use a QSplitter from QtCreator?
> Why it not appears on the list of widgets of QtCreator?
>
> --
> Gabriel A. Lopez Lopez
> Estudiante 3er año de Ing. Informatica
> Universidad Carlos Rafael Rodriguez. Cienfuegos
>
>
>
> ---
> La mejor vacuna contra el virus A(H1N1) es la higiene personal
> ___
> 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] Importing complex qmake project

2010-03-08 Thread Danny Price
>
> Anyway the explanation is, there was a current, non-debug build
> present in the same directory, and Creator did not force a rebuild in
> debug mode
>

Yeah it won't. Not unless you manually specify target deps in the .pro
files. 'clean' doesn't seem to do what you might think it should either - it
won't remove compiled products. Only the object files.

Best solution is to manually clear down all the build directories by hand.
It helps to have a seperate binary tree to make this easier.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Can't import cmake Qt project?

2010-03-05 Thread Danny Price
Yes I let Creator setup a new build folder. I also cleaned down all existing
builds and make files.

On Fri, Mar 5, 2010 at 1:28 PM, Peter Kümmel  wrote:

> Danny Price wrote:
> > I have a a test Qt project bulding using CMake from the command line. It
> all
> > configures and makes fine.
> >
> > When I import the CMakeLists.txt into Creator, running CMake from the
> import
> > wizard fails because it doesn't understandd 'QT4_WRAP_CPP'.
> >
> > I'm using CMake 2.8 (the only version on my system) and this is a
> standard
> > command for Qt compatibility. What gives?
> >
> > If I import a 'pure' C++ CMake project, it builds in Creator fine.
>
> Have you tried the Qt Creator based cmake run in a clean build folder?
>
> Peter
> ___
> 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] Can't import cmake Qt project?

2010-03-05 Thread Danny Price
I have a a test Qt project bulding using CMake from the command line. It all
configures and makes fine.

When I import the CMakeLists.txt into Creator, running CMake from the import
wizard fails because it doesn't understandd 'QT4_WRAP_CPP'.

I'm using CMake 2.8 (the only version on my system) and this is a standard
command for Qt compatibility. What gives?

If I import a 'pure' C++ CMake project, it builds in Creator fine.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Using QtCreator as a general C++ IDE

2010-02-25 Thread Danny Price
Of course - qmake is a Qt component! You should try using CMake instead.

On Thu, Feb 25, 2010 at 2:02 AM, Jefferson Bandeira  wrote:

> I Tried doing something like this, Coda, however, when i try to run the
> makefile generated by qmake in another computer, it tries to "re-qmake" the
> project, but the PC in case doesn't have the Qt environment.
>
> 2010/2/24 Coda Highland 
>
> If nothing else you can always say "CONFIG -= qt" in your .pro file.
>> You can also use it on Makefile-based projects.
>>
>> /s/ Adam
>>
>> On Wed, Feb 24, 2010 at 7:22 PM, Jefferson Bandeira 
>> wrote:
>> > Hello trolls =)
>> > Is there a way to use QtCreator as a General Purpose IDE, instead of a
>> Qt
>> > Only IDE... I like most of the features of code completion and browsing
>> this
>> > IDE offers, and i really would like to use it as my main IDE, however i
>> > can't find a way to use it to anything other than creating Qt Apps.
>> > So, the question : Is it possible? If so, how?
>> > Thanks for your time, i'll wait for answers. =)
>> > --
>> > Jefferson Bandeira
>> >
>> >
>> > ___
>> > 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
>>
>
>
>
> --
> Jefferson Bandeira
>
>
> ___
> 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] Patch for autocreate method implementation

2010-02-23 Thread Danny Price
Nice!

Couple of language issues:

"Switch between Method Declaration/Definition" should be "Switch between
Member Decleration/Defintion". C++ does not have 'methods'. It has member
functions.

"Implementation does not found. Will I try to create it?" should be
"Implementation not found. Create it?"

However I wonder if this dialog is necessary?

On Sun, Feb 21, 2010 at 8:16 AM, Alexander 'hatred' Drozdoff <
adrozd...@gmail.com> wrote:

> Hi all,
>
> I prepare patch that may be helpful in development process.
>
> With this patch you can go to Header file, write function prototype (or
> method prototype in class
> definition), press Shift-F2 (or press Right mouse button on prototype and
> select item "Switch
> between Method Declaration/Definition"), in case when definition does not
> present, you can see
> message box: Implementation does not found. Will I try to create it?
> [Yes/No]
> If you answer Yes, template of method will created and you moved to it.
>
> Path is attached to this letter.
>
> For russian-speak guys avail my description in blog:
>
> http://hatred.homelinux.net/wiki/zhurnal:2010-02-11_20.47_qt_creator_i_avtomaticheskoe_sozdanie_realizacii_metoda_prototipa
> also, here you can see screens that demonstrate work of patch.
>
> --
> WBR
> Alexander Drozdov
>
> ___
> 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] How to include libraries in Qt

2010-02-15 Thread Danny Price
Unless your dll is in the same directory, qmake probably won't find it - you
need to include the full path, just as in MSVC.

Creator will force you to become a qmake expert, trust me :)

On Sat, Feb 13, 2010 at 1:22 AM, Krishna Achugatla wrote:

> Hi Mark, Thanks. Still no luck, here I am explaining in detail.
>
> Hi,
>
> My objective is to create a shared library and link it with app and call
> some APIs of dll in the app.
>
> Platform Details:
> ---
> Qt for Symbian 4.6.0
> Qt Creator 1.3.0
> S60 5th edition
> Abld is build system
>
> Below are the steps followed and issued faced.
>
> 1. Creating "App"
>I created an app called "MyApp" using Qt-Creator "Qt4 Gui Application"
> option. Default tool chain used to build is GCCE and able to build it.
>
> 2. Creating "Shared Library"
>I created a shared library called "MyDLL" using Qt-Creator option "C++
> Library" then "Shared Library". Default tool chain is GCCE and able to built
> it.
>
> 3. Link "Shared Library" with "App"
>I don't find any good documentation of how to do this, the whole
> sequence of steps needed. I figured that LIBS needs.
>
>Added below line to MyApp.pro file
>LIBS+= -lMyDLL.dll
>
>as suggested by qmake help, then building the app gives error
>
> make[2]: *** No rule to make target
> `\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\armv5\LIB\MyDLL.dso',
> needed by
> `\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\gcce\udeb\MyApp.exe'.
> Stop.
> make[1]: *** [TARGETMYAPP_0XE25A8EF2] Error 2
>
> Question is : I am working with tool chain GCCE, why make is looking into
> ARMV5 path?. i.e.
> `\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\armv5\LIB\MyDLL.dso
>
> 4. Trying to work with Tool chain ARMV5
>First, I want to build the MyDLL with Armv5. I created a new project
> settings with tool chain as ARMV5, then build MyDLL. Following error occrued
>
>Error: CU: Unrecognized option '--visibility_inlines_hidden'.
> make[2]: ***
> [\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Qt-Projects\DLL\MyDLL\MYDLL_0XE11197E8\ARMV5\udeb\mydll.o]
> Error 1
> make[1]: *** [TARGETMYDLL_0XE11197E8] Error 2
>
>   The generated MyDLL_0xE11197e8.mmp file has the line
>   OPTION ARMCC --visibility_inlines_hidden --fpu softvfp
>
>
> I feel, creating a library is a very basic thing and it should be very easy
> for any body to do. There should be a single wiki page explaining all the
> steps with code whereever possible.
>
> I feel we should have detailed docmentation for Static Library, Shared
> Library and Plugins with code examples.
>
> Let me know if I miss any thing...
>
> -Krishna.
>
>
> On 11 February 2010 22:40, Ladnar, Marc wrote:
>
>>  Hi Krishna,
>>
>> ther is no difference in binding your static or dynamic library into
>> another app.
>> You just have to put this line into your app.pro file:
>> LIBS += -L[PATH_TO_YOUR_LIB] -l[LIB_NAME]
>> If your lib is called libxy, you will have to add -lxy, so leave the part
>> "lib".
>> Static libs are directly included into the binary, dynamic libs have to be
>> delivered with the app.
>>
>> Adding Plugins into your app needs the QPluginLoader, it is documented in
>> QtAssistant. Plugins have to be delivered with the app, too.
>>
>> Hope I could help, have a nice day.
>>
>> Marc Ladnar
>>
>>  --
>>*Von:* Krishna Achugatla [mailto:krish...@symbian.org]
>> *Gesendet:* Freitag, 12. Februar 2010 00:24
>> *An:* Qt-creator@trolltech.com
>> *Betreff:* [Qt-creator] How to include libraries in Qt
>>
>>   Hi,
>>
>>  I have created a Qt SharedLibrary (e.g. MySharedLibrary) using
>> Qt-Creator. I followed the navigation steps "File"->"New File or
>> Project->Projects"->"C++ Library". Then choose the "Type" as "Shared
>> Library", gave name and it created the Shared Library. The created shared
>> lib has the necessary declarations and defines wrt Q_DECL_EXPORT. I wrote
>> few functions in that class, so that they can be accessed in another
>> application.
>>
>>  How do I include this Shared Library as part of another Qt Application?.
>> What are the necessary changes required to make to .pro file (like adding
>> LIBS variable) and source files of the app?. Please let me know any
>> documentation is available. If the documentation explains with code, the
>> necessary changes then it becomes very easy for developers.
>>
>>  Similarly it is good to have documentation about other two types of
>> libraries, viz. "Statically linked library" & "Plugin", how to include them
>> in an application with example code.
>>
>>  -Krishna.
>>
>>
>> ___
>> 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

Re: [Qt-creator] Which files should be committed to svn?

2010-02-08 Thread Danny Price
No you can bjam that's fine! Just put all of your project configurations, 
dependencies etc in your jamroot file(s).

On 8 Feb 2010, at 15:20, Daniel Lidström wrote:

>> The pro.user file (and indeed the entire Project page that 
>> populates it) is useless. Don't check it into SVN.
>> 
>> Try to move as many of your build settings and dependencies 
>> into your .pro files or whatever build system you are using.
>> 
>> See: 
>> http://qtcreator.blogspot.com/2009/10/project-not-linked-when-dependent.html#comments
>> 
> 
> Actually I am not using any .pro files. I am using Qt Creator standalone
> from Qt, with my Makefile/Bjam-based project. Anyway thanks for the link,
> I guess I will have to change from Bjam to qmake.
> 
> /Daniel
> 
> ___
> 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] Which files should be committed to svn?

2010-02-08 Thread Danny Price

On 8 Feb 2010, at 10:39, Daniel Lidström wrote:

> Hello,
> 
> I am wondering which files should be committed to svn. The files I see created
> by Qt Creator are these:
> 
> daniel-dev:/home/daniel/projects/workspaces/GEOROG-2598> ls UMC3D.*
> UMC3D.config  UMC3D.creator  UMC3D.creator.user  UMC3D.files  UMC3D.includes
> 
>> From my Visual Studio experience I would guess all except *.user should be 
>> checked
> into svn. However, the UMC3D.creator.user seems to contain all my build 
> configurations,
> along with many local paths. If I commit this file to svn it would probably 
> (?)
> oscillate everytime some other user commits his version. Are the build 
> configurations
> meant to be local for each user?

The pro.user file (and indeed the entire Project page that populates it) is 
useless. Don't check it into SVN.

Try to move as many of your build settings and dependencies into your .pro 
files or whatever build system you are using.

See: 
http://qtcreator.blogspot.com/2009/10/project-not-linked-when-dependent.html#comments

> 
> Regards,
> 
> Daniel Lidström
> Stockholm, Sweden 
> 
> ___
> 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] "Add Getters and Setters" in Qt Creator

2010-02-06 Thread Danny Price

On 6 Feb 2010, at 14:39, Andre Poenitz wrote:

> On Fri, Feb 05, 2010 at 03:25:41PM -1000, John Vilburn wrote:
>> I guess if you are writing a library, then renaming a class should not
>> be taken lightly. But for an application, I sometimes need to rename a
>> class, just as I sometimes need to rename a variable or function
>> because when I first named it (a year ago) I named it poorly and
>> renaming it makes the code easier to read and maintain. I guess I am
>> not as good as you are at coming up with the perfect name for a
>> variable, function, or class. The Rename Symbol is essential for those
>> of us who make mistakes but still care about readability.
> 
> You put it like missing "fully automatic renaming" makes it impossible
> to rename stuff at all. But there's still a text editor and global
> search-and-replace. Not to mention all the other tools that people used
> in years before Creator came into existence.
> 
> Yes, renaming files would be nice. No doubt. I would like to use it myself.
> 
> It's just that other things are ranked higher by those people who
> do the work.

Things like redesigning the Project screen for the 3rd time? Or pushing the QML 
designer, an interesting technology that has little relevance in real 
production code? Or redesigning the mode bar? These are all changes that have 
been made to the master in recent weeks. Nokia seems to have some odd 
priorities.


> And if it really irks you, why not implement it?

It's not just John. Many people on this list have asked for this functionality. 
Nokia/Trolltech just seem to be putting a lot of effort into things that people 
don't need.

> 
> 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


Re: [Qt-creator] How to compile Qt-creator to support MADDE and on-device debugging?

2010-02-05 Thread Danny Price
On Fri, Feb 5, 2010 at 9:10 AM, Rudenko Eugene  wrote:

> Other point, I have 32 bit Mac OS 10.6
>

There is no 32bit version of Mac OS 10.6. The kernal can be made to run
32bit (as it does for drivers) but that's not the default.



> > On Thursday 04 February 2010 22:25:57 ext Rudenko Eugene wrote:
> >> Here is compilation problem:
> >> [  ... ]
> >
> > Thanks for the report. You are on a Power PC Mac, I assume? Apparently,
> this
> > part of the project mistakenly assumes Intel architecture. We will fix
> that.
> >
> > Christian
> > ___
> > 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] Compiling Creator as 32bit on OSX Snow Leopard

2010-02-05 Thread Danny Price
What's the simplest way to build Creator and all it's plugins as 32bit
carbon on 10.6?

I tried it niavely last night by adding CONFIG += x86 to all the .pro files
but I still got 'incorrect architecture' type errors from make.

I want to build Mac versions of some 3rd party plugins that will work with
the 'standard' version of Creator (32bit Carbon).
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] QtCreator 1.3.1 startup very slow

2010-02-05 Thread Danny Price
Actually it would be good if you guys could provide the option of turning
this off (or collect the data in a seperate thread).

On Fri, Feb 5, 2010 at 7:20 AM, YW Dou  wrote:

> Hi,
>
> QtCreator1.3.1 is very slow at startup time, it will take 20 seconds or
> more. I had made an in-depth investigation. If the feature--fetching rss is
> disabled via commenting out the following line (in this file
> C:\qt-creator-src-1.3.1\src\plugins\welcome\communitywelcomepagewidget.cpp
> in my computer), it can show up in 2 or 3 seconds.
>
> //m_rssFetcher->fetch(QUrl(tr("http://labs.trolltech.com/blogs/feed
> ")));
>
> Is there a better way to fetch rss?
>
>
> Regards,
> Yongwang Dou
>
> ___
> 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] QtCreator 1.3.1 startup very slow

2010-02-05 Thread Danny Price
Good tip! The slow startup of Creator was becoming annoying. Even bloated
VisualStudio starts up faster these days!

On Fri, Feb 5, 2010 at 7:20 AM, YW Dou  wrote:

> Hi,
>
> QtCreator1.3.1 is very slow at startup time, it will take 20 seconds or
> more. I had made an in-depth investigation. If the feature--fetching rss is
> disabled via commenting out the following line (in this file
> C:\qt-creator-src-1.3.1\src\plugins\welcome\communitywelcomepagewidget.cpp
> in my computer), it can show up in 2 or 3 seconds.
>
> //m_rssFetcher->fetch(QUrl(tr("http://labs.trolltech.com/blogs/feed
> ")));
>
> Is there a better way to fetch rss?
>
>
> Regards,
> Yongwang Dou
>
> ___
> 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] "Add Getters and Setters" in Qt Creator

2010-02-04 Thread Danny Price
On Thu, Feb 4, 2010 at 12:49 PM, Gena Cid  wrote:

> This is too strong! And too complex: think, for example, about doxygen
> comments. And about guard' names (I mean #ifndef-#define-#endif). And cmake-
> or Makefile-based projects?
>

I would say that guard names and comments are up to the user to fix. That's
trivial next to the hoops you currently have to jump through to refactor
files in Creator.



>
> If this feature be in QtC sometime, it must be an option!
>
> -|-
> Gena.
> ___
> 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] "Add Getters and Setters" in Qt Creator

2010-02-04 Thread Danny Price
>
> In my projects I always put one class in each file and name the file to
> match the class. I suspect this is a pretty common practice. It would
> complete the process for me if Rename Symbol had the option, when the symbol
> is a class name, to rename the .cpp and .h files, update the #include
> statements that reference the .h file, and update the .pro file.
>
>
Vote on the request! http://bugreports.qt.nokia.com/browse/QTCREATORBUG-26
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Updated .user-file saving mechanismn

2010-02-03 Thread Danny Price
On Wed, Feb 3, 2010 at 8:42 AM, Tobias Hunger wrote:

> On 02.02.2010 19:22, ext Danny Price wrote:
> > I'm so used to trashing those files I've almost stopped thinking about it
> :(
>
> In which situations do you trash those files? I have not had complaints
> about those files breaking. The exception being going back and forth
> between stable and unreleased versions of creator. My change should
> improve this situation a bit by keeping the stable versions .user-file
> around. So now you can at least copy the old version's file back when
> heading back to a stable release.
>

When working with nested subdir projects, I often get 'executable not found,
permissions wrong?' type errors when trying to run the binary. Creator's
support for subdirs is flakey at best (see below) so I often have to open
the project itself seperately so that it is top level. This must confuse the
user file as I have to delete it and reload the project to get the program
to run again.

I've also had issues where builds will fail for strange reasons in which
case trashing the use file again solves the problem. When in doubt, trash
the file.



>
> > How do you set project dependencies then? I have a huge set of libraries
> > and I have found Qt's 'session' system (which is based around those user
> > files)
>
> Sessions are meant to store one users state (open files and projects,
> bookmarks, breakpoints, etc.). It is not meant to be shared in a team.
>
> I have not really looked into the session system yet, so I can not
> comment on the implementation details. It is very much separate from the
> .user files. From what I understood so far sessions reference projects
> (in the QMake case: .pro-files), not .user files. So they should at
> least not be effected by .user-file trashing to much:-)
>
> > to be absolutely useless because those files cannot be used
> > across platform or even among teams on the same platform.
>
> They contain user-specific setups and are not meant to be shared in a team.
>

Project dependencies are not user-specific setups, nor are build steps when
everyone is using the same tools and platforms. The latter are uses to set
version information, run unit tests...how are these things user-specific?

I have managed to do a lot of this in the .pro files now (using undocumented
qmake hacks - joy) so Creator forces the user to become something of a
power-user beyond trivial projects.

User-specific setups should include break-points, auto-completion caches and
stuff like that. Not major project settings.


>
> > You guys are clearly spending time polishing Creator's 'Project' screen
> > (I see the layout has changed again in the master) but I cannot use it
> > at all.
>
> These changes should be even more important to people trashing their
> .user files regularly:-)
>
> Seriously: There will be more changes to that soon to ease working with
> device SDKs.
>
> > I have to set build settings and project dependencies (where
> > possible) in the .pro files.
>
> Yes, information meant to be shared in a team is better kept in the
> build system itself. Dependencies can e.g. get encoded by SUBDIRS
> template in .pro-files (which can then be shared in a team).
>

I've been using subdirs since day one :)

But creator doesn't play well with subdirs. There is zero wizard support so
it's entirely manual process. Until very recently, you couldn't even build a
specific subdir project - you had to build the whole lot (and still do in
the released versions). And Creator's issue with failing to relink with
changed code means that a build is often not sufficient; you have to do a
rebuild!

Everyone seems to use subdirs in Creator including the Nokia guys at the Dev
Days and the KDAB courses I have attended. And all of them seem to be
suffering the same issues. I don't think anyone uses sessions with flat
projects.

The only reason I stick with Creator after all of this is because of the
superior code editor, auto-complete and the suckiness of XCode.


>
> Best Regards,
> Tobias
> ___
> 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] Updated .user-file saving mechanismn

2010-02-02 Thread Danny Price
>> 
>>> Right now when I open a project in a different platform, I need to
>>> delete .user and other make files or the project will use the build
>>> steps from the other platform.
>> 
>> I do not check in the user file into my version control system. So all 
>> my different systems have separate user files.

I'm so used to trashing those files I've almost stopped thinking about it :(

How do you set project dependencies then? I have a huge set of libraries and I 
have found Qt's 'session' system (which is based around those user files) to be 
absolutely useless because those files cannot be used across platform or even 
among teams on the same platform. 

You guys are clearly spending time polishing Creator's 'Project' screen (I see 
the layout has changed again in the master) but I cannot use it at all. I have 
to set build settings and project dependencies (where possible) in the .pro 
files.

What am I missing?

Sorry to bring up this topic again...

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


Re: [Qt-creator] Compile-time signal and slot checking

2010-02-02 Thread Danny Price
I doubt this is possible at compile time as the connections are only made at
runtime. If it helps, connect() returns false if a connection fails which
you can use to catch with a macro.

Also this list is for the Creator IDE, not the language itself. Please post
these questions to qt-interest et al.

On Tue, Feb 2, 2010 at 1:40 AM, John Vilburn  wrote:

> It would be very helpful if QtCreator took a pass through the code at
> compile time looking for SIGNAL() and SLOT() macros with incorrectly defined
> signals or slots. It is probably a bit much to ask of other development
> environments, but it would sure be nice if Qt Creator could do this. This is
> one error that is pretty common for me and it is a pain to wait until run
> time to catch the problem.
>
> Even better would be if some super-smart developer could figure out how to
> rewrite the SIGNAL and SLOT macros so that this type of checking would
> happen at compile time in any development environment.
>
> John
>
>
> ___
> 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] code completion anomaly

2010-01-29 Thread Danny Price
On Fri, Jan 29, 2010 at 1:33 PM, Mark Brand  wrote:

>
>  "aaa->" triggers code completion but should not.
>>
>> "aaa." should trigger code completion but does not.
>>
>>
> Creator seems to have issues with nested classes. It actually used to crash
> in this case but that bug was fixed (once I finally convinced Nokia it was a
> problem...).
>
> My adivce is to not use nested classes.
>
>
> Some people actually like to use trivial nested classes to aid in code
> completion. It can be convenient to type in something like "aaa." and then
> quickly choose what you want. Think of it as a namespace within a class.
>

You should write code based on best coding and design practice, not to
adhere to the whims of a particular IDE's syntax completion. Class nesting
is like function nesting in old C - it get's out of control fast. Pmpl is an
exception (and in that case the class is defined within the cpp file
anyway). For most other cases, class friendships are better.


>
> Two new discoveries:
>
> 1) Code completion is not the only problem.  "Find usages" doesn't work
> either.
>
> 2) If you separate the member declaration from the nested class
> declaration, neither problem occurs. This a good workaround. See example
> below:
>
>
> class MainWindow : public QMainWindow {
> Q_OBJECT
> public:
> explicit MainWindow(QWidget *parent = 0);
> ~MainWindow();
>
> private:
> Ui::MainWindow *ui;
>
> class AAA
> {
> public:
> int a;
> int b;
> int c;
> } aaa;  //code completion and "find usages" don't work
>
> AAA bbb; //code completion and "find usages" work
> };
>
>
>
> ___
> 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] code completion anomaly

2010-01-29 Thread Danny Price
On Fri, Jan 29, 2010 at 1:27 PM,  wrote:

>
> Hi,
>
> On Jan 29, 2010, at 2:14 PM, ext Danny Price wrote:
>
> > Creator seems to have issues with nested classes. It actually used to
> crash in this case but that bug was fixed (once I finally convinced Nokia it
> was a problem...).
>
> or maybe because the bug was reported and I had time to fix it.
>

> >
> > My adivce is to not use nested classes.
>
> My advice is to report the bug using our Qt bug tracker so I can look at
> problem and eventually fix it.
>

I reported the crash-bug both on this list (several times) and here
http://bugreports.qt.nokia.com/browse/QTCREATORBUG-199 but it was reported
'un-reproducable'. Sometime later it was magically fixed!

>
> ciao robe
>
>
> ___
> 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] code completion anomaly

2010-01-29 Thread Danny Price
Creator seems to have issues with nested classes. It actually used to crash
in this case but that bug was fixed (once I finally convinced Nokia it was a
problem...).

My adivce is to not use nested classes.

On Fri, Jan 29, 2010 at 1:03 PM, Mark Brand  wrote:

> Hi,
>
> This is a question about code completion in Qt Creator. I have been
> enjoying using Qt Creator built from the latest git sources.
>
> Here is the issue:
>
> Code completion in the does not seem to work right for member class
> declarations. For the example below:
>
> "aaa->" triggers code completion but should not.
>
> "aaa." should trigger code completion but does not.
>
> Is this really wrong, or is there more to this than meets the eye.
>
> regards,
>
> Mark
>
> #ifndef MAINWINDOW_H
> #define MAINWINDOW_H
>
> #include 
>
> namespace Ui {
>class MainWindow;
> }
>
> class MainWindow : public QMainWindow {
>Q_OBJECT
> public:
>explicit MainWindow(QWidget *parent = 0);
>~MainWindow();
>
> protected:
>void changeEvent(QEvent *e);
>
> private:
>Ui::MainWindow *ui;
>
>class AAA
>{
>public:
>int a;
>int b;
>int c;
>} aaa;
> };
>
> #endif // MAINWINDOW_H
>
> ___
> 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] CppSupport Plugin 1.3.x for Qt Creator

2010-01-27 Thread Danny Price
Hey sorry have been busy. It's a pain to build them - you can't just drop
the source into Creator and compile for some reason.

I'll do some proper release builds tonight.

On Tue, Jan 26, 2010 at 11:22 PM, Stephen Chu  wrote:

> Any news on where OS X binaries are available?
>
> Thanks
>
> In article <664fcc84-0056-41f7-8560-1cbf79e6f...@googlemail.com>,
>  Danny Price  wrote:
>
> > Hi I managed build it on OSX. Seems to work great!
> >
> > It seems really strange to me that I must download and build some special
> > version of Creator just to compile your plugin! What am I missing here?
> >
> > Anyway thanks a LOT for your efforts in creating this. It really adds
> value
> > to Creator.
> >
> > Would you like me to provide the OSX binaries?
> >
> > On 22 Jan 2010, at 14:58, visual fc wrote:
> >
> > > to danny Price
> > >
> > > I not have OSX computer. Can not be tested
> > >
> > >
> > >
> > > ___
> > > 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
>
> --
> Stephen Chu
> ___
> 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] CppSupport Plugin 1.3.x for Qt Creator

2010-01-22 Thread Danny Price
Hi I managed build it on OSX. Seems to work great!

It seems really strange to me that I must download and build some special 
version of Creator just to compile your plugin! What am I missing here?

Anyway thanks a LOT for your efforts in creating this. It really adds value to 
Creator.

Would you like me to provide the OSX binaries?

On 22 Jan 2010, at 14:58, visual fc wrote:

> to danny Price
> 
> I not have OSX computer. Can not be tested
> 
> 
> 
> ___
> 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] CppSupport Plugin 1.3.x for Qt Creator

2010-01-22 Thread Danny Price
I must be missing something - can someone explain how to compile an OSX
version? I downloaded creator 1.3.1 source from git, moved the plugin source
into the directory source as instructed and built Creator. I then tried to
build the plugin and got that missing header error.

What am I doing wrong?

2010/1/22 Thorbjørn Lindeijer 

> On 01/21/2010 09:03 AM, ext visual fc wrote:
> > Hi all.
> >
> > CppSupport is a QtCreator Plugin for C++ Class View
>
> I tried it out (compiled the cppsupport branch in your git repository),
> and it looks pretty good!
>
> One thing I was wondering is why you chose to put the final nesting
> level in a view at the bottom, instead of just having everything in the
> tree? Same question about the combo box for projects, why are they not
> the top-level items in the tree?
>
> Regards,
> Bjørn
>
> --
> Thorbjørn Lindeijer
> Software Engineer
> Nokia, Qt Development Frameworks
> ___
> 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] CppSupport Plugin 1.3.x for Qt Creator

2010-01-21 Thread Danny Price
It's a missing header file. You'll get the same error regardless of platform. 
What is extensionsystem/iplugin.h?

On 22 Jan 2010, at 00:40, visual fc wrote:

> I just build for windows and linux 64bit
> You can try to use git download
> http://qt.gitorious.org/~visualfc/qt-creator/qt-creator-cppsupport/commits/cppsupport-1.3.1
> 
> 2010/1/22 Danny Price 
> Yes I followed the instructions and build creator from source (1.3.1) with 
> your plugin src copied to the correct directory. It doesn't get built 
> automatically as your instructions seem to imply.
> 
> On 22 Jan 2010, at 00:02, visual fc wrote:
> 
>> You need qt-creator-1.3.x-src to build or use git
>> http://www.cppblog.com/visualfc/archive/2010/01/21/106142.html
>> 
>> 2010/1/22 Danny Price 
>> I tried building the plugin but I get this error:
>> 
>> /Users/ks/Downloads/cppsupport-1.3.1-src/src/plugins/cppsupport/cppsupportplugin.h:33:
>>  error: extensionsystem/iplugin.h: No such file or directory
>> 
>> On 21 Jan 2010, at 11:44, visual fc wrote:
>> 
>>> I only test build for win32 and linux 64bit. 
>>> 
>>> http://code.google.com/p/visualfc/downloads/list
>>> 
>>> Only win32-plugin and all platform source.
>>> 
>>> You can download Qt Creator source and cppsupport source to build.
>>> 
>>> Git url :
>>> http://gitorious.org/~visualfc/qt-creator/qt-creator-cppsupport
>>> 
>>> 
>>> 
>>> 2010/1/21 Danny Price 
>>> Wonderful! Can you please provide OSX and Linux binaries? I don't see why I 
>>> need to build Creator as well.
>>> 
>>> 
>>> On Thu, Jan 21, 2010 at 8:03 AM, visual fc  wrote:
>>> Hi all.
>>> 
>>> CppSupport is a QtCreator Plugin for C++ Class View
>>> 
>>> Downloads:
>>> http://code.google.com/p/visualfc/downloads/list
>>> 
>>> Git source url
>>> =
>>> git:git://gitorious.org/~visualfc/qt-creator/qt-creator-cppsupport.git
>>> branch: cppsupport cppsupport-1.3.1 cppsupport-1.3.0
>>> 
>>> Auchor
>>> =
>>> Author: visualfc
>>> Email : visua...@gmail.com
>>> Latest: 2010.1.21
>>> 
>>> 
>>> Install win32-plugin
>>> =
>>> Install qt-creator-win-opensource-1.3.0.exe
>>> Copy "win32-plugin/cppsupport" to "qtcreator-1.3.0/lib/qtcreator/plugins/"
>>> Run qtcreator.exe
>>> 
>>> 
>>> Compiling source
>>> 
>>> You need Qt 4.6 and Qt Creator Source to build Qt Creator and CppSupport 
>>> Plugin
>>> 
>>> Download qt-creator-1.3.x-src.zip
>>> Copy "src/plugins/*" to "qt-creator-1.3.x-src/src/plugins/"
>>> Build qt-creator-1.3.x-src
>>> 
>>> 
>>> ___
>>> 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 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] CppSupport Plugin 1.3.x for Qt Creator

2010-01-21 Thread Danny Price
Yes I followed the instructions and build creator from source (1.3.1) with your 
plugin src copied to the correct directory. It doesn't get built automatically 
as your instructions seem to imply.

On 22 Jan 2010, at 00:02, visual fc wrote:

> You need qt-creator-1.3.x-src to build or use git
> http://www.cppblog.com/visualfc/archive/2010/01/21/106142.html
> 
> 2010/1/22 Danny Price 
> I tried building the plugin but I get this error:
> 
> /Users/ks/Downloads/cppsupport-1.3.1-src/src/plugins/cppsupport/cppsupportplugin.h:33:
>  error: extensionsystem/iplugin.h: No such file or directory
> 
> On 21 Jan 2010, at 11:44, visual fc wrote:
> 
>> I only test build for win32 and linux 64bit. 
>> 
>> http://code.google.com/p/visualfc/downloads/list
>> 
>> Only win32-plugin and all platform source.
>> 
>> You can download Qt Creator source and cppsupport source to build.
>> 
>> Git url :
>> http://gitorious.org/~visualfc/qt-creator/qt-creator-cppsupport
>> 
>> 
>> 
>> 2010/1/21 Danny Price 
>> Wonderful! Can you please provide OSX and Linux binaries? I don't see why I 
>> need to build Creator as well.
>> 
>> 
>> On Thu, Jan 21, 2010 at 8:03 AM, visual fc  wrote:
>> Hi all.
>> 
>> CppSupport is a QtCreator Plugin for C++ Class View
>> 
>> Downloads:
>> http://code.google.com/p/visualfc/downloads/list
>> 
>> Git source url
>> =
>> git:git://gitorious.org/~visualfc/qt-creator/qt-creator-cppsupport.git
>> branch: cppsupport cppsupport-1.3.1 cppsupport-1.3.0
>> 
>> Auchor
>> =
>> Author: visualfc
>> Email : visua...@gmail.com
>> Latest: 2010.1.21
>> 
>> 
>> Install win32-plugin
>> =
>> Install qt-creator-win-opensource-1.3.0.exe
>> Copy "win32-plugin/cppsupport" to "qtcreator-1.3.0/lib/qtcreator/plugins/"
>> Run qtcreator.exe
>> 
>> 
>> Compiling source
>> 
>> You need Qt 4.6 and Qt Creator Source to build Qt Creator and CppSupport 
>> Plugin
>> 
>> Download qt-creator-1.3.x-src.zip
>> Copy "src/plugins/*" to "qt-creator-1.3.x-src/src/plugins/"
>> Build qt-creator-1.3.x-src
>> 
>> 
>> ___
>> 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 mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Problems with Dockwidgets

2010-01-21 Thread Danny Price
We'll still be here when you come back :)

On 21 Jan 2010, at 22:09, Coda Highland wrote:

> On Thu, Jan 21, 2010 at 3:11 PM, Ken Ray  wrote:
>> I tried qt-interest and not much of a response. Note that this test app I'm 
>> trying to build is just like the fontsampler demo that comes with 
>> creator/QT.  I'm trying to duplicate the dockwidget on the left. How did 
>> fontsampler get around this problem ?   It seems to me that if Creator can't 
>> hold a layout for more than a few clicks there is a serious flaw. It makes 
>> working with all the contents related to that dockwidget a pain in the ass.
>> 
>> I'm going to go play with Mono now to see how there stuff is .
>> 
>> I want some cross platform development that is stable. but if none is stable 
>> , then I guess it's back to VS .net ..
> 
> Mono is pretty gimped, sadly. Most of the "good" .NET stuff is
> Microsoft-only junk that's only available on Windows. Even Java would
> be preferable to .NET if you want cross-platform compatibility.
> 
> You happened to hit on the one thing I don't like about Qt: dock
> widgets. I've never had a lot of luck with them, and when I do use
> them I develop with code, not Designer. There's several things that
> they don't do quite right. But don't let that one widget turn you off
> to the toolkit as a whole. Qt's very stable and very robust, and it's
> the best toolkit available for writing apps that look native on all
> supported platforms.
> 
> Consider possibly using some other solution if dock widgets in
> Designer aren't working for you. Maybe construct the dock widgets in
> code, or maybe use some non-docking solution.
> 
> /s/ Adam
> 
> ___
> 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] CppSupport Plugin 1.3.x for Qt Creator

2010-01-21 Thread Danny Price
I tried building the plugin but I get this error:

/Users/ks/Downloads/cppsupport-1.3.1-src/src/plugins/cppsupport/cppsupportplugin.h:33:
 error: extensionsystem/iplugin.h: No such file or directory

On 21 Jan 2010, at 11:44, visual fc wrote:

> I only test build for win32 and linux 64bit. 
> 
> http://code.google.com/p/visualfc/downloads/list
> 
> Only win32-plugin and all platform source.
> 
> You can download Qt Creator source and cppsupport source to build.
> 
> Git url :
> http://gitorious.org/~visualfc/qt-creator/qt-creator-cppsupport
> 
> 
> 
> 2010/1/21 Danny Price 
> Wonderful! Can you please provide OSX and Linux binaries? I don't see why I 
> need to build Creator as well.
> 
> 
> On Thu, Jan 21, 2010 at 8:03 AM, visual fc  wrote:
> Hi all.
> 
> CppSupport is a QtCreator Plugin for C++ Class View
> 
> Downloads:
> http://code.google.com/p/visualfc/downloads/list
> 
> Git source url
> =
> git:git://gitorious.org/~visualfc/qt-creator/qt-creator-cppsupport.git
> branch: cppsupport cppsupport-1.3.1 cppsupport-1.3.0
> 
> Auchor
> =
> Author: visualfc
> Email : visua...@gmail.com
> Latest: 2010.1.21
> 
> 
> Install win32-plugin
> =
> Install qt-creator-win-opensource-1.3.0.exe
> Copy "win32-plugin/cppsupport" to "qtcreator-1.3.0/lib/qtcreator/plugins/"
> Run qtcreator.exe
> 
> 
> Compiling source
> 
> You need Qt 4.6 and Qt Creator Source to build Qt Creator and CppSupport 
> Plugin
> 
> Download qt-creator-1.3.x-src.zip
> Copy "src/plugins/*" to "qt-creator-1.3.x-src/src/plugins/"
> Build qt-creator-1.3.x-src
> 
> 
> ___
> 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] CppSupport Plugin 1.3.x for Qt Creator

2010-01-21 Thread Danny Price
Wonderful! Can you please provide OSX and Linux binaries? I don't see why I
need to build Creator as well.


On Thu, Jan 21, 2010 at 8:03 AM, visual fc  wrote:

> Hi all.
>
> CppSupport is a QtCreator Plugin for C++ Class View
>
> Downloads:
> http://code.google.com/p/visualfc/downloads/list
>
> Git source url
> =
> git:
> git://gitorious.org/~visualfc/qt-creator/qt-creator-cppsupport.git
> branch: cppsupport cppsupport-1.3.1 cppsupport-1.3.0
>
> Auchor
> =
> Author: visualfc
> Email : visua...@gmail.com
> Latest: 2010.1.21
>
>
> Install win32-plugin
> =
> Install qt-creator-win-opensource-1.3.0.exe
> Copy "win32-plugin/cppsupport" to "qtcreator-1.3.0/lib/qtcreator/plugins/"
> Run qtcreator.exe
>
>
> Compiling source
> 
> You need Qt 4.6 and Qt Creator Source to build Qt Creator and CppSupport
> Plugin
>
> Download qt-creator-1.3.x-src.zip
> Copy "src/plugins/*" to "qt-creator-1.3.x-src/src/plugins/"
> Build qt-creator-1.3.x-src
>
>
> ___
> 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] Feature request: Project and Build panels auto-hide options

2010-01-20 Thread Danny Price
I don't see how having good keyboard support should necessarily sacrifice
'conventional' mouse support.

This certainly explains a few things though - there are parts of Creator's
UI that are downright strange.

On Wed, Jan 20, 2010 at 3:57 PM, Nicolas Arnaud-Cormos wrote:

> On Wednesday 20 January 2010 16:35:43 Ilyes Gouta wrote:
> > > PS: Are you aware of the Alt-0 ("Zero") keyboard shortcut?
> >
> > Yes. It still requires me to push some buttons, Alt+0, Alt+1, Alt+2,
> > etc. Sometimes I confuse one shortcut for another one, whereas using
> > the mouse, it's just about hovering over a hot region (the edge of a
> > minimized panel?) to get to the functionality: It's a lot easier and
> > practical. It's about usability.
>
> Funny, using the mouse in an IDE is for me not practical at all. Most of
> your
> time you are typing your code, and using the mouse makes you move your hand
> from the keyboard.
> I find it way more easier to have shortcuts for all important things, and I
> can
> always navigate the menu with the keyboard for the rest.
>
> And Qt Creator is the only IDE I know that lets me do everything with the
> keyboard (thank you locator).
> It takes some time to learn the keyboard (easier with a reference card),
> but
> when it's done, you'll be more productive than using the mouse.
>
> That's just my point of view.
>
> Cheers,
> Nicolas
>
> > -Ilyes
> >
> > On Wed, Jan 20, 2010 at 2:21 PM, André Pönitz 
> wrote:
> > > On Wednesday 20 January 2010 14:18:09 ext Ilyes Gouta wrote:
> > >> Hi,
> > >>
> > >> Is it possible to consider the addition of this new feature request
> > >> "project and build panels auto-hide" in the next iteration of
> > >> QtCreator?
> > >>
> > >> Basically it's about adding a kind of a transition to the project tree
> > >> panel and the build status panels where they slide-in to become
> > >> visible once the mouse pointer hits a hot area to bring them in.
> > >> Otherwise, those windows stay hidden. This is will enable the source
> > >> code editor window to take entire screen estate which really increases
> > >> the productivity when you're like working/editing once single file at
> > >> once. It's really important, you know, for someone who spends like his
> > >> entire computer-time editing code :) Is it possible to consider it?
> > >
> > > Consider adding it to bugreports.qt.nokia.com
> > >
> > > Regards,
> > > Andre'
> > >
> > > PS: Are you aware of the Alt-0 ("Zero") keyboard shortcut?
> > >
> > >
> > >
> > > ___
> > > 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
> >
>
> --
> Nicolas Arnaud-Cormos | nico...@kdab.com | Software Ingeneer
> 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 mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] default session in Session Management

2010-01-20 Thread Danny Price
A lot of us are not fond of the sessions concept so if such 'auto-loading'
of session projects is to be implemented, please add a settings option to
disable it and preserve the current behavior.

On Wed, Jan 20, 2010 at 12:34 AM, Krishna Achugatla wrote:

> Qt-Creator has the concept of Session Management, using which session can
> be created, deleted, switched. By default a session called "default session"
> is created. But when Qt-Creator is launched, it is not loading (making
> active) the "default session". As a result Qt-Creator is launched without
> any active session. So, if a project (say animatedtiles) is opened it is not
> assocaited with any session. When Qt-Creator is closed and reopened, it
> doesn't load that project (i.e. animatedtiles). This is the right behavior.
>
> The way for the user to work is, launch the Qt-Creator and choose the
> session (Welcome->Develop->Resume Session->default). Then load the project.
> If the Qt-Creator is closed and reopened the state is preserved with
> "default session". If the "default session" is activated user can see the
> previosuly loaded project (i.e. animatedtiles).
>
> Issues are
>
> 1. When Qt is launched why "default session" is not activated?. If this is
> done, then any project opened will be saved for next re-launch of
> Qt-Creator. This is going to give much better user experience as well, i.e.
> user can avoid loading the "default session" every time Qt_Creator is
> opened.
>
> 2. When Qt-Creator is launched current active session is indicated by,
> File->Session shows default session is active by indicating a blue dot. This
> is a false indication. File->Session navigation also seems to be a way of
> managing sessions, but when that option of File->Session->default is
> selected it's not loading the "default session"!.
>
> -Krishna.
>
> ___
> 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] rvalue references

2010-01-15 Thread Danny Price
You mean the syntax-checker doesn't support it or the IDE doesn't support 
building 0x code?

I had a similar question a few weeks back and was told it should work if the 
compiler supports it.

On 15 Jan 2010, at 10:42, Thorbjørn Lindeijer wrote:

> On 01/15/2010 11:13 AM, ext Wilhelm wrote:
>> Hi,
>> 
>> does qtcreator support rvalue references via some configuration?
>> 
>> Using void foo(Test&&  t); leads to syntax error in qtcreator whereas
>> compiling with g++ -std=c++0x is ok.
> 
> Qt Creator does not currently support C++0x.
> 
> Regards,
> Bjørn
> ___
> 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] Snapshot logic?

2010-01-07 Thread Danny Price
Can someone explain to me the logic behind the snapshot builds on the ftp?
Sometimes they include linux builds, sometimes Windows builds and
occasionally OSX builds. There doesn't seem to be any pattern to it and it's
become even more fragmented since 1.2 was released.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Add new project templates

2010-01-07 Thread Danny Price
hehe :)

2010/1/7 Robert Löhning 

> ...EVERYthing at once.
>
> Loehning Robert (Nokia-D/Berlin) schrieb:
> > ...and sending in well-tested patches is even harder to ignore. ;-)
> > We're not ignoring anyone but unfortunately we can't do anything at once.
> >
> > Regards,
> > Robert
> >
> >
> > ext Danny Price schrieb:
> >> I've posted a request for C templates -
> http://bugreports.qt.nokia.com/browse/QTCREATORBUG-546.
> >>
> >> You guys should add similar, specific requests for the features you want
> rather than asking for them on the mailing list. Tickets are harder for
> Nokia to ignore.
> >>
> >> On Thu, Jan 7, 2010 at 7:30 AM, Ladnar, Marc <
> marc.lad...@ksab.kroschu.com<mailto:marc.lad...@ksab.kroschu.com>> wrote:
> >> Hello all,
> >>
> >> As far as I know is there someone out there who is allredy programming a
> >> support for custom templates.
> >> It's about3 or 4 months that he asked for ideas in this list.
> >>
> >> I don't know how far this project is. It's just for info...
> >>
> >> Have a nice day,
> >>
> >> Marc
> >>
> >> -Ursprüngliche Nachricht-
> >> Von: fungos [mailto:fun...@gmail.com<mailto:fun...@gmail.com>]
> >> Gesendet: Mittwoch, 23. Dezember 2009 00:50
> >> An: qt-creator@trolltech.com<mailto:qt-creator@trolltech.com>
> >> Betreff: Re: [Qt-creator] Add new project templates
> >>
> >> I would like to be able to create templates, mainly if they can have a
> >> directory structure by they own. We have internal projects that must
> >> obey some guidelines like src and include in different directories,
> >> project files in another and data files in another, etc.. This would be
> >> great :)
> >>
> >> On Sun, Dec 20, 2009 at 7:48 AM, Florian Schwehn
> >> mailto:fschw...@googlemail.com>> wrote:
> >>> i do agree too! i also think of class templates and stuff like that.
> >>> from time to time i'd really like to add an extra class template
> >>> besides from QObject or QWidget. it can help speed up your workflow if
> >>> you're deriving classes from abstract ones. so all the pure virtual
> >>> functions could be preimplementet in the template.
> >>>
> >>> 2009/12/18 Porfírio Ribeiro  porfirioribe...@gmail.com>>
> >>>> I agree with you, i also use QtCreator for some non Qt projects!
> >>>>
> >>>> 2009/12/16 Tiago Correia  ti...@cnotinfor.pt>>
> >>>>> Hi,
> >>>>> I'd like to add new templates for projects, when creating a new
> >> project.
> >>>>> How can i do this?
> >>>>> A project that is very useful for me is, for creating a simple C or
> >>>>> C++ program, that doesn't use Qt.
> >>>>> I've always to edit the pro file. If this could be done, I can see
> >>>>> Qt Creator as tool for helping novice users to program.
> >>>>>
> >>>>> --
> >>>>> Tiago Correia
> >>>>> chief technology officer
> >>>>>
> >>>>> cnoti inovação & desenvolvimento  Aprendizagem enRiquecida pela
> >>>>> Tecnologia www.cnotinfor.pt<http://www.cnotinfor.pt>
> >>>>> Telefone: +351 239 499 231
> >>>>>
> >>>>> Subscreva gratuitamente a nossa Newsletter BICA  Boletim
> >>>>> informativo de Interactividade, Comunicação e Aprendizagem
> >>>>>
> >>>>>
> >>>>> ___
> >>>>> Qt-creator mailing list
> >>>>> Qt-creator@trolltech.com<mailto:Qt-creator@trolltech.com>
> >>>>> http://lists.trolltech.com/mailman/listinfo/qt-creator
> >>>>>
> >>>>
> >>>> --
> >>>> Porfirio Ribeiro
> >>>>
> >>>> ___
> >>>> Qt-creator mailing list
> >>>> Qt-creator@trolltech.com<mailto:Qt-creator@trolltech.com>
> >>>> http://lists.trolltech.com/mailman/listinfo/qt-creator
> >>>>
> >>> ___
> >>> Qt-creator mailing list
> >>> Qt-creator@trolltech.com<mailto:Qt-creator@trolltech.com>
> >>> ht

Re: [Qt-creator] Add new project templates

2010-01-07 Thread Danny Price
I've posted a request for C templates -
http://bugreports.qt.nokia.com/browse/QTCREATORBUG-546.

You guys should add similar, specific requests for the features you want
rather than asking for them on the mailing list. Tickets are harder for
Nokia to ignore.

On Thu, Jan 7, 2010 at 7:30 AM, Ladnar, Marc
wrote:

> Hello all,
>
> As far as I know is there someone out there who is allredy programming a
> support for custom templates.
> It's about3 or 4 months that he asked for ideas in this list.
>
> I don't know how far this project is. It's just for info...
>
> Have a nice day,
>
> Marc
>
> -Ursprüngliche Nachricht-
> Von: fungos [mailto:fun...@gmail.com]
> Gesendet: Mittwoch, 23. Dezember 2009 00:50
> An: qt-creator@trolltech.com
> Betreff: Re: [Qt-creator] Add new project templates
>
> I would like to be able to create templates, mainly if they can have a
> directory structure by they own. We have internal projects that must
> obey some guidelines like src and include in different directories,
> project files in another and data files in another, etc.. This would be
> great :)
>
> On Sun, Dec 20, 2009 at 7:48 AM, Florian Schwehn
>  wrote:
> > i do agree too! i also think of class templates and stuff like that.
> > from time to time i'd really like to add an extra class template
> > besides from QObject or QWidget. it can help speed up your workflow if
>
> > you're deriving classes from abstract ones. so all the pure virtual
> > functions could be preimplementet in the template.
> >
> > 2009/12/18 Porfírio Ribeiro 
> >>
> >> I agree with you, i also use QtCreator for some non Qt projects!
> >>
> >> 2009/12/16 Tiago Correia 
> >>>
> >>> Hi,
> >>> I'd like to add new templates for projects, when creating a new
> project.
> >>> How can i do this?
> >>> A project that is very useful for me is, for creating a simple C or
> >>> C++ program, that doesn't use Qt.
> >>> I've always to edit the pro file. If this could be done, I can see
> >>> Qt Creator as tool for helping novice users to program.
> >>>
> >>> --
> >>> Tiago Correia
> >>> chief technology officer
> >>>
> >>> cnoti inovação & desenvolvimento  Aprendizagem enRiquecida pela
> >>> Tecnologia www.cnotinfor.pt
> >>> Telefone: +351 239 499 231
> >>>
> >>> Subscreva gratuitamente a nossa Newsletter BICA  Boletim
> >>> informativo de Interactividade, Comunicação e Aprendizagem
> >>>
> >>>
> >>> ___
> >>> Qt-creator mailing list
> >>> Qt-creator@trolltech.com
> >>> http://lists.trolltech.com/mailman/listinfo/qt-creator
> >>>
> >>
> >>
> >>
> >> --
> >> Porfirio Ribeiro
> >>
> >> ___
> >> 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
> >
> >
>
>
>
> --
> Animal Liberation Front
> http://www.animal-liberation.com/
>
> ___
> 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] Intel Compiler and C++0x?

2010-01-06 Thread Danny Price
makespec? Do you mean a compiler flag? Do you know the flags in question?

On Wed, Jan 6, 2010 at 2:49 PM, Coda Highland  wrote:

> On Wed, Jan 6, 2010 at 3:55 AM, Danny Price 
> wrote:
> > I would like to make use of C++0x in Creator.
> >
> > Is it possible to use Creator with the Intel compiler (available as a
> > 'plugin' for MSVC 2008) and if so how? This makes available C++0x syntax
> > like 'auto' to MSVC?
> >
> > And what options exist for the OSX platform where the default toolset is
> > Apple's GCC 4.2?
>
> It's possible by setting the appropriate makespec. Creator won't
> syntax highlight C++0x constructions and may flag some as errors, but
> if your compiler has support it will build.
>
> /s/ Adam
> ___
> 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] Intel Compiler and C++0x?

2010-01-06 Thread Danny Price
I would like to make use of C++0x in Creator.

Is it possible to use Creator with the Intel compiler (available as a
'plugin' for MSVC 2008) and if so how? This makes available C++0x syntax
like 'auto' to MSVC?

And what options exist for the OSX platform where the default toolset is
Apple's GCC 4.2?
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] How to rename a project?

2010-01-02 Thread Danny Price
Heh :)

I'd imagine renaming complete projects to be far more complex. It's worth 
adding a new request for this separately.

On 3 Jan 2010, at 00:01, Paul Smith wrote:

> On Sat, Jan 2, 2010 at 11:58 PM, Danny Price  
> wrote:
>>> That is true, Danny, but someone writes there (on the feature request):
>>> 
>>> «Common guys this is BASIC functionality! My colleagues had a good
>>> chuckle when I explained to them that Creator couldn't even rename a
>>> project file from within the IDE...
>>> 
>>> This should have been on the feature list for 1.0.»,
>>> 
>>> mentioning the possibility of renaming projects from inside Qt
>>> Creator. One year after the initial feature request, nothing was done,
>>> notwithstanding being a basic functionality as argued above.
>> 
>> Yep, that was ME :)
> 
> Small World! :-)
> 
> Paul
> 
> ___
> 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] How to rename a project?

2010-01-02 Thread Danny Price

On 2 Jan 2010, at 23:50, Paul Smith wrote:

> That is true, Danny, but someone writes there (on the feature request):
> 
> «Common guys this is BASIC functionality! My colleagues had a good
> chuckle when I explained to them that Creator couldn't even rename a
> project file from within the IDE...
> 
> This should have been on the feature list for 1.0.»,
> 
> mentioning the possibility of renaming projects from inside Qt
> Creator. One year after the initial feature request, nothing was done,
> notwithstanding being a basic functionality as argued above.
> 
> Paul

Yep, that was ME :)

> 
> 
> 
> 
> On Sat, Jan 2, 2010 at 11:16 PM, Danny Price  
> wrote:
>> That request is for renaming FILES, not projects.
>> 
>> On 2 Jan 2010, at 16:16, Paul Smith wrote:
>> 
>>> On Sat, Jan 2, 2010 at 4:06 PM, Andre Poenitz
>>>  wrote:
>>>>>>> How to rename a project?
>>>>>> 
>>>>>> This is currently not possible from within Creator.
>>>>> 
>>>>> Thanks, Andre' and Robert. Should one file a feature request for this?
>>>> 
>>>> Yes, why not?
>>> 
>>> That is already requested:
>>> 
>>> http://bugreports.qt.nokia.com/browse/QTCREATORBUG-26
>>> 
>>> Paul
>>> ___
>>> 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] How to rename a project?

2010-01-02 Thread Danny Price
That request is for renaming FILES, not projects.

On 2 Jan 2010, at 16:16, Paul Smith wrote:

> On Sat, Jan 2, 2010 at 4:06 PM, Andre Poenitz
>  wrote:
> How to rename a project?
 
 This is currently not possible from within Creator.
>>> 
>>> Thanks, Andre' and Robert. Should one file a feature request for this?
>> 
>> Yes, why not?
> 
> That is already requested:
> 
> http://bugreports.qt.nokia.com/browse/QTCREATORBUG-26
> 
> Paul
> ___
> 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] Some annoyances

2009-12-18 Thread Danny Price
Yes I raised it. The trolls didn't believe me either until I posted a
screenshot and someone else mentioned the tabs vs spaces setting.

On Fri, Dec 18, 2009 at 3:40 PM, John Vilburn wrote:

>
> On Dec 18, 2009, at 5:29 AM, Danny Price wrote:
>
> Bug tracker - http://bugreports.qt.nokia.com/browse/QTCREATORBUG-292
>
>
> Thank you, Danny. That bug report is exactly what I am experiencing.
>
>
> ___
> 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] Some annoyances

2009-12-18 Thread Danny Price
Are you using spaces or tabs?

On Fri, Dec 18, 2009 at 3:20 PM, Eike Ziller  wrote:

>
> On Dec 18, 2009, at 3:42 PM, ext John Vilburn wrote:
>
> > In the few days I have been using Qt Creator (on the Mac), I have found
> it to be friendlier than XCode, but with a few annoyances. My perception may
> be influenced by my long-time use of Visual Studio. Anyway, here are the
> things I have found. If you have any suggestions regarding them, I would be
> most grateful.
> >
> > 1. The selection list of member variables and methods above the editor
> window appears to be in the order that they are found in your code. It would
> be easier to find a method if the list were in alphabetical order.
> >
> > 2. The formatting of switch statements is impossible. The case lines are
> indented one tab stop from the left edge of the paper, rather than being
> even with the switch. This cannot be what was intended. Do I have a
> preference set wrong?
> >
> > 3.  I have chosen to save my filenames in mixed case. If I open a Foo.h,
> then open Foo.cpp, then while in Foo.cpp use "Switch between Method
> Declaration/Definition", I get another copy of Foo.h opened, but it is
> listed as foo.h (all lowercase) in the Open Documents window. If at this
> point I modify foo.h, I get a message that Foo.h was modified outside of Qt
> Creator.
>
> Which version of Qt Creator do you use? I can't reproduce 2. and 3. with
> 1.3.0.
>
> For me writing a switch statement results in
>
>
>
>
>
>
> >
> > Thank you for any suggestions regarding these items.
> > John
> >
> > ___
> > Qt-creator mailing list
> > Qt-creator@trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-creator
>
> --
> Eike Ziller
> 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
>
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Some annoyances

2009-12-18 Thread Danny Price
Bug tracker - http://bugreports.qt.nokia.com/browse/QTCREATORBUG-292

On Fri, Dec 18, 2009 at 3:20 PM, Eike Ziller  wrote:

>
> On Dec 18, 2009, at 3:42 PM, ext John Vilburn wrote:
>
> > In the few days I have been using Qt Creator (on the Mac), I have found
> it to be friendlier than XCode, but with a few annoyances. My perception may
> be influenced by my long-time use of Visual Studio. Anyway, here are the
> things I have found. If you have any suggestions regarding them, I would be
> most grateful.
> >
> > 1. The selection list of member variables and methods above the editor
> window appears to be in the order that they are found in your code. It would
> be easier to find a method if the list were in alphabetical order.
> >
> > 2. The formatting of switch statements is impossible. The case lines are
> indented one tab stop from the left edge of the paper, rather than being
> even with the switch. This cannot be what was intended. Do I have a
> preference set wrong?
> >
> > 3.  I have chosen to save my filenames in mixed case. If I open a Foo.h,
> then open Foo.cpp, then while in Foo.cpp use "Switch between Method
> Declaration/Definition", I get another copy of Foo.h opened, but it is
> listed as foo.h (all lowercase) in the Open Documents window. If at this
> point I modify foo.h, I get a message that Foo.h was modified outside of Qt
> Creator.
>
> Which version of Qt Creator do you use? I can't reproduce 2. and 3. with
> 1.3.0.
>
> For me writing a switch statement results in
>
>
>
>
>
>
> >
> > Thank you for any suggestions regarding these items.
> > John
> >
> > ___
> > Qt-creator mailing list
> > Qt-creator@trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-creator
>
> --
> Eike Ziller
> 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
>
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Break on thrown exceptions?

2009-12-17 Thread Danny Price
Yes MSVC has such a feature. It's very useful. I suspect that GDB/CDB may
offer something similar via a a flag but this is the wrong place to ask.

On Thu, Dec 17, 2009 at 3:33 PM, Convey, Christian J CIV NUWC NWPT <
christian.con...@navy.mil> wrote:

> Thanks - the idea of putting the breakpoint on the exception constructor is
> a useful idea in my case.
>
> Regarding the general utility of being able to break on all thrown
> exceptions:  I'd say it depends on how many different exception types you're
> using, whether or not you're throwing any objects that don't even have
> constructors ("int", for example), and what fraction of exceptions thrown
> (by either your own code or 3rd party code) are the ones you want to catch.
>
> > -Original Message-
> > From: qt-creator-boun...@trolltech.com
> > [mailto:qt-creator-boun...@trolltech.com] On Behalf Of Coda Highland
> > Sent: Thursday, December 17, 2009 10:27
> > To: qt-creator@trolltech.com
> > Subject: Re: [Qt-creator] Break on thrown exceptions?
> >
> > In general; this should not be a desirable feature, as
> > C++-based libraries should be free to use exceptions
> > internally without interfering with your application's functionality.
> >
> > If you're interested on breaking on a SPECIFIC exception I'm
> > sure there are a number of ways this could be done. A
> > breakpoint on the exception object's constructor would be one
> > possible choice. Catching the exception, breaking in the
> > catch block, and re-throwing after the breakpoint would be
> > another way to handle it.
> >
> > /s/ Adam
> >
> > On Thu, Dec 17, 2009 at 9:04 AM, Convey, Christian J CIV NUWC
> > NWPT  wrote:
> > > Does Qt Creator let me specify that during debugging, the
> > program should break (e.g., a breakpoint is triggered)
> > whenever a C++ exception is thrown?
> > >
> > > I'm currently using Qt Creator 1.2.1 and gdb 7.0.
> > >
> > > Thanks,
> > > Christian
> > >
> > > ___
> > > 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] When QTC is create Class View scheme?

2009-12-10 Thread Danny Price
Hi. This has been requested many times.

http://bugreports.qt.nokia.com/browse/QTCREATORBUG-28

On Thu, Dec 10, 2009 at 12:01 PM, visual fc  wrote:

> Hi All
> QTC is great developer tools, but QTC 1.3 no Class View.
> When QTC is create Class View scheme?
>
>
> ___
> 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] Connecting signals from child thread with slots in main thread

2009-12-06 Thread Danny Price
Even so, the pointer should have been initialised to 0 or NULL in the 
initializer list. Leaving pointers to contain junk is never a good idea.

On 6 Dec 2009, at 17:59, Gilles Valette wrote:

> Message de Danny Price :
> 
>> Always use initializer lists.
>> 
> 
> He can't because this call is not made in a constructor but in a slot  
> corresponding to a button click, and a new thread is created at each  
> click. I am not saying that it is the best way to do it (I actually do  
> not know the goal of the code...), I was just answering to the  
> question about the segfault in the given code.
> 
> Regards,
> 
> Gilles
> 
>> On 6 Dec 2009, at 13:39, Gilles Valette wrote:
>> 
>>> Message de Soumen banerjee :
>>> 
>>>> In the files attached, mainwindow.cpp has the following line
>>>> 
>>>> connect(ptr,SIGNAL(setlabel(int)),this,SLOT(setLabel(int)));
>>>> 
>>>> where ptr is of type mythread* which is derived from QThread
>>>> the application compiles without error but on running, quits with
>>>> segfault. Omitting the connect line solves the problem but removes all
>>>> the functionality. How do you connect these together?
>>>> Regards
>>>> Soumen
>>>> 
>>> 
>>> Hi,
>>> 
>>> In mainwindow.cpp when you call connect, ptr is undefined, causing the
>>> segfault.
>>> 
>>> Putting the two lines in this order solves the problem :
>>> 
>>>ptr=new mythread(this);
>>>connect(ptr,SIGNAL(setlabel(int)),this,SLOT(setLabel(int)));
>>> 
>>> Hope this helps.
>>> 
>>> Gilles
>>> 
>>> 
>>> ___
>>> 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
>> 
>> 
> 
> 
> 
> -- 
> Gilles VALETTE - PhD
> Maître de conférences en informatique - IUT de Reims
> Université de Reims Champagne-Ardenne (URCA) - CReSTIC EA3804
> Rue des Crayères, BP 1035 51687 Reims Cedex 2 (France)
> Tel: +33 (0)3 26 91 84 58
> http://www.crestic.univ-reims.fr/fiche.php?id=216
> 
> 
> 
> ___
> 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] Connecting signals from child thread with slots in main thread

2009-12-06 Thread Danny Price
Always use initializer lists.

On 6 Dec 2009, at 13:39, Gilles Valette wrote:

> Message de Soumen banerjee :
> 
>> In the files attached, mainwindow.cpp has the following line
>> 
>> connect(ptr,SIGNAL(setlabel(int)),this,SLOT(setLabel(int)));
>> 
>> where ptr is of type mythread* which is derived from QThread
>> the application compiles without error but on running, quits with
>> segfault. Omitting the connect line solves the problem but removes all
>> the functionality. How do you connect these together?
>> Regards
>> Soumen
>> 
> 
> Hi,
> 
> In mainwindow.cpp when you call connect, ptr is undefined, causing the  
> segfault.
> 
> Putting the two lines in this order solves the problem :
> 
> ptr=new mythread(this);
> connect(ptr,SIGNAL(setlabel(int)),this,SLOT(setLabel(int)));
> 
> Hope this helps.
> 
> Gilles
> 
> 
> ___
> 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


  1   2   >