Re: [Interest] How to deal with database specific syntax

2015-02-11 Thread Dmitriy Purgin
Exactly, that's what I meant by "supporting the stored procedure call syntax". Sorry, it was a bit vague. Anyway, in this case you're implementing a single interface for an SP call backed by multiple "syntax handlers" which is much easier than handling lots of syntactic differences for any kind of

Re: [Interest] How to deal with database specific syntax

2015-02-11 Thread alexander golks
Am Thu, 12 Feb 2015 08:59:18 +0600 schrieb Dmitriy Purgin : > Hi, > > Actually I don't think it's a Qt-related question but here's my approach to > it. > > Since you struggle with both syntaxes, you may want to try and encapsulate > SQL code to stored procedures on the DB side and by that I mean

Re: [Interest] Issues building Qt 5.4.0 on CentOS 5.

2015-02-11 Thread Simon Matthews
On Wed, 11 Feb 2015, Thiago Macieira wrote: On Wednesday 11 February 2015 19:17:02 Simon Matthews wrote: OK, nm. By the way, am I correct in my belief that for Qt 5.4.0, that Webkit depends on icu? Correct. Thanks for confirming that. I did not want to waste time chasing down an issue th

Re: [Interest] Issues building Qt 5.4.0 on CentOS 5.

2015-02-11 Thread Thiago Macieira
On Wednesday 11 February 2015 19:17:02 Simon Matthews wrote: > OK, nm. By the way, am I correct in my belief that for Qt 5.4.0, that > Webkit depends on icu? Correct. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center

Re: [Interest] Issues building Qt 5.4.0 on CentOS 5.

2015-02-11 Thread Simon Matthews
On Wed, 11 Feb 2015, Thiago Macieira wrote: > On Wednesday 11 February 2015 17:56:13 Simon Matthews wrote: >> I think that Webkit is not included because the test for icu fails: >> g++ -L /usr/local/lib -L /usr/local/lib/icu -I /usr/local/include/unicode/ >> -I /usr/local/include/layout/ >> ./qt

Re: [Interest] Deploying Qt to MacOs still...errr, sucks?

2015-02-11 Thread Hamish Moffatt
On 12/02/15 05:11, Adam Light wrote: > > If you're using Qt 5 (maybe only 5.4), macdeployqt may be able to help > with the code signing and possibly the dmg part: > > /qtbuild5/install/mac64/bin/macdeployqt --help Unfortunately that's not much use if you need to do anything more than copy in Qt;

Re: [Interest] Issues building Qt 5.4.0 on CentOS 5.

2015-02-11 Thread Thiago Macieira
On Wednesday 11 February 2015 17:56:13 Simon Matthews wrote: > I think that Webkit is not included because the test for icu fails: > g++ -L /usr/local/lib -L /usr/local/lib/icu -I /usr/local/include/unicode/ > -I /usr/local/include/layout/ > ./qtwebkit/Tools/qmake/config.tests/icu/icu.cpp > /tmp/

Re: [Interest] How to deal with database specific syntax

2015-02-11 Thread Dmitriy Purgin
Hi, Actually I don't think it's a Qt-related question but here's my approach to it. Since you struggle with both syntaxes, you may want to try and encapsulate SQL code to stored procedures on the DB side and by that I mean not only simple data retrieval or updating but also the business logic. Yo

Re: [Interest] Issues building Qt 5.4.0 on CentOS 5.

2015-02-11 Thread Simon Matthews
On Tue, 10 Feb 2015, Thiago Macieira wrote: On Tuesday 10 February 2015 22:34:20 Simon Matthews wrote: ../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’ The one thing "before 'static'" is _X_INLINE. _X_INLINE is s

Re: [Interest] Fwd: Qt 5.4 build error on OS X 10.7

2015-02-11 Thread René J . V . Bertin
On Wednesday February 11 2015 13:14:46 Thiago Macieira wrote: > d47b9ace50d47a4472dc9fb029bbf6e8dd810c01 Great, thanks. R. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Fwd: Qt 5.4 build error on OS X 10.7

2015-02-11 Thread Thiago Macieira
On Wednesday 11 February 2015 18:15:51 René J.V. Bertin wrote: > On Wednesday February 11 2015 08:42:07 Thiago Macieira wrote: > > On Wednesday 11 February 2015 17:15:37 René J.V. Bertin wrote: > > > $D/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/co > > > reli b/kernel/qmetat

Re: [Interest] How to deal with database specific syntax

2015-02-11 Thread Jason H
Without ORMs o query generators, you  pretty much have to do it yourself. Have two syntaxes for the same query, choose based on the driver. This works for me because I don't like maintaining SQL in code unless I have to, I read my SQL from a YAML/text file, or the database itself.    Sent: Wednes

[Interest] easily prevent ListView from stealing mouse events from QQuickPaintedItem?

2015-02-11 Thread VStevenP
I have a ListView where the delegate contains an embedded QQuickPaintedItem graph I exposed to QML via qmlRegisterType().  The graph accepts mouse events so that the user can drag vertices on the graph in order to edit the graph.   Unfortunately, the ListView, which is oriented as horizontal,  i

Re: [Interest] Deploying Qt to MacOs still...errr, sucks?

2015-02-11 Thread Michael Jackson
On Feb 11, 2015, at 1:43 PM, René J.V. Bertin wrote: > On Wednesday February 11 2015 13:27:37 Michael Jackson wrote: > >> I was also the one that reported the MacPort dependency. And I am not really >> comfortable just changing the install_name to point towards another library >> of the same

Re: [Interest] Deploying Qt to MacOs still...errr, sucks?

2015-02-11 Thread René J . V . Bertin
On Wednesday February 11 2015 13:27:37 Michael Jackson wrote: > I was also the one that reported the MacPort dependency. And I am not really > comfortable just changing the install_name to point towards another library > of the same name but unknown as to how it was compiled or with what options

Re: [Interest] Deploying Qt to MacOs still...errr, sucks?

2015-02-11 Thread Michael Jackson
On Feb 10, 2015, at 7:52 AM, René J.V. Bertin wrote: >> >> Em Tue Feb 10 2015 at 4:32:58 AM, Thiago Macieira >> escreveu: >> > >>> That must be the same MacPorts leak issue. > > Yep. The "funny" part of that issue is that Qt's own binaries are generated > with a HUGE "rpath" stored in them

Re: [Interest] Deploying Qt to MacOs still...errr, sucks?

2015-02-11 Thread Adam Light
On Wed, Feb 11, 2015 at 6:08 AM, Mike Krus wrote: > Hi all, > > this tool is quite useful: https://github.com/auriamg/macdylibbundler > does the install_name_tool dance for the libs that macdeployqt ignores. > So I run macdeployqt, then dylibbundler > Then I still need a script to handle other pl

Re: [Interest] Fwd: Qt 5.4 build error on OS X 10.7

2015-02-11 Thread René J . V . Bertin
On Wednesday February 11 2015 08:42:07 Thiago Macieira wrote: > On Wednesday 11 February 2015 17:15:37 René J.V. Bertin wrote: > > $D/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/coreli > > b/kernel/qmetatype.h:1943:1: error: copying variable of type > > 'QBasicAtomicInt' (aka

Re: [Interest] Fwd: Qt 5.4 build error on OS X 10.7

2015-02-11 Thread Thiago Macieira
On Wednesday 11 February 2015 17:15:37 René J.V. Bertin wrote: > $D/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/coreli > b/kernel/qmetatype.h:1943:1: error: copying variable of type > 'QBasicAtomicInt' (aka 'QBasicAtomicInteger') invokes deleted > constructor Q_DECLARE_METATY

[Interest] Fwd: Qt 5.4 build error on OS X 10.7

2015-02-11 Thread René J . V . Bertin
Hello, Someone is testing my MacPorts recipe (portfile) for building Qt 5.4.0 for me on OS X 10.7. He reports that the build procedure fails with an error message that neither of us can make much of: {{{ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cl

Re: [Interest] QtCreator with very high resolution laptops

2015-02-11 Thread René J . V . Bertin
On Wednesday February 11 2015 15:16:37 Portale Alessandro wrote: > recently been added in 5.4. Here is an overview of the support: > > http://doc.qt.io/qt-5/highdpi.html > > Legacy widget based applications should get some High-DPI improvement by just > using Qt 5.4. Depending on what the appli

Re: [Interest] QtCreator with very high resolution laptops

2015-02-11 Thread Portale Alessandro
> From: Etienne Sandré-Chardonnal > > About making Desktop apps (legacy, non Qt Quick) working well on high DPI > screens, does  Qt 5 improves things significantly? Qt 5 had High-DPI support for OSX since a few minor versions. Experimental High-DPI support for Windows and Linux have recently bee

[Interest] WebGL content not rendered inside QtQuick2 / QML WebView

2015-02-11 Thread G. Allegri
I'm doing some basic tests with a QML application to deliver WebGL content on desktop apps. The basic test is the following code: https://gist.github.com/giohappy/e1e8a788a823dead7cb8 The window is shown and the HTML content appears but no WebGL content is shown. I've tested it with other pages (

Re: [Interest] Deploying Qt to MacOs still...errr, sucks?

2015-02-11 Thread René J . V . Bertin
On Wednesday February 11 2015 14:08:20 Mike Krus wrote: I just noticed the following comment in the CMakeLists.txt file for CMake's own Qt app ... # We need to install Cocoa platform plugin and add qt.conf for Qt5 on Mac. # FIXME: This should be part of Qt5 CMake scripts, but unfortunatelly

Re: [Interest] Deploying Qt to MacOs still...errr, sucks?

2015-02-11 Thread Mike Krus
Hi all, this tool is quite useful: https://github.com/auriamg/macdylibbundler does the install_name_tool dance for the libs that macdeployqt ignores. So I run macdeployqt, then dylibbundler Then I still need a script to handle other plugins (for exampl

[Interest] How to deal with database specific syntax

2015-02-11 Thread pmqt71
Hi all, in my Qt application I've to duplicate sql instructions for MySql and Postgres due to different sql syntax. Most problems are on date types. For instance, MySql has DATEDIFF, Postgres has EXTRACT, CAST... Without using ORMs, is there a way to manage specific sql syntax? Thanks pm __

[Interest] [ANN] ODB C++ ORM 2.4.0 Released, Adds Bulk Operations

2015-02-11 Thread Boris Kolpackov
I am pleased to announce the release of ODB 2.4.0. ODB is an open source object-relational mapping (ORM) system for C++. It allows you to persist C++ objects to a relational database without having to deal with tables, columns, or SQL and without manually writing any of the mapping code. Major ne

Re: [Interest] Bluetooth support on Qt 5.5, Linux to iOS bluetooth communication.

2015-02-11 Thread Blasche Alexander
Qt 5.5 will add support for BTLE on Android and iOS. The API is mostly the same. Those new platform ports were the proving ground for the 5.4 API. Unfortunately Qt 5.5 is still limited to the BTLE central role. Peripheral mode is something I'd like to add at some stage but haven't been able to d

Re: [Interest] QtCreator with very high resolution laptops

2015-02-11 Thread Etienne Sandré-Chardonnal
René : yes of course, I know that code editor & debugger may be scaled. The question was more about every other part of the UI, such as project browser, dialogs, etc... Alessandro : Thanks, it looks great. That means I will have to switch to Qt 5 (at least for Qt Creator!). About making Desktop a

Re: [Interest] QtCreator with very high resolution laptops

2015-02-11 Thread Portale Alessandro
Hi, This is a screenshot of Qt Creator 3.3 running on my 3k 15 Inch screen, on Windows: http://picpaste.com/pics/QtCreatorWindowsHighDpi.1423651325.png I launched it with environment variable “QT_DEVICE_PIXEL_RATIO” set to “2” and command line parameter “-style fusion”. Br, Alessandro From:

Re: [Interest] QtCreator with very high resolution laptops

2015-02-11 Thread René J . V . Bertin
On Wednesday February 11 2015 10:39:44 Etienne Sandré-Chardonnal wrote: Hi >14-15inch screens). Is QtCreator useable on these screens? Can every text >be upscaled so that nothing looks tiny? If it's possible I'd love to hear about it, though coming from the opposite side. I find that (Mac) Qt C

[Interest] Bluetooth support on Qt 5.5, Linux to iOS bluetooth communication.

2015-02-11 Thread Johannes Bell
Hello, Qt 5.4 provide a Tech Preview of Bluetooth Low Energy (client side support on Bluez 4 & 5). My Question is how far the Qt 5.5 Bluetooth Low Energy API final release will supports the BTLE functionality. Especially I am interested in the server side support of BTLE to communicate with iOS (In

[Interest] QtCreator with very high resolution laptops

2015-02-11 Thread Etienne Sandré-Chardonnal
Hi, I'm thinking of buying a new laptop for developping with Qt under Windows. Most high-end laptops now have very high resolution displays (3K or 4K, on 14-15inch screens). Is QtCreator useable on these screens? Can every text be upscaled so that nothing looks tiny? Thanks! Etienne