Re: [Interest] How to get Qt5Cored.pdb from Qt5.4.1 installer

2015-04-30 Thread Karl Ruetz
In the event you cannot get the *.pdb files: We often take the sources over to a CentOS machine with the same Qt version to run valgrind (or simply get the stack trace). We usually discover the real problem lies in our own code. In fact, to this date, this has always been the case. But it was

Re: [Interest] QtSql database insertion issues...

2015-04-23 Thread Karl Ruetz
I sincerely hope you are wrong; at least for the next several years. (Like 10 years.) Staying on the bleeding edge is simply not an option for many of us that are simply Qt users (not developers). It took us years to update to Qt 5 because they killed QFTP without a fully functional replacemen

Re: [Interest] Is there a command line call to qmake to test the bit width?

2015-03-04 Thread Karl Ruetz
> On Mar 4, 2015, at 11:44 AM, Thiago Macieira > wrote: > > On Wednesday 04 March 2015 17:15:45 Scott Aron Bloom wrote: >> By then its too late.. I want the shell script that calls the make system to >> fail, saying you have the qmake setup wrong... > > Why would it be wrong? If qmake is insta

Re: [Interest] Is there a command line call to qmake to test the bit width?

2015-03-04 Thread Karl Ruetz
Provided you defined a mkspec when you built Qt, you can put something like this in your project file: linux-g++-64{ message(Building for linux 64-bit) LIBS += -lusb -L../lib64 } linux-g++-32{ message(Building for linux 32-bit) LIBS += -L../lib } win32-g++{ message(Building for windows 32-bit) L

Re: [Interest] New Development Environment

2015-02-10 Thread Karl Ruetz
> On Feb 8, 2015, at 4:39 PM, René J.V. Bertin wrote: > > On Sunday February 08 2015 22:59:24 Alejandro Exojo wrote: > >> not an issue if the distribution or other third parties has a large enough >> community to provide additional packages, for example: >> >> http://llvm.org/apt/ > > Thanks

Re: [Interest] [Development] Why can't QString use UTF-8 internally?

2015-02-10 Thread Karl Ruetz
> On Feb 10, 2015, at 4:17 PM, Allan Sandfeld Jensen wrote: > > On Tuesday 10 February 2015, Oswald Buddenhagen wrote: >> On Wed, Feb 11, 2015 at 12:37:41AM +0400, Konstantin Ritt wrote: >>> Yes, that would be an ideal solution. Unfortunately, that would also >>> break a LOT of existing code. >>

[Interest] New Development Environment

2015-02-07 Thread Karl Ruetz
plan to setup Qt and QtCreator from the latest Enterprise versions available. Any inputs would be welcome. Karl Ruetz Sototech ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Installing on a headless server

2015-02-05 Thread Karl Ruetz
We have built Qt 5.1.1 - Qt 5.3.2 from GIT sources on CentOS 6.x. The Installer does not work for us, even on desktop machines. I believe it is tested primarily for Ubuntu. ( I could be wrong on that one.) We will be making our first attempt at a Qt 5.4 on CentOS 7 later today or tomorrow.

Re: [Interest] QSqlDatabase

2015-02-04 Thread Karl Ruetz
> On Feb 4, 2015, at 7:51 AM, Graham Labdon > wrote: > > Hi > I am just starting to explore Qt support for databases and have this as a > first attempt to open a data base > QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); > db.setHostName("bigblue"); > db.setDatabaseN

Re: [Interest] What is the difference.

2014-09-26 Thread Karl Ruetz
On Sep 26, 2014, at 2:37 PM, Karl Ruetz wrote: > > On Sep 24, 2014, at 10:22 AM, Thiago Macieira > wrote: > >> On Wednesday 24 September 2014 10:41:09 Koehne Kai wrote: >>> I think Thiago already wrote it: use the offscreen plugin . Launch your app >>>

Re: [Interest] What is the difference.

2014-09-26 Thread Karl Ruetz
On Sep 24, 2014, at 10:22 AM, Thiago Macieira wrote: > On Wednesday 24 September 2014 10:41:09 Koehne Kai wrote: >> I think Thiago already wrote it: use the offscreen plugin . Launch your app >> with e.g. >> >> -platform minimal >> >> And continue to use QApplication. > > offscreen, not mini

Re: [Interest] How to read Qmake .pro file built-in variables

2014-09-25 Thread Karl Ruetz
Here’s how I do it: TARGET = MyProgram VERSION = 1.0.0.0 DEFINES += \ APP_VERSION=\"\\\"$$VERSION\\\"\" \ APP_NAME=\\\"$$TARGET\\\" I then access the TARGET as the constant APP_NAME and VERSION as the constant APP_VERSION Karl On Sep 25, 2014, at 8:04 AM, rap wrote: > Is there a way to

Re: [Interest] What is the difference.

2014-09-22 Thread Karl Ruetz
On Sep 22, 2014, at 10:25 AM, william.croc...@analog.com wrote: > On 09/22/2014 11:10 AM, Thiago Macieira wrote: >> On Monday 22 September 2014 11:01:23 william.croc...@analog.com wrote: >>> Gang: >>> >>> While we are talking about the need for a Q[Core]Application... >>> >>> What is the differ

Re: [Interest] Is is possible to feed the QFileDialog a default file name?

2014-09-16 Thread Karl Ruetz
One way is to use QFileDialog::getSaveFileName(). Another is to use QFileDialog::selectFile(). Karl On Sep 16, 2014, at 7:52 AM, hualet wrote: > I want to supply a default file name showing the QFileDialog to save some > data. is that possible? > __

Re: [Interest] QSqlTableModel remove row

2014-02-14 Thread Karl Ruetz
One possible way would be to connect the rowsRemoved signal for the model to a slot that calls model.select() or some other function that resets the model and updates the view. Karl On Feb 14, 2014, at 3:59 PM, wrote: > Hi. > > How to correctly remove row from QSqlTableModel? > > I’ve u

Re: [Interest] QUdpSocket broken?

2013-09-11 Thread Karl Ruetz
g QNAM and have been unsuccessful. I've posed the issue in many forums (Qt Centre, etc...) and to Digia. We always end up back with QFtp. Karl Thiago Macieira wrote: >On quarta-feira, 11 de setembro de 2013 10:37:29, Karl Ruetz wrote: >> My main complaint remains the removal of

Re: [Interest] QUdpSocket broken?

2013-09-11 Thread Karl Ruetz
My main complaint remains the removal of QFtp without providing equivalent replacement features in QNAM. Now, under 5.1.1, I have yet to get the QFtp addon to work. So it looks like I have to stop using Qt 5 for Android because I cannot reliably support all my desktop apps. It honestly breaks

Re: [Interest] Compiler Error from moc_MainWindow.cpp

2013-09-06 Thread Karl Ruetz
For your particular case, you should be able to just us a "#undef Bool" after the #include line. Or, if you use Xlib.h in many modules, you can create your own mitchsXlib.h and put this in there. Or, you could grep the Qt4 sources for Xlib.h and see how they did it. Karl On 2013-09-06 1

Re: [Interest] Unique Database connection name

2013-09-04 Thread Karl Ruetz
On 2013-09-04 10:23, arno wrote: > Hello all, > > Problem: > Generate a unique database connection name for a connection in a Thread > (QRunnable). I'm trying to do this (pseudo code): > > class LongRunning : public QObject, public QRunnable { > Q_OBJECT > explicit LongRunning(); > > protec

Re: [Interest] QT 5.1/5.2 Books

2013-08-16 Thread Karl Ruetz
r I can write blog articles (in English) if this is off topic for the book. > ++ > Guillaume Belz > > - > >> DE: "Karl Ruetz" >> À: interest@qt-project.org >> ENVOYÉ: Jeudi 15 Août 2013 19:36:14 >> OBJET: [Interest] QT

[Interest] QT 5.1/5.2 Books

2013-08-15 Thread Karl Ruetz
Our company is about to jump into mobile development with both feet (finally). Up to now, all our products have been server and desktop products. Now we are beginning the design process for smart phone and tablet based client applications for our server products. Of course, I'm pushing to use

Re: [Interest] [SOLVED] Re: Compiling Programs with C++11 with Qt5, which was compiled without C++11 flag. Possible?

2013-08-15 Thread Karl Ruetz
I'm worse that that. I "index" according to what I'm "iterating". If it's cars: for(int iCar = 0; iCar < NoOfCars; ++iCar) ... or some such thing. Karl On 2013-08-15 10:34, Scott Aron Bloom wrote: > And I was taught... int ii in for loops :) > > -Original Message- > From: in

Re: [Interest] QtCreator 2.8.0 and CentOS 6.4: No go

2013-08-08 Thread Karl Ruetz
I was able to get it to work by commenting line 25 from file src/src/shared/qbs/src/lib/lib.pro # else: *g++*|*clang*|*icc*:QMAKE_CXXFLAGS += Werror Karl On 2013-08-08 15:02, Bob Hood wrote: > I have to do some Qt development work with CentOS 6.4 and Qt 4.8.4. Out of > the box, CentOS 6.

Re: [Interest] Binary file embedded in Resources to std::istream

2013-08-02 Thread Karl Ruetz
I'd try QDataStream. For input: QFile file("file.xxx"); file.open(QIODevice::ReadOnly); QDataStream in(&file); use >> operator or readBytes method to read for output: QFile file("file.xxx"); file.open(QIODevice::WriteOnly); QDataStream out(&file); use << operator or writeBytes() meth

Re: [Interest] Certain QTextCodecs causing crashes on Linux

2013-07-31 Thread Karl Ruetz
Are you using Ubuntu by any chance? We had a similar problem last year but it was unrelated to Qt. If you tried to do several consecutive searches in a web browser on Ubuntu using the French language, this exact error would get sent to standard error and the browser would crash. Applying this

Re: [Interest] Qt4 QODBCDriver class and header file no longer in Qt5?

2013-07-31 Thread Karl Ruetz
The binary installer does not automatically build or install the database plugins. You either have to install Qt from source and specify -qt-sql-odbc (built in) or -plugin-sql-odbc (plugin) to the configure command OR you have to build the plugin manually after installing. Instructions are here:

Re: [Interest] OpenSUSE, Qt 4.7, QtCreator 2.8, GDB, C++11: no debug mode is available

2013-07-30 Thread Karl Ruetz
Did you copy the .pro.user file from Windows 7? If so, remove it and open the project again. It should prompt you for all the available tool chains (kits, development enviroments, etc...) to be configured for that project. Karl On 2013-07-30 07:06, Alexander Syvak wrote: > A console appi

Re: [Interest] Error messages

2013-07-27 Thread Karl Ruetz
Make sure any of your own libraries you are linking (if any) are built using the same Qt configuration (DEBUG vs. RELEASE) as your app you are compiling. Karl On 2013-07-27 09:41, Hector Gordon wrote: > I have been getting the following message when running some new code "The program has u

Re: [Interest] App. is running after an exception is thrown.

2013-07-26 Thread Karl Ruetz
>From the documentation for QCoreApplication::exit: "After this function has been called, the application leaves the main event loop and returns from the call to exec(). The exec() function returns returnCode. If the event loop is not running, this function does nothing." QCoreApplication::q

Re: [Interest] Qt Service Framework- Will it ever be a part of Qt again?

2013-07-18 Thread Karl Ruetz
technical roadmap requests. We have several. But I hesitate to gum up this list or the Qt Developer's list with these requests. Karl Ruetz Soto Technologies On 2013-07-18 14:21, Lorn Potter wrote: > On 09/07/2013, at 4:46 AM, "Miller, Doug" wrote: > >> Since Qt5 Alph

Re: [Interest] QSqlDatabase and threads

2013-05-30 Thread Karl Ruetz
Both the documentation and my own experience say what you are after is not possible: http://qt-project.org/doc/qt-4.8/threads-modules.html#threads-and-the-sql-module I do a similar thing only with MySQL. I am forced to create a QSqlDatabase object with each thread. If I do not, I get dead lo

Re: [Interest] QSqlDatabase

2013-05-06 Thread Karl Ruetz
Did you check QSqlDatabase::lastError()? Might give you a clue. I'd also check any logs generated by the DBMS to see if a table has become corrupted or some such thing. Karl On 2013-05-06 13:00, Duane wrote: > Why would bool QSqlDatabase::transaction () > return false? I have a system that

Re: [Interest] Built in DataBase for Qt 4.8.4

2013-04-25 Thread Karl Ruetz
You can pass the -qt-sql-sqlite switch to the configure command when you do your build. I don't recall if the default for this switch is on or off. If you install from the binary (rather than from sources) both Sqlite and an ODBC plugin are present. Karl On 2013-04-25 10:33, Michael Jackso

Re: [Interest] Built in DataBase for Qt 4.8.4

2013-04-25 Thread Karl Ruetz
SQLite is there. You can specify "memory" as the database. The SQL examples in the documentation do this. You could use a QSettings object as an in memory database as well. Karl On 2013-04-25 10:12, Michael Jackson wrote: > Is there any "built in" or "In Memory" database structures that

Re: [Interest] Design idioms for QtCore applications

2013-02-08 Thread Karl Ruetz
My company has been writing server type applications in Qt for about 10 years. While these do not involved acquiring data from the command line, they do have to detect "work to do" in some fashion through the event loop. In your case, it seems as though your "to do" list is coming through the co

Re: [Interest] Interval QTimer not firing in server after running for months

2013-01-14 Thread Karl Ruetz
I have a server product that runs four daemons that have similar algorithms.   They have run for months with no problem.  Karl Sent from my Galaxy S®III Original message From: Tony Rietwyk Date: To: interest@qt-project.org Subject: [Interest] Interval QTimer not firing i

Re: [Interest] Qt Service Framework in Qt 5 Beta Release 2

2012-11-14 Thread Karl Ruetz
I've got the same issue. I have a commercial license so I may push on Digia a bit for it. Karl On 2012-11-14 07:13, Miller, Doug wrote: > It was painfully noted that Qt Service Framework has been moved out of the core release in Qt5 Beta Release 2 after being there since alpha. Was it update

Re: [Interest] how to run 21 threads concurrently

2012-10-04 Thread Karl Ruetz
I'm not sure why you would want to run 21 threads that are writing files on an 8 core machine. Depending on the OS, it is likely you will start time slicing which can actually be slower than waiting for a thread to finish before starting another one. Since you are writing files, the Disk I/O is

Re: [Interest] Digia to acquire Qt from Nokia

2012-08-15 Thread Karl Ruetz
Hey now. I'm not "paranoid" or "idiotic", just lazy enough to be willing to pay for a commercial license so I don't have to worry about staying LGPL compliant. Karl On 2012-08-15 08:12, Konrad Rosenbaum wrote: > You are missing my point: there are only a few areas where you can't use > (L

Re: [Interest] Digia to acquire Qt from Nokia

2012-08-14 Thread Karl Ruetz
As Obtuse as it might sound, for my company, it's worth the cost of the commercial license just so we don't have to tip toe around all the LPGL conditions and exceptions. We have found Digia to be very reliable and responsive and, for now, we are very optimistic about Digia's future with Qt.

Re: [Interest] Qt and fixed width/pitch font

2012-08-01 Thread Karl Ruetz
To get a truly fixed width/pitch font, you have to use a font that is designed to be such (monospaced), such as Courier, otherwise the results can look pretty nasty. Karl On 2012-08-01 09:55, Carl Schumann wrote: > Hi, > > Qt community I am developing a spreadsheet like program. As such I >

Re: [Interest] Semi-OT: What could / should Elop / Nokia have done differently?

2012-06-21 Thread karl . ruetz
If I ran Nokia for a year I would analyze which mobile OS(s) is/are dominating the markets I want to penetrate. Obviously iOS is proprietary so unless I want to write Apps for iStuff I have to look at Android and Windows (mostly Android). It is possible that it would be best to make Android p

Re: [Interest] MySQL question using QT

2012-06-20 Thread karl . ruetz
As I recall, the bind-address should be the server's IP, not the clients. For example, if your MySQL server IP is 172.16.246.129 then entire block should be look like as follows: [mysqld] user= mysql pid-file= /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysq

Re: [Interest] Does it really worth it?

2012-03-28 Thread Karl Ruetz
Is there a commercial customer group providing some input on this? I am a commercial customer.  Charts are key to what we do.   Is there someone I could contact to provide our requirements in hopes some of them might be addressed?   Karl Sounds good. Will be the source code available? > Hi, > > As

Re: [Interest] what happened to qtcreator's "run qmake" command?

2012-01-18 Thread Karl Ruetz
I have it under the Build menu; 4th item from the bottom. Karl   I am using qt creator 2.4 on windows and i can't find the "run qmake" command anymore. where did it go? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman

Re: [Interest] Qt creator - Minimum Qt version?

2011-11-23 Thread Karl Ruetz
We've taken to recreating our production development environment every six months. Basically, it means we get very little production development done while we qualify and deploy. But these newer versions of QT Creator are, quite simply, worth the cost and trouble.  The feature where the project tre