Re: [Qt-creator] Experience using QtCreator in Cpp Course

2010-09-16 Thread Nicolas Arnaud-Cormos
On Thursday 16 September 2010 23:10:01 Matthias Pospiech wrote:
   I would like to share my experience in a workshop I have given lately.
 It was about c++ and a basic introduction of classes. It had nothing to
 do with Qt, though
 I used it in one example for plotting a function, and I created all
 example projects with QtCreator.
 
 No student taking the course (3 hours in one day) had any C++
 environment installed, so I gave the latest windows sdk and the
 QtCreator 2.0.1
 installation around. Unfortunately neither of the programs put any path
 into the PATH (why ?) . That meant that we had to add a Qt environment
 in Creator. Aport from being very confusing for all students none of
 them understood which path to add. I had displayed my path on the
 projector, but nevertheless most of the got it wrong.

Why don't you install Qt SDK instead of Windows SDK+Qt Creator? It has 
everything you need: compiler, debugger and creator and it's working out of 
the box.

I'm using it when doing a formation and didn't have any big issue so far.

Cheers,
Nicolas

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

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


Re: [Qt-creator] Experience using QtCreator in Cpp Course

2010-09-16 Thread Nicolas Arnaud-Cormos
On Thursday 16 September 2010 08:03:12 Nicolas Arnaud-Cormos wrote:
 On Thursday 16 September 2010 23:10:01 Matthias Pospiech wrote:
I would like to share my experience in a workshop I have given lately.
  
  It was about c++ and a basic introduction of classes. It had nothing to
  do with Qt, though
  I used it in one example for plotting a function, and I created all
  example projects with QtCreator.
  
  No student taking the course (3 hours in one day) had any C++
  environment installed, so I gave the latest windows sdk and the
  QtCreator 2.0.1
  installation around. Unfortunately neither of the programs put any path
  into the PATH (why ?) . That meant that we had to add a Qt environment
  in Creator. Aport from being very confusing for all students none of
  them understood which path to add. I had displayed my path on the
  projector, but nevertheless most of the got it wrong.
 
 Why don't you install Qt SDK instead of Windows SDK+Qt Creator? It has
 everything you need: compiler, debugger and creator and it's working out of
 the box.
 
 I'm using it when doing a formation and didn't have any big issue so far.

s/formation/training
Sometimes my french wins over my english, sorry ;)

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

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


Re: [Qt-creator] Experience using QtCreator in Cpp Course

2010-09-16 Thread Denis Mingulov
Hi,

On Fri, Sep 17, 2010 at 12:49 AM, Matthias Pospiech
matthias.pospi...@gmx.de wrote:
 However the ability to compile a single file to test if everything was
 correct would be great.
I think you can vote for this suggestion:
http://bugreports.qt.nokia.com/browse/QTCREATORBUG-106

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


Re: [Qt-creator] Experience using QtCreator in Cpp Course

2010-09-16 Thread Matthias Pospiech
  Am 16.09.2010 08:03, schrieb Nicolas Arnaud-Cormos:
 On Thursday 16 September 2010 23:10:01 Matthias Pospiech wrote:
   No student taking the course (3 hours in one day) had any C++
 environment installed, so I gave the latest windows sdk and the
 QtCreator 2.0.1
 installation around.
 Why don't you install Qt SDK instead of Windows SDK+Qt Creator? It has
 everything you need: compiler, debugger and creator and it's working out of
 the box.
I have provided both, because the latest SDK does not ship with the 
latest QtCreator.
I do know that the SDK comes with QtCreator.

Matthias

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


Re: [Qt-creator] Experience using QtCreator in Cpp Course

2010-09-16 Thread Matthias Pospiech
  Am 16.09.2010 01:34, schrieb Bill King:
 This is  very worthwhile input, sorry to sound like I'm fobbing you off
 elsewhere, but it would be excellent if you could turn this into a
 suggestion task over at http://bugreports.qt.nokia.com.

Added as http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2372

Matthias
___
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 André Pönitz
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


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 andre.poen...@nokia.comwrote:

 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] All libraries statically linked

2010-09-16 Thread Paul Smith
Thanks to all for all replies.

 I would like to compile my programs with ALL necessary libraries
 statically linked.

 [Why?]

To work on any Linux machine.

 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 guess so.

 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.

Is that true even when I use a 'Qt4 console application' project?

Paul
___
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 Daniel Molkentin

  On 9/16/2010 3:49 PM, ext Paul Smith wrote:
 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 guess so.

 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.
 Is that true even when I use a 'Qt4 console application' project?

Yes, as soon as you use any Qt functionality, including QCoreApplication 
and friends. KDevelop might offer help there, but it still requires a 
statically linked Qt.

Daniel

-- 
Daniel Molkentin, Software Engineer,
Nokia, Qt Development Frameworks
website: http://qt.nokia.com
Rudower Chaussee 13, DE-12489 Berlin

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori

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


Re: [Qt-creator] All libraries statically linked

2010-09-16 Thread Coda Highland
If I recall correctly, CONFIG += static is sufficient with qmake, but
again you need statically-built versions of all of the libraries you
need, including Qt.

/s/ Adam

On Thu, Sep 16, 2010 at 12:40 PM, Daniel Molkentin
daniel.molken...@nokia.com wrote:

  On 9/16/2010 3:49 PM, ext Paul Smith wrote:
 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 guess so.

 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.
 Is that true even when I use a 'Qt4 console application' project?

 Yes, as soon as you use any Qt functionality, including QCoreApplication
 and friends. KDevelop might offer help there, but it still requires a
 statically linked Qt.

 Daniel

 --
 Daniel Molkentin, Software Engineer,
 Nokia, Qt Development Frameworks
 website: http://qt.nokia.com
 Rudower Chaussee 13, DE-12489 Berlin

 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] All libraries statically linked

2010-09-16 Thread Andre Poenitz
On Thu, Sep 16, 2010 at 02:49:37PM +0100, Paul Smith wrote:
  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 guess so.

I still have some doubts. Could you point me to the menu entries and/or
files that need to be changed? I'd really like to see that in action 
as I don't think it's easy to implement, if possible at all.
 
  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.
 
 Is that true even when I use a 'Qt4 console application' project?

A Qt4 console application uses libQtCore. If you don't want to link
to that dynamically you need a static build of Qt.

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


[Qt-creator] How to assign Layout to Tab widget

2010-09-16 Thread yogesh upreti
Hallo Group,
I want in my application to add horizontal layout in one of the tab (part of
a QTabWidget).
Qt-Creator is not letting me do that.
Is there any tricks there?
I can select all widgets and put them in a Layout, but when I want to assign
a layout to the whole tab (one of the tab of the tab widget), It's not
working

If someone put some light in this issue?

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