Re: [Interest] To rpath or not when building Qt

2015-03-10 Thread Thiago Macieira
On Tuesday 10 March 2015 19:07:19 Scott Aron Bloom wrote: > When building Qt for distribution via LGPL of a closed source product using > shared libraries. > > What is the best method to make sure the plugins pickup the Qt libraries you > are shipping? RPATH with $ORIGIN and make sure that the li

Re: [Interest] Qt Performance : QT Widget Application vs WPF

2015-03-10 Thread André Pönitz
On Tue, Mar 10, 2015 at 12:19:42PM +0530, Chandralatha Harish wrote: > Hi All, > > I was trying to evaluate QT vs WPF in terms of Memory , Performance , > Window HAndles, User objects, GDI and so on.. > So built 2 identical looking controls in WPF and QT with all values > harcoded. > BAsically a u

Re: [Interest] QProcess to start a process at a higher priority

2015-03-10 Thread NoMercy
Hello again, BTW using this method you can put args in quotes too like QString( "cscript C:\\progra~1\\yourpath\\your_vbs.vbs \"%1\" \"%2\" \"%3\" \"%4\"" ).arg( arg_var_0).arg(arg_var_1).arg(arg_var_2).arg(arg_var_3); Happy coding, Emre On Tue, Mar 10, 2015 at 9:27 PM, NoMercy wrote: > Hello,

Re: [Interest] QProcess to start a process at a higher priority

2015-03-10 Thread NoMercy
Hello, I use it like this; > QProcess *procPort1 = new QProcess(this); > > QString cmdPort1 = QString( "cscript C:\\progra~1\\yourpath\\your_vbs.vbs %1 > %2 %3 %4" ).arg(arg_var_0).arg(arg_var_1).arg(arg_var_2).arg(arg_var_3); > > procPort1->start(cmdPort1); hope it helps :) Happy coding, E

[Interest] QSqlQuery... bindValue does not work for CREATE TABLE .... AS SELECT....

2015-03-10 Thread Guido Seifert
Hi, just 'discovered' that bindValue does not seem to work with CREATE TABLE statements. One could ask, why would anyone want to use a bound value in a CREATE TABLE statement. Here my query: > CREATE TEMP TABLE selectseriestable AS SELECT title FROM titlegroup,title > WHERE titlegroup.seriesID=(

[Interest] To rpath or not when building Qt

2015-03-10 Thread Scott Aron Bloom
When building Qt for distribution via LGPL of a closed source product using shared libraries. What is the best method to make sure the plugins pickup the Qt libraries you are shipping? Scott ___ Interest mailing list Interest@qt-project.org http://lis

Re: [Interest] How to crop and scale QCamera input to a widget

2015-03-10 Thread Mark Gaiser
On Tue, Mar 10, 2015 at 12:32 PM, nus1998 wrote: > Hi All, > > My camera resolution is 2048 * 1536, now I want to display the center 1000 > * 1000 pixels on a 500 * 500 widget, so far I only found setGeometry to > crop the image but can't scale it, is there any item for that? > > thanks in advan

Re: [Interest] What is the best way to refresh QML image

2015-03-10 Thread VStevenP
Hi Harry, If you want a low-tech, QML-only workaround, perhaps you could have 2 Images at the same location with the same dimensions, and just switch between them when a refresh occurs. You could stage the refreshed picture into the currently invisible, source-less Image, then set it to visibl

Re: [Interest] QProcess to start a process at a higher priority

2015-03-10 Thread Jason Kretzer
One last thing. I am trying to start the VBS with: p->startDetached("go.vbs", arguments); However, this returns false and does not start the vbs. I see that you use cscript to start yours, but you do not pass any arguments. How would that be accomplished? Basically, in the line above, the a

Re: [Interest] Deploying 5.4.0 Application to Linux

2015-03-10 Thread William Hallatt
Hi Mike, I am not familiar with Mint, but I am very familiar with that error message. I wrote up a post on how I resolved it for Ubuntu 12.04 and a previous Qt 5 release quite some time ago, but it might assist you somewhat in figuring out where to go next: http://goblincoding.com/2013/11/07/dep

[Interest] ListView.currentIndex

2015-03-10 Thread Harri Pasanen
ListView currentIndex behavior is bit of a mystery to me. I have a StackView where one page has a ListView. If I leave the page and come back to it, it seems that the currentIndex is somehow stuck and does no longer update when I scroll the list. Only when I reinitialize the ListView model,

[Interest] Deploying 5.4.0 Application to Linux

2015-03-10 Thread Mike Jackson
I am having an issue trying to create a self contained app package on Linux. Specifically I am using Mint 17.x for development and Qt 5.4.0 offline installer. I use CMake for my build system. I have no issues debugging my application so that sanity check works from QtCreator. I have created a fold

Re: [Interest] QProcess to start a process at a higher priority

2015-03-10 Thread Jason Kretzer
Answered my own question, it appears if I just wrap the arguments in chr(34)’s it will retain the integrity of the argument. Thanks Emre. -Jason //--// Jason R. Kretzer Lead Application Developer ja...@gocodigo.com //--

Re: [Interest] QProcess to start a process at a higher priority

2015-03-10 Thread Jason Kretzer
Emre, thanks so much. I do indeed have a static number of arguments. Unfortunately, the reason they are quoted was because the arguments have spaces in them and Wscript.Arguments wants to ignore the quotes :) -Jason //--// Jason R. Kretzer Lead Application De

Re: [Interest] QProcess to start a process at a higher priority

2015-03-10 Thread NoMercy
Hello again, for that I have something like this (if you have a static number of arguments); Set WshShell = CreateObject("WScript.Shell") > > WshShell.currentdirectory = "C:\Program Files\your_app_dir" > > 'wscript.echo WshShell.currentdirectory > > WshShell.Run chr(34) & "C:\Program Files\ your_a

Re: [Interest] What is the best way to refresh QML image

2015-03-10 Thread Harri Pasanen
Well, reading the thread it seems that options are: 1. changing the "source" property, which feels like a hack if used directly. 2. setting cache=false and calling sourceChanged(), but it was not clear from the thread if this works or not. 3. implementing a custom item to replace Image, which fee

Re: [Interest] [OS X] qmake -spec macx-clang-32 on a 64bit system

2015-03-10 Thread René J . V . Bertin
On Tuesday March 10 2015 06:34:55 Adam Light wrote: Hi, > > %> ( cd > > qt5dsql3-mp9-work/qt-everywhere-opensource-src-5.4.1-i386/qtbase/src/plugins/sqldrivers/sqlite > > ; /opt/local/libexec/qt5/bin/qmake -r PREFIX=/opt/local > > QMAKE_MACOSX_DEPLOYMENT_TARGET=10.9 CONFIG+=release > > INCLUDEPAT

Re: [Interest] [OS X] qmake -spec macx-clang-32 on a 64bit system

2015-03-10 Thread Adam Light
On Tue, Mar 10, 2015 at 6:29 AM, René J.V. wrote: > Hello, > > I am getting strange behaviour from qmake, trying to generate a 32bit > build with it on a 64bit system. qmake in fact seems to ignore the -spec > argument (as long as it's not in error, that is). I get exactly the same > Makefile eve

[Interest] [OS X] qmake -spec macx-clang-32 on a 64bit system

2015-03-10 Thread René J . V . Bertin
Hello, I am getting strange behaviour from qmake, trying to generate a 32bit build with it on a 64bit system. qmake in fact seems to ignore the -spec argument (as long as it's not in error, that is). I get exactly the same Makefile even when I tell qmake to use linux-g++, for instance ... And t

Re: [Interest] Qt Contributors' Summit 6-7th June 2015 in Oslo

2015-03-10 Thread Kojo Tero
Reminder that the Qt Contributors' Summit registration for an invite is still open. To make sure you have a place, please fill in the registration form at: https://www.webropolsurveys.com/S/F506847B071344BB.par For more info see: http://blog.qt.io/blog/2015/01/29/the-trolls-invite-you-to-oslo/

[Interest] How to crop and scale QCamera input to a widget

2015-03-10 Thread nus1998
Hi All, My camera resolution is 2048 * 1536, now I want to display the center 1000 * 1000 pixels on a 500 * 500 widget, so far I only found setGeometry to crop the image but can't scale it, is there any item for that? thanks in advance Jie ___ Intere

Re: [Interest] [OS X] 32bit build on 64bit system?

2015-03-10 Thread René J . V . Bertin
On Monday March 09 2015 17:38:31 René J.V. Bertin wrote: > I think I *was* right :) but also that the culprit wasn't qmake but something > fishy in the MacPorts buildsystem I was using. Invoking the exact configure > command and then gmake by hand seemed to work fine (I didn't let it complete >

Re: [Interest] What is the best way to refresh QML image

2015-03-10 Thread Daniel França
So I think this discussion can help you: http://forum.qt.io/topic/6935/how-to-reload-an-image-in-qml/3 Em ter, 10 de mar de 2015 às 11:47, Harri Pasanen escreveu: > Exactly: I want QML Image to have a refresh() method that will force it > to reload the image. > > One use case: let's say I have

Re: [Interest] What is the best way to refresh QML image

2015-03-10 Thread Harri Pasanen
Exactly: I want QML Image to have a refresh() method that will force it to reload the image. One use case: let's say I have a jpg on disk that I'm showing in QML. If I edit the image in an external application and save it again with the same name, I'd like to be able to reload the image witho

Re: [Interest] What is the best way to refresh QML image

2015-03-10 Thread Daniel França
What exactly you want to do? Em ter, 10 de mar de 2015 às 11:26, Harri Pasanen escreveu: > Hi, > > Is there a way to force QML image to refresh, other than changing its > "source" property? > > Thanks, > > Harri > ___ > Interest mailing list > Interest

[Interest] What is the best way to refresh QML image

2015-03-10 Thread Harri Pasanen
Hi, Is there a way to force QML image to refresh, other than changing its "source" property? Thanks, Harri ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qt Performance : QT Widget Application vs WPF

2015-03-10 Thread Reinhardt Behm
When you buy a car, don't you check if it can go to Alpha Centauri? :-) -- Reinhardt On Tuesday 10 March 2015 08:20:01 Guido Seifert wrote: > Good to know. Should I ever have the use case where I have to create 1000 > identical looking controls in a loop I will use WPF. > > Guido > > On Tue, 1

Re: [Interest] Qt Performance : QT Widget Application vs WPF

2015-03-10 Thread Иван Комиссаров
Hello. When you create a widget with no parent, it becomes a separate window. So, you're creating 200 (native) windows and then destroy them when you put a widget in a list. Creating native controls is a very slow operation. Try passing a view as a parent for UserControl. Next, what is real useca

Re: [Interest] Qt Performance : QT Widget Application vs WPF

2015-03-10 Thread Guido Seifert
Good to know. Should I ever have the use case where I have to create 1000 identical looking controls in a loop I will use WPF. Guido On Tue, 10 Mar 2015 12:19:42 +0530 Chandralatha Harish wrote: > Hi All, > > I was trying to evaluate QT vs WPF in terms of Memory , Performance , > Window HAndl

[Interest] Qt Performance : QT Widget Application vs WPF

2015-03-10 Thread Chandralatha Harish
Hi All, I was trying to evaluate QT vs WPF in terms of Memory , Performance , Window HAndles, User objects, GDI and so on.. So built 2 identical looking controls in WPF and QT with all values harcoded. BAsically a usercontrol - which is "QFrame holding 3 Labels with text, 3 labels with Images, 3 c