[Qt-creator] failed build message not visible in GUI, problem with jom or something else?

2009-11-22 Thread Grego
Hi,

I'm in the process of trying to port a smallish project I made on
linux to windows xp.
When trying to build, the build progress bar turned red, and I was
expecting something to appear in the Build Issues, but nothing did
this time. I had already corrected some things based on those
messages, so I knew that it generally works.

Falling back to command line and running jom, I noticed that it stops with:

g++: /usr/local/lib: No such file or directory
command failed with exit code 1
command failed with exit code 2

So I still have some linux specific stuff in my .pro file, which I will correct.

My guess why the message goes missing comes from the exit codes 1  2
above: I wonder if jom.exe output gets stuck somewhere due to
different threads?  I'm on a dual-core machine, using 4.6 rc1.


Thanks,

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


Re: [Qt-creator] Feature Request

2009-11-22 Thread Nicolas Arnaud-Cormos
On Thursday 19 November 2009 08:37:56 Robert Caldecott wrote:
 I'll log this on the cool new Qt tracking system but before I do I
 wanted to know if it's possible...
 
 How cool would it be to add a new method declaration to a C++ header
 file and have Qt Creator add the method definition to the .cpp file
 automatically?  Taking this a step further, you could edit an existing
 method declaration and the definition would be changed automatically.
 It would be a big time saver IMHO.

I've coded a little plugin that does the 'almost automatic method definition 
creation' (not automatically, you need a shortcut : Ctrl+Shift+F2):
http://gitorious.org/creator-plugins

I just updated the code to the new RC (I just changed the dependency number), 
it's working for me but:
 * it doesn't detect using namespace foo;
 * it assumes that the C++ file exists
 * it puts the function definition at the end of the file, after the last one
 * it doesn't work with inline functions

I would like to enhance it, unfortunately I don't see me working on it anytime 
before next year.

Cheers,
Nicolas

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

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


[Qt-creator] QtCreator 1.3 fixed font rendering broken in editor?

2009-11-22 Thread Martin Hauner
Hi,

I see a font rendering issue in QTCreator (1.3 branch built against qt 4.6 
branch,  MacOSX 10.6.2).

My editor font is Monaco (fixed width) but the 1.3 editor shows different line 
lengths and a wrong right border for properly block aligned text (copyright 
note 
at the top of a file, 78 columns).

If I open the same file in QtCreator 1.2.1 the display is ok. The right border 
line matches the configured column and all lines of the text have an equal 
length.

Something like this: all lines have 12 columns + LF

LF
123456789012LF
 LF
foobarfoobarLF
LF

If it is all text, it looks ok.

If I enable painting of whitespaces the middle line is longer than the other 
lines, ie. the LF column is no longer vertically aligned.

If I disable white space painting it is ok for the above example and better for 
my file header but still not correct. The char at the last column in each line 
is painted a few pixels off the previous or next line.


Is it just me?

-- 
Martin

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


Re: [Qt-creator] QtCreator 1.3 fixed font rendering broken in editor?

2009-11-22 Thread Alan Westbrook
I am using 1.2.94, and also monaco, and it looks fine here with and without
visualizing whitespace.

I copied and pasted your text above.

Alan

On Sun, Nov 22, 2009 at 8:07 AM, Martin Hauner martin.hau...@gmx.netwrote:

 Hi,

 I see a font rendering issue in QTCreator (1.3 branch built against qt 4.6
 branch,  MacOSX 10.6.2).

 My editor font is Monaco (fixed width) but the 1.3 editor shows different
 line
 lengths and a wrong right border for properly block aligned text (copyright
 note
 at the top of a file, 78 columns).

 If I open the same file in QtCreator 1.2.1 the display is ok. The right
 border
 line matches the configured column and all lines of the text have an equal
 length.

 Something like this: all lines have 12 columns + LF

 LF
 123456789012LF
 LF
 foobarfoobarLF
 LF

 If it is all text, it looks ok.

 If I enable painting of whitespaces the middle line is longer than the
 other
 lines, ie. the LF column is no longer vertically aligned.

 If I disable white space painting it is ok for the above example and better
 for
 my file header but still not correct. The char at the last column in each
 line
 is painted a few pixels off the previous or next line.


 Is it just me?

 --
 Martin

 ___
 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] failed build message not visible in GUI, problem with jom or something else?

2009-11-22 Thread Coda Highland
 g++: /usr/local/lib: No such file or directory
 command failed with exit code 1
 command failed with exit code 2

 So I still have some linux specific stuff in my .pro file, which I will 
 correct.

 My guess why the message goes missing comes from the exit codes 1  2
 above: I wonder if jom.exe output gets stuck somewhere due to
 different threads?  I'm on a dual-core machine, using 4.6 rc1.

No, there's no missing output there. It's just failing with a single
error message: No such file or directory, which causes g++ to exit
with code 1 right away. Then, because the compiler failed out, jom
aborted with code 2.

/s/ Adam

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


Re: [Qt-creator] QtCreator 1.3 fixed font rendering broken in editor?

2009-11-22 Thread Coda Highland
Could you please post a screenshot? I have some thoughts but it would
be best served by seeing the actual pixels as displayed on your
screen.

/s/ Adam

On Sun, Nov 22, 2009 at 10:07 AM, Martin Hauner martin.hau...@gmx.net wrote:
 Hi,

 I see a font rendering issue in QTCreator (1.3 branch built against qt 4.6
 branch,  MacOSX 10.6.2).

 My editor font is Monaco (fixed width) but the 1.3 editor shows different line
 lengths and a wrong right border for properly block aligned text (copyright 
 note
 at the top of a file, 78 columns).

 If I open the same file in QtCreator 1.2.1 the display is ok. The right border
 line matches the configured column and all lines of the text have an equal 
 length.

 Something like this: all lines have 12 columns + LF

 LF
 123456789012LF
             LF
 foobarfoobarLF
 LF

 If it is all text, it looks ok.

 If I enable painting of whitespaces the middle line is longer than the other
 lines, ie. the LF column is no longer vertically aligned.

 If I disable white space painting it is ok for the above example and better 
 for
 my file header but still not correct. The char at the last column in each line
 is painted a few pixels off the previous or next line.


 Is it just me?

 --
 Martin

 ___
 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 fixed font rendering broken in editor?

2009-11-22 Thread Alan Westbrook
Here ya go!

Oh, and one with the whitespace shown too!

Alan

On Sun, Nov 22, 2009 at 12:15 PM, Coda Highland c...@bobandgeorge.comwrote:

 Could you please post a screenshot? I have some thoughts but it would
 be best served by seeing the actual pixels as displayed on your
 screen.

 /s/ Adam

 On Sun, Nov 22, 2009 at 10:07 AM, Martin Hauner martin.hau...@gmx.net
 wrote:
  Hi,
 
  I see a font rendering issue in QTCreator (1.3 branch built against qt
 4.6
  branch,  MacOSX 10.6.2).
 
  My editor font is Monaco (fixed width) but the 1.3 editor shows different
 line
  lengths and a wrong right border for properly block aligned text
 (copyright note
  at the top of a file, 78 columns).
 
  If I open the same file in QtCreator 1.2.1 the display is ok. The right
 border
  line matches the configured column and all lines of the text have an
 equal length.
 
  Something like this: all lines have 12 columns + LF
 
  LF
  123456789012LF
  LF
  foobarfoobarLF
  LF
 
  If it is all text, it looks ok.
 
  If I enable painting of whitespaces the middle line is longer than the
 other
  lines, ie. the LF column is no longer vertically aligned.
 
  If I disable white space painting it is ok for the above example and
 better for
  my file header but still not correct. The char at the last column in each
 line
  is painted a few pixels off the previous or next line.
 
 
  Is it just me?
 
  --
  Martin
 
  ___
  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

attachment: grab.tiffattachment: shownwhitespace.tiff___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Introduction to debugger for MSVC Users / how to use nmake

2009-11-22 Thread daniel.molkentin
Hi Matthias,

On Nov 22, 2009, at 8:44 PM, ext Matthias Pospiech wrote:

 I am used to the debugger integratet into Visual Studio 2005, and that
 is the only debugger I ever used.

 First thing that I find strange is the time it take to break at a
 breakpoint. From cklicking on an Menu entry
 and the breakpoint int the signal was about 10s, moving from one  
 line to
 the next sometimes 20s.
 (compared to non-noticable delay times in VS.)

It may be a bit slower than Visual Studio, but 10-20 seconds never  
happened to me, even with projects in the size of Creator. I will  
leave the deeper diagnosis to our debugger specialists, though.

 The next thing I do no understand is how to look at variable values.  
 In
 VS I point the mouse over the variable and see the value,
 or I mark the variable and select view. In QtCreator I could not  
 find a
 single entry in the context or application menu that has
 anything to do with watching variable values.

If you hit debug, Creator switches to the Debug Mode. You can find  
what you look for in the locals and watchers menu. If you want mouse- 
over hints, enable Use tooltips in main editor while debugging from  
Options - Debugger - Common.

 And a different aspect: I have read that QtCreator can use nmake and  
 the
 MS debugger.
 However I could not find an entry, where I select the compiler and
 QtCreator would take care if
 the remaining setup of the Makestep.
 Is there any available documentation/introduction for this?

Since GDB only works with MinGW, and CDB only works with MSVC  
respectively, Qt Creator depends entirely on Qt here. The Qt in the  
SDK was built with GCC, so GDB is used. If you try, for instance, the  
new msvc2008 open source package released with Qt 4.6-rc1, and install  
the CDB debugging tools (32 bit, regardless of your OS bitness,  
Creator's CDB options dialog or the help will lead you to the correct  
download URL) then Creator will use CDB instead of GDB.

HTH,
   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] QtCreator 1.3 fixed font rendering broken in editor?

2009-11-22 Thread Coda Highland
*laugh* Thanks, but I meant screenshots that illustrate the problem.

On Sun, Nov 22, 2009 at 2:37 PM, Alan Westbrook void...@gmail.com wrote:
 Here ya go!
 Oh, and one with the whitespace shown too!
 Alan

 On Sun, Nov 22, 2009 at 12:15 PM, Coda Highland c...@bobandgeorge.com
 wrote:

 Could you please post a screenshot? I have some thoughts but it would
 be best served by seeing the actual pixels as displayed on your
 screen.

 /s/ Adam

 On Sun, Nov 22, 2009 at 10:07 AM, Martin Hauner martin.hau...@gmx.net
 wrote:
  Hi,
 
  I see a font rendering issue in QTCreator (1.3 branch built against qt
  4.6
  branch,  MacOSX 10.6.2).
 
  My editor font is Monaco (fixed width) but the 1.3 editor shows
  different line
  lengths and a wrong right border for properly block aligned text
  (copyright note
  at the top of a file, 78 columns).
 
  If I open the same file in QtCreator 1.2.1 the display is ok. The right
  border
  line matches the configured column and all lines of the text have an
  equal length.
 
  Something like this: all lines have 12 columns + LF
 
  LF
  123456789012LF
              LF
  foobarfoobarLF
  LF
 
  If it is all text, it looks ok.
 
  If I enable painting of whitespaces the middle line is longer than the
  other
  lines, ie. the LF column is no longer vertically aligned.
 
  If I disable white space painting it is ok for the above example and
  better for
  my file header but still not correct. The char at the last column in
  each line
  is painted a few pixels off the previous or next line.
 
 
  Is it just me?
 
  --
  Martin

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


Re: [Qt-creator] QtCreator 1.3 fixed font rendering broken in editor?

2009-11-22 Thread Alan Westbrook
Oh, sorry, I thought you were the other guy responding to my 'works for me'
response.

=)

Alan

On Sun, Nov 22, 2009 at 1:37 PM, Coda Highland c...@bobandgeorge.comwrote:

 *laugh* Thanks, but I meant screenshots that illustrate the problem.

 On Sun, Nov 22, 2009 at 2:37 PM, Alan Westbrook void...@gmail.com wrote:
  Here ya go!
  Oh, and one with the whitespace shown too!
  Alan
 
  On Sun, Nov 22, 2009 at 12:15 PM, Coda Highland c...@bobandgeorge.com
  wrote:
 
  Could you please post a screenshot? I have some thoughts but it would
  be best served by seeing the actual pixels as displayed on your
  screen.
 
  /s/ Adam
 
  On Sun, Nov 22, 2009 at 10:07 AM, Martin Hauner martin.hau...@gmx.net
  wrote:
   Hi,
  
   I see a font rendering issue in QTCreator (1.3 branch built against qt
   4.6
   branch,  MacOSX 10.6.2).
  
   My editor font is Monaco (fixed width) but the 1.3 editor shows
   different line
   lengths and a wrong right border for properly block aligned text
   (copyright note
   at the top of a file, 78 columns).
  
   If I open the same file in QtCreator 1.2.1 the display is ok. The
 right
   border
   line matches the configured column and all lines of the text have an
   equal length.
  
   Something like this: all lines have 12 columns + LF
  
   LF
   123456789012LF
   LF
   foobarfoobarLF
   LF
  
   If it is all text, it looks ok.
  
   If I enable painting of whitespaces the middle line is longer than the
   other
   lines, ie. the LF column is no longer vertically aligned.
  
   If I disable white space painting it is ok for the above example and
   better for
   my file header but still not correct. The char at the last column in
   each line
   is painted a few pixels off the previous or next line.
  
  
   Is it just me?
  
   --
   Martin

 ___
 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] failed build message not visible in GUI, problem with jom or something else?

2009-11-22 Thread Grego
There was no missing output on command line.

But on GUI the build issues tab stayed blank. I expected to see
g++: /usr/local/lib: No such file or directory
there.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Static build with Microsoft compiler

2009-11-22 Thread Charles N Burns
Hello all,

I am trying to use Qt Creator 1.3 RC to make a static build of an
application using the Microsoft compiler (from Visual Studio Prof.
2008).

I am familiar with building Qt static (and have even written some
articles on how to do so), but when I try to build my application in
Qt Creator, it builds with dynamic linking, even when I specify a
statically compiled version of Qt. I wasn't aware this was even
possible.

I know the resulting executable is dynamic because it is very small
and, when I run it directly, it complains about missing qtcore.dll.

-- .pro file --

TARGET = ImageGuide
TEMPLATE = app
SOURCES += main.cpp Window.cpp mediancut.cpp
HEADERS += Window.h mediancut.h ScrollArea.h
CONFIG += static staticlibs stl
static {
QTPLUGIN += qjpeg qgif qtiff
DEFINES += STATIC
}

-- from main.cpp file --

In my main.cpp:
#ifdef STATIC
#include QtPlugin
Q_IMPORT_PLUGIN(qjpeg)
Q_IMPORT_PLUGIN(qgif)
Q_IMPORT_PLUGIN(qtiff)
#endif

 -- --
The linker errors I get start with:

C:/qtprojects/ImageGuideMC/main.obj:-1: error:  unresolved external
symbol class QObject * __cdecl qt_plugin_instance_qjpeg(void)
(?qt_plugin_instance_qjpeg@@YAPAVQObject@@XZ) referenced in function
public: __thiscall
StaticqjpegPluginInstance::StaticqjpegPluginInstance(void)
(??0StaticqjpegPluginInstance@@q...@xz)

When I remove the Q_IMPORT_PLUGIN statements, my project compiles just
fine, but it is NOT statically linked.

How can I build a statically linked program using the MS compiler?

Best regards,

--Charles Burns
http://www.formortals.com/author/charles
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] failed build message not visible in GUI, problem with jom or something else?

2009-11-22 Thread daniel.molkentin

On Nov 22, 2009, at 4:33 PM, ext Grego wrote:

 Falling back to command line and running jom, I noticed that it  
 stops with:

 g++: /usr/local/lib: No such file or directory
 command failed with exit code 1
 command failed with exit code 2


sidenote: jom only works as an nmake replacement (i.e. when using it  
with a Qt that's built with the Microsoft tool chain) . It does not  
replace mingw32-make.exe. If it works, it's pure chance. To get  
adequate results from the command line, use mingw32-make.

Cheers,
   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] failed build message not visible in GUI, problem with jom or something else?

2009-11-22 Thread Coda Highland
The Build Issues tab only shows compilation errors; this isn't a
compilation error. It's a build process error that isn't supposed to
happen.

/s/ Adam

On Sun, Nov 22, 2009 at 4:55 PM, Grego gr...@mpaja.com wrote:
 There was no missing output on command line.

 But on GUI the build issues tab stayed blank. I expected to see
 g++: /usr/local/lib: No such file or directory
 there.
 ___
 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] failed build message not visible in GUI, problem with jom or something else?

2009-11-22 Thread Grego
On Mon, Nov 23, 2009 at 12:16 AM,  daniel.molken...@nokia.com wrote:

 sidenote: jom only works as an nmake replacement (i.e. when using it
 with a Qt that's built with the Microsoft tool chain) . It does not
 replace mingw32-make.exe. If it works, it's pure chance. To get
 adequate results from the command line, use mingw32-make.


Thank's for the tip.  Coming from linux I tried just make and that was
not on the path.  Know about jom I tried that--I was wondering if that
was used underneath, even if it did work.

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