Re: [Interest] Qt5 on MSVC2008, Win7x64 (Tier1)? (Charley Bay)

2012-07-08 Thread David Ching
 Date: Sun, 8 Jul 2012 12:56:32 -0600
 From: Charley Bay charleyb...@gmail.com
 Subject: [Interest] Qt5 on MSVC2008, Win7x64 (Tier1)?
 
 As an aside, we've been watching the MSVC2012 Release Candidate that is
out, it seems to solve some issues associated with MSVC2010,
  but drops native-targetting-for-XP (we don't care, but some might).  Any
thoughts about levels-of-support for MSVC2012?

MS has announced that VS2012 will support native XP targeting in an update
to be released a few months after it first ships.

One reason to move forward from VS2008 is more C++11 support, such as
'auto', lambdas, etc. which are even in VS2010.  I believe lambdas can be
used as slots in Qt 5, which is long overdue, and you don't want to be left
out because you're still using VS2008.

-- David


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Porting Qt app to windows

2012-06-19 Thread David Ching
 Date: Tue, 19 Jun 2012 13:08:07 +1000
 From: Chasc ch...@tpg.com.au
 So how can I package this app to run on other Windows machines using 
 dynamic linking? I have tried including QtGui4.dll, QtCore4.dll, 
 libgcc_s_dw2-1.dll and mingwm10.dll libraries in the release 
 directory but all I get is something about a procedure entry point 
 not being located in QtCore4.dll. I am using Qt 4.7.4.
 

It sounds like you're not including the correct QtCore4.dll, since the one
being used doesn't have the missing entry point.  Verify you put the correct
DLL into your .exe directory.  And verify that that is the QtCore4.dll being
loaded into your running process, either by SxStrace.exe (Vista or later) or
Depends (third party free app).

Also I would try this on a PC (either real or virtual) that has a fresh
Windows installed (and try all versions of Windows you need to support, e.g.
XP/Vista/7) and make sure you are providing all the required DLL's (that are
not present on a fresh Windows installation).

Good luck,
David

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Porting Qt app to windows

2012-06-19 Thread David Ching
 From: Diego Iastrubni [mailto:diegoi...@gmail.com] 
 Sent: Tuesday, June 19, 2012 8:22 AM
 
I just rename the name of the Qt directory temporarily to _Qt or
something
 and then rename back when I need to code... 
 Ugly, but simulates uninstallation of Qt.

But you also need to simulate the 'uninstallation' of the C runtime DLL's,
etc.
As well as making sure you set the compiler switches correctly and are not
calling any native Windows API's that are not included in the lowest version
of
Windows that you are supporting.  Really, there is no better way to test
an app than on a fresh install of Windows.

Thanks,
David

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Nokia SDK vs. Qt Commercial SDK

2012-06-14 Thread David Ching
Thank you Konrad for the in-depth response, and also a shout to Andre.  I
much appreciate it.  

Now that I have a good idea of the current state, I must say I don't like
the fragmentation that has occurred.  When Nokia was in charge the
LGPL/GPL was the same source as Commercial, and everything was included.
Even before when Trolltech was in charge, the GPL was a subset of
Commercial, but the subset that was there was exactly the same code.  Now we
are not guaranteed the same bug fixes (and eventually probably not even the
same API's).  

I actually have several projects, some could go Commercial now, and some
not.  While I don't expect a major problem, it does mean multiple Qt
versions installed to support all the different projects.

I also miss the pre-built binary packages that used to contain the latest
source releases, that were immediately usable, and in most cases, actually
shippable.  I needed to build Windows Qt because of SxS issues, but the Mac
Qt was OK pre-built.  As it happens, I am interested in taking the latest
Windows Accessibility fixes in 4.8.2, and now I have to build all the
platforms myself to get those.

I do appreciate the promise that community contributions will have more
impact now, and perhaps I will need to get more involved with that since
that is what Qt is all about now.  But coming from a Microsoft background, I
really did like the support Nokia provided for free.  You could almost
forget Qt was open source, and now you cannot.

Thanks,
David

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Nokia SDK vs. Qt Commercial SDK

2012-06-13 Thread David Ching
Hello,

A couple days ago Turunen Tuukka from Digia responded to my question here
about getting an SDK with Qt 4.8.2 in it by saying

 There is no Qt Project SDK for 4.8 - 
 just the Nokia SDK and Qt Commercial SDK.


Does this mean there are two official SDK's now, and the commercial one is
different (i.e. with more bug fixes)?  Where is this discussed, where do I
learn about and get both?  I must say, the state of what is available with
Qt is as obscure as it was when Trolltech sold licenses to it and everyone
had a different license price!  I must be missing where such fundamental
info is discussed.

I admit I have been lost about the state and direction of Qt ever since I
heard the term Open Governance.  Could someone summarize what to expect?

Thanks,
David

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Does it really worth it?

2012-03-27 Thread David Ching
 Date: Tue, 27 Mar 2012 21:58:32 +
 From: STEFANI Mathieu mathieu.stef...@supinfo.com
Concerning chart libraries and Qt, Qwt has already been mentioned but I
would like to
 mention KDChart (http://www.kdab.com/kdab-products/kd-chart/) as well,
which is, 
 to my mind, a better alternative than Qwt, since it's taking advantage of
Model/View
 architecture and is really convenient to use, with a nice API.

 I'm using it on a personal project and I can say it's working very well.

I would welcome a robust ecosystem of Qt UI libraries such as charting,
docking frameworks, grids, etc.  The fact that there is not one now (only a
little bit) is a source of concern for me and in general the robustness of
the Qt project.  I had thought the situation would improve under Nokia, but
it has not.  By comparison, I am looking at what is available for .NET from
vendors such as Telerik, SyncFusion, etc. 

Like the OP, I would also like to standardize on a development framework for
the next three years.  I have spent over 20 years developing Windows
software using C++, so it seems highly possible to find something that will
be robust enough to last for 3 years.  But with more UI turning to web
development (Javascript, jQuery,HTML5, etc.) or mobile (a lot of disparate
tools here depending on platform), and what's left on the desktop turning to
easier to use managed languages like Java and C#, it's hard to know which to
focus on.   Certainly Qt will play a part, but, it's cross-platformness not
withstanding, it will be only a partial role.

Thanks,
David

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QSerialport EV_RXCHAR not emitted or catched while moving window

2012-03-15 Thread David Ching
 Date: Fri, 16 Mar 2012 01:30:15 +1100
From: Tony Rietwyk t...@rightsoft.com.au
Is this running on Windows?  I seem to remember that the timers had the
same problem - 
the events don't get delivered while the window is in resize mode.
I never found a fix or workaround for this, and had to implement my own
timers in a
 separate thread looping on sleep.  

I've experienced the same symptom (but was not able to diagnose why) using
both QSerialPort and QExtSerialPort.
If the window was dragged extensively, data loss would occur (characters
would be unrecoverably lost).
But the serial protocol had disabled any form of flow control (e.g.
XON/XOFF, or hardware).
So I blamed the problem on using a fragile serial protocol.  Was this
correct?
If not, how are we supposed to use QSerialPort / QExtSerialPort reliably in
a GUI app?

Thanks,
David


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt Assistant can't search

2012-03-13 Thread David Ching
Thanks, David. That's what I tried. I tried removing everything and adding
it back.
 I tried removing everything, closing Qt Assitant, re-starting Assistant
and adding
everything back. I tried it more than once, and with some details thrown in
like
setting it to a blank page before removing everything. My search still
doesn't work.

I'm wondering if there's an index file somewhere that I can trash in order
to force
 the index to be re-built.

Hmm, I used the Windows utility Process Explorer to see which files
Assistant.exe has open.
Lookee there, e.g. 


C:\Users\David\AppData\Local\Trolltech\Assistant\qthelpcollection_4.7.4.qhc

C:\Users\David\AppData\Local\Trolltech\Assistant\assistant.qch.4.7


Look in your Home directory for *.qhc and *.qhc.  
Try deleting the directories containing these files.

Thanks,
David

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt Assistant can't search

2012-03-13 Thread David Ching
 Ah, hah! You do it from a terminal window, with a command-line option. 
 On a Macintosh, since the .app is really a bundle directory, you do
something like this:

cd /qtbuild/install/macosx/bin/Assistant.app/Contents/MacOS
./Assistant -rebuild-search-index

That's better than the hack I suggested before!  :-)  
Glad you found it.
I hope this type of thing is not indicative of a general decline of Qt.

-- David

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QString to QByteArray conversion

2012-03-07 Thread David Ching
From: Thiago Macieira thi...@kde.org
Subject: Re: [Interest] QString to QByteArray conversion
To: interest@qt-project.org
Message-ID: 1359916.pguQgTLvcx@tjmaciei-mobl2
Content-Type: text/plain; charset=iso-8859-1

 i have a QString like 81FF25 and i want to convert it into a 
 QByteArrya containing bytes 81 FF 25.
 I can i do that?

QByteArray data = QByteArray::fromHex(string.toLatin1());

LOL, so easy!  And to think that some people blame Qt for being bloated!
I say, Bring on the bloat!  :-)

-- David


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] using windows FindFirstFile

2012-02-15 Thread David Ching
 Date: Wed, 15 Feb 2012 11:58:32 +
 From: Graham Labdon graham.lab...@avalonsciences.com
 Subject: [Interest] using windows FindFirstFile
 
 In the code below the call to FindFirstFile always fails with the error
'ERROR_INVALID_NAME'
 The file that I set in searchPath does exist.
 Does anyone know the correct way to do this?
 ...
  WIN32_FIND_DATA FindFileData;
  HANDLE hFind;
  QString searchPath = C:/jobs/daryll/Rcd/f_01.rcd;
  WCHAR p[100];
  int x = searchPath.toWCharArray(p);
  hFind = FindFirstFile(p, FindFileData);


First, you should declare
  WCHAR p[MAX_PATH];  // MAX_PATH is max length of a Windows path gotten
from drive:path syntax

The real problem is searchPath should be e.g.
   QString searchPath = C:/jobs/daryll/Rcd/*;// include wildcard '*'

-- David

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest