Re: [Interest] Design idioms for QtCore applications

2013-02-08 Thread Thiago Macieira
On sexta-feira, 8 de fevereiro de 2013 11.27.53, K. Frank wrote: > Obviously, that would add a bit of a layer of complications, but as > Thiago said, using console input is not "Qt-approved," so some > level of complication is to be expected. You coined the term "Qt-approved". :-) If you hadn't,

Re: [Interest] Design idioms for QtCore applications

2013-02-08 Thread K. Frank
Hello Jason! On Fri, Feb 8, 2013 at 11:12 AM, Jason H wrote: > You can split it anyway you want. It may not be so clear cut. > > You have many choices: > Use STDIN/OUT as a synchronous QTextStream, as in >>"hello, enter your name: " > <"World" >>"Hello World!" > ( > is output; < is input) > > Or

Re: [Interest] Design idioms for QtCore applications

2013-02-08 Thread K. Frank
Hi Thiago! On Fri, Feb 8, 2013 at 10:53 AM, Thiago Macieira wrote: > On sexta-feira, 8 de fevereiro de 2013 10.15.39, K. Frank wrote: >> Well, truth be told, I'm not trying to do anything. Or, more seriously, >> I'm trying to learn, so that I get a sense of the Qt-approved way of doing, >> so th

[Interest] Qt5 Terminal application

2013-02-08 Thread Jason H
Does anyone know of a terminal application (ie. Putty, KTerminal, etc) that is Qt5 and this OpenVG/GL hardware accelerated?___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Design idioms for QtCore applications

2013-02-08 Thread Jason H
You can split it anyway you want. It may not be so clear cut. You have many choices: Use STDIN/OUT as a synchronous QTextStream, as in >"hello, enter your name: " <"World" >"Hello World!" ( > is output; < is input) Or you can get fancier and create a stream reader QObject that emits commands t

Re: [Interest] Design idioms for QtCore applications

2013-02-08 Thread Thiago Macieira
On sexta-feira, 8 de fevereiro de 2013 10.15.39, K. Frank wrote: > Well, truth be told, I'm not trying to do anything. Or, more seriously, > I'm trying to learn, so that I get a sense of the Qt-approved way of doing, > so that I get a sense of what one can do with non-gui Qt apps and > when I migh

Re: [Interest] Design idioms for QtCore applications

2013-02-08 Thread K. Frank
Hi Jason! On Fri, Feb 8, 2013 at 9:20 AM, Jason H wrote: > I've written a number of server applications. > > They work the same, you just inherit from QCoreApplication and make sure you > have events. Ah, okay. To make sure I understand the suggestion: Rather than instantiate separately (for e

Re: [Interest] Design idioms for QtCore applications

2013-02-08 Thread K. Frank
Hello Karl! On Fri, Feb 8, 2013 at 9:37 AM, Karl Ruetz wrote: > 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 yo

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] Design idioms for QtCore applications

2013-02-08 Thread Jason H
I've written a number of server applications. They work the same, you just inherit from QCoreApplication and make sure you have events. It would help to know what you're trying to do, but as long as you're not just processing command line arguments and exiting, you're going to need some way to

Re: [Interest] Design idioms for QtCore applications

2013-02-08 Thread Giuseppe D'Angelo
On 8 February 2013 13:02, K. Frank wrote: > > I think part of what I'm missing is the connection between the event > loop, "a.exec()", and processing console input without blocking. At least under Unix systems, QSocketNotifier on stdin is the glue you're looking for. -- Giuseppe D'Angelo ___

[Interest] Design idioms for QtCore applications

2013-02-08 Thread K. Frank
Hello List! I am playing around with non-gui, "QtCore" applications,( i.e., applications that have #include rather than #include ). (To date, I have been using Qt for gui's. If an app hasn't had a gui, I didn't use Qt, and I would write the non-gui "business logic" in my gui apps in Qt-independ

Re: [Interest] MySQL 64bit + Qt5: Irrational access violation exception

2013-02-08 Thread Soroush R
I recompiled Qt SQL module and plugins with no optimization flags. It's still same. I'm using official libraries. Which library should I compile? There is MySQL++, MySQL C Connector and MySQL C++ Connector