Re: [Interest] What is Qt.red for in QML?

2015-02-05 Thread Rutledge Shawn
On 6 Feb 2015, at 02:36, Jérôme Godbout jer...@bodycad.com wrote: Sorry read too fast the original post, try to print it, if the int is 0, I would guess it's an indexer for rgba values of some sort. May be wrong on this not near my computer to test On Feb 5, 2015, at 8:29 PM, Ian

Re: [Interest] [Semi OT] Concurrent (multi-threaded) read/write disk IO?

2015-02-05 Thread Rainer Wiesenfarth
Am 05.02.2015 um 20:21 schrieb Till Oliver Knoll: [...] Other links that I found seem to support that, that the underlying scheduler figures out the best read/write strategy, and any attempt by the application to implement that by itself would be counter-productive [...] One addition: If using

[Interest] How to do a correct drop shadow on a QML Rect?

2015-02-05 Thread Jason H
These flat interfaces are all the rage these days. So I want to make a drop shadow. However the two approaches I can think of don't work. First is the QML DropShadow element. This creates a shadow of a constant color when the source is a rect. It is pixel-equivalent to just another Rect, so

Re: [Interest] Installing on a headless server

2015-02-05 Thread Bo Thorsen
On 02/05/2015 09:04 PM, Jason H wrote: I need to install Qt (Enterprise) on a headless server (CentOS) (I use -platform minimal) . There is only the GUI installer. How can I get Qt installed on the server so I can generate reports? --OR-- How can I build my package for distribution (incl

Re: [Interest] How to do a correct drop shadow on a QML Rect?

2015-02-05 Thread Ben Lau
Hi Jason, Here is an example to attach shadow in material design style to rectangle object: https://github.com/benlau/quickandroid/blob/master/QuickAndroid/Shadow.qml On 6 February 2015 at 12:01, Jason H jh...@gmx.com wrote: These flat interfaces are all the rage these days. So I want to

Re: [Interest] [Semi OT] Concurrent (multi-threaded) read/write disk IO?

2015-02-05 Thread Keith Gardner
Does it make sense to guarantee/enforce sequential (exclusive) access to the harddisk on application level, or would I re-invent functionality already present in the underlying OS/disk driver (and maybe even sacrifice performance)? It depends on the task at hand. If you know you are going

Re: [Interest] [Semi OT] Concurrent (multi-threaded) read/write disk IO?

2015-02-05 Thread Till Oliver Knoll
Am 05.02.2015 um 14:25 schrieb Till Oliver Knoll till.oliver.kn...@gmail.com: ... Does it make sense to guarantee/enforce sequential (exclusive) access to the harddisk on application level, or would I re-invent functionality already present in the underlying OS/disk driver (and maybe

Re: [Interest] Q_OS_ANDROID macro

2015-02-05 Thread Francisco Ares
2015-02-04 16:32 GMT-02:00 Giuseppe D'Angelo giuseppe.dang...@kdab.com: Il 04/02/2015 11:18, Reinhardt Behm ha scritto: MOC does not understand and therefor does not respect macros and #ifdef. I'm sorry to be blunt, but this is simply false. moc has had a full C++ preprocessor since Qt 5.0.

Re: [Interest] [Semi OT] Concurrent (multi-threaded) read/write disk IO?

2015-02-05 Thread Harri Pasanen
On 05/02/2015 14:44, Till Oliver Knoll wrote: Am 05.02.2015 um 14:25 schrieb Till Oliver Knoll till.oliver.kn...@gmail.com mailto:till.oliver.kn...@gmail.com: ... Does it make sense to guarantee/enforce sequential (exclusive) access to the harddisk on application level, or would I

Re: [Interest] Qt 5 Creator (Mac) Debugger should use the system python executable

2015-02-05 Thread René J . V . Bertin
On Wednesday February 04 2015 23:44:25 André Pönitz wrote: The solution is to start LLDB, and use the Python it links to implicitly by using the LLDB 'script' command, instead of hoping that the system Python is the right one. In fact, are you really sure?? I just did this on OS X: % lldb

[Interest] [Semi OT] Concurrent (multi-threaded) read/write disk IO?

2015-02-05 Thread Till Oliver Knoll
Hi all, This is somewhat unrelated to Qt, but I hope one or another has stumbled over this and can share some thoughts. Does it make sense to guarantee/enforce sequential (exclusive) access to the harddisk on application level, or would I re-invent functionality already present in the

Re: [Interest] double-buffering, quality drop

2015-02-05 Thread Alexander Semke
Am Mittwoch, 4. Februar 2015, 11:22:15 schrieben Sie: not sure how the graphicsitem comes into all of this, but no you cant draw on it. Well, we use QGraphicsScene/View with QGraphicsItems. you can draw on a QGraphicsWidget or you can derive from QGraphicsItem and draw in its paint() method.

[Interest] Wrong App Name on Android

2015-02-05 Thread Jason H
___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Wrong app name on android

2015-02-05 Thread Harri Pasanen
On 05/02/2015 16:48, Jason H wrote: So I have an app name in the Application: Application Name field of the manifest viewer. But when I deploy it, it only comes up with the Qt project name (project in project.pro) How do I get the version on the phone to match the Application name?

[Interest] Wrong app name on android

2015-02-05 Thread Jason H
So I have an app name in the Application: Application Name field of the manifest viewer. But when I deploy it, it only comes up with the Qt project name (project in project.pro) How do I get the version on the phone to match the Application name? Qt 5.4 QtCreator 3.3

Re: [Interest] Wrong app name on android

2015-02-05 Thread Jason H
There I have: android:label=@string/app_name Which in android world is a reference to a string in the resources file. I guess Qt is supplying the project name, not the Application Name. I manually edited the label for the activity and it and works! I think this should be a bug. So I made one.

Re: [Interest] [Semi OT] Concurrent (multi-threaded) read/write disk IO?

2015-02-05 Thread Till Oliver Knoll
Hi Harri, Rainer, thanks for sharing your thoughts! Am 05.02.15 um 15:19 schrieb Harri Pasanen: On 05/02/2015 14:44, Till Oliver Knoll wrote: Am 05.02.2015 um 14:25 schrieb Till Oliver Knoll till.oliver.kn...@gmail.com mailto:till.oliver.kn...@gmail.com: ... I am really just interested in

Re: [Interest] pyqtdeployed app crashes android but not iOS

2015-02-05 Thread lloyd konneker
I have determined that it fails here in pythonrun.c in function initstdio(): fd = fileno(stdin); /* Under some conditions stdin, stdout and stderr may not be connected * and fileno() may point to an invalid file descriptor. For example * GUI apps don't have valid standard

Re: [Interest] Wrong app name on android

2015-02-05 Thread Jason H
I've checked the manifest The correct value is there... and uninstalled/reinstalled and it still does not match what is in the XML. I pushed it via the debugger - but other people who download it from the app store have the same problem. Sent: Thursday, February 05, 2015 at 10:54 AM From:

[Interest] Additional output from QtCore

2015-02-05 Thread Valery Kotov
Greetings everybody! I'm looking for a piece of advice. Let me describe the problem. We have QTimer which emits a signal each N seconds. The timer has queued connection between timeout signal and sltTimeout slot. The slot has some output (to identify if the signal was emitted). For some time we

Re: [Interest] [Semi OT] Concurrent (multi-threaded) read/write disk IO?

2015-02-05 Thread Rainer Wiesenfarth
From: Till Oliver Knoll Am 05.02.2015 um 14:25 schrieb Till Oliver Knoll: ... Does it make sense to guarantee/enforce sequential (exclusive) access to the harddisk on application level, or would I re-invent functionality already present in the underlying OS/disk driver (and maybe

Re: [Interest] [Semi OT] Concurrent (multi-threaded) read/write disk IO?

2015-02-05 Thread Till Oliver Knoll
Am 05.02.2015 um 14:44 schrieb Keith Gardner kreios4...@gmail.com: Thanks for the quick reply! ... Specifically I have the following scenario in mind: batch image conversion. ... Have you looked at ThreadWeaver

Re: [Interest] Qt 5 Creator (Mac) Debugger should use the system python executable

2015-02-05 Thread René J . V . Bertin
On Thursday February 05 2015 20:57:53 André Pönitz wrote: Hi André I haven't looked at the Creator code for a while, but doesn't it launch Python with a .py file? Not anymore. Ok, from what version if I may ask? Invoking sys.executable inside LLDB does not reliably produce a Python

[Interest] Qml Compiler fails

2015-02-05 Thread Jason H
I added StyledTextField.qml to my qml.qrc, when I compile now it says: qtquickcompiler_loader.o: In function `QtQuickCompilerGeneratedModule::__StyledTextField_qml::createCompilationUnit()':

[Interest] hi-res drawing on Windows

2015-02-05 Thread John Weeks
Is there a comprehensive overview of drawing for monitors at various resolutions on Windows? I am trying to get our application to work correctly on a hi-res monitor on Windows. In particular, I have a QToolButton-derived class that makes a button that is just the icon, with no visible frame.

[Interest] What is Qt.red for in QML?

2015-02-05 Thread Jason H
Rectangle { ... color: red // works color: Qt.red // does not work Unable to assign int to QColor } Why? What is Qt.red for then? Thanks ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] What is Qt.red for in QML?

2015-02-05 Thread Jérôme Godbout
you can use the string version color: 'red' or rgba value color: Qt.rgba(1,0,0,1) On Feb 5, 2015, at 6:07 PM, Jason H jh...@gmx.com wrote: Rectangle { ... color: red // works color: Qt.red // does not work Unable to assign int to QColor } Why? What is Qt.red for then? Thanks

Re: [Interest] hi-res drawing on Windows

2015-02-05 Thread Jason H
I don't know why that variable exists. It's useless as far as I can tell. Maybe it means that you are being scaled? I use Screen.pixelDensity. Which varies as you think it should, but is spec'd in px per mm, not DPI. That pixelRatio is either 1 or 0, I don't think it is ever in between. In

Re: [Interest] hi-res drawing on Windows

2015-02-05 Thread John Weeks
On Feb 5, 2015, at 3:03 PM, Jason H jh...@gmx.com wrote: int That pixelRatio is either 1 or 0, I don't think it is ever in between. Well, during development of my button class, when I had bugs :) I saw QPixmap return devicePixelRatio between 1.0 and 2.0. Maybe that's just QPixmap, though.

[Interest] Custom QQuickItem with Mouse area

2015-02-05 Thread Jérôme Godbout
Hi, I'm trying to create a custom QItem by enabling flag ItemHasContent to true and defining the updatePaintNode() function. It work well and it's fast even for large number of item, 2d points to create a shape. But the mouse area for those draw item are the whole bounding rectangle containing

Re: [Interest] Flat Light Style How?

2015-02-05 Thread Jason H
The Qt Quick Enterprise Controls Styles module allows custom styling for Qt Quick Enterprise Controls. I want standard controls to be styled too... I thought that it would style all controls, not just the enterprise ones as seen in https://www.youtube.com/watch?v=wMs1pSZMnG0 about 2:00 in. The

[Interest] Flat Light Style How?

2015-02-05 Thread Jason H
I have a commercial license and I can not find any info on how to use Flat Light style. Can someone clue me in? Thanks! ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Flat Light Style How?

2015-02-05 Thread Agocs Laszlo
Hi, See http://doc.qt.io/QtQuickEnterpriseControls/qtquickenterprisecontrolsstyles-index.html regarding switching styles. Cheers, Laszlo From: interest-bounces+laszlo.agocs=theqtcompany@qt-project.org

Re: [Interest] double-buffering, quality drop

2015-02-05 Thread Reinhardt Behm
On Thursday 05 February 2015 10:30:04 Alexander Semke wrote: Am Mittwoch, 4. Februar 2015, 11:22:15 schrieben Sie: not sure how the graphicsitem comes into all of this, but no you cant draw on it. Well, we use QGraphicsScene/View with QGraphicsItems. you can draw on a QGraphicsWidget

Re: [Interest] Installing on a headless server

2015-02-05 Thread Thiago Macieira
On Thursday 05 February 2015 21:04:34 Jason H wrote: I need to install Qt (Enterprise) on a headless server (CentOS) (I use -platform minimal) . There is only the GUI installer. How can I get Qt installed on the server so I can generate reports? --OR-- How can I build my package for

Re: [Interest] What is Qt.red for in QML?

2015-02-05 Thread Ian Monroe
On Thu, Feb 5, 2015 at 3:33 PM, Jérôme Godbout jer...@bodycad.com wrote: you can use the string version color: 'red' or rgba value color: Qt.rgba(1,0,0,1) Doesn't answer Jason's question, I assume it is some historical oddity. ___ Interest mailing

Re: [Interest] What is Qt.red for in QML?

2015-02-05 Thread Jérôme Godbout
Sorry read too fast the original post, try to print it, if the int is 0, I would guess it's an indexer for rgba values of some sort. May be wrong on this not near my computer to test On Feb 5, 2015, at 8:29 PM, Ian Monroe i...@monroe.nu wrote: On Thu, Feb 5, 2015 at 3:33 PM, Jérôme

[Interest] onGestureStarted we can grab(), what about release?

2015-02-05 Thread Nuno Santos
Hi, I’m being faced with a situation where a custom knob is layed out inside nested flickables. My custom knob touch handling is made with a MultiPointTouchArea to allow multiple knob interactions. To avoid the gesture being grabbed by the flickables where is layed into, I call

Re: [Interest] Flat Light Style How?

2015-02-05 Thread Jason H
Oh thanks! So immedautely, I notice issues. Any control that has text (TextField, Button) is not properly accounting for a specified pointSize. How do I inherit from a flat style for a button? Sent: Thursday, February 05, 2015 at 12:11 PM From: Agocs Laszlo laszlo.ag...@theqtcompany.com

Re: [Interest] Additional output from QtCore

2015-02-05 Thread Thiago Macieira
On Thursday 05 February 2015 16:22:40 Valery Kotov wrote: Greetings everybody! I'm looking for a piece of advice. Let me describe the problem. We have QTimer which emits a signal each N seconds. The timer has queued connection between timeout signal and sltTimeout slot. The slot has some

[Interest] Installing on a headless server

2015-02-05 Thread Jason H
I need to install Qt (Enterprise) on a headless server (CentOS) (I use -platform minimal) . There is only the GUI installer. How can I get Qt installed on the server so I can generate reports? --OR-- How can I build my package for distribution (incl deps) to the headless server?

Re: [Interest] Qt 5 Creator (Mac) Debugger should use the system python executable

2015-02-05 Thread André Pönitz
On Thu, Feb 05, 2015 at 02:42:05AM +0100, René J.V. Bertin wrote: On Wednesday February 04 2015 23:44:25 André Pönitz wrote: Hi, The solution is to start LLDB, and use the Python it links to implicitly by using the LLDB 'script' command, instead of hoping that the system Python is the

Re: [Interest] Wrong app name on android

2015-02-05 Thread Jason H
Yes. I checked the application android:label=NameHere and it is correct. But I still get project as the application label in the phone's (launcher/home screen/app list). When I say it does not match I mean to say that label=NameHere does not match what is in the phone. Thanks. Sent:

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] Wrong app name on android

2015-02-05 Thread Robert Iakobashvili
On Thu, Feb 5, 2015 at 10:14 PM, Jason H jh...@gmx.com wrote: Yes. I checked the application android:label=NameHere and it is correct. But I still get project as the application label in the phone's (launcher/home screen/app list). When I say it does not match I mean to say that

Re: [Interest] Wrong app name on android

2015-02-05 Thread Harri Pasanen
Hmm... I seem to have android:label attribute both for application and activity It may well be the latter that is shown under the icon. On 05/02/2015 21:14, Jason H wrote: Yes. I checked the application android:label=NameHere and it is correct. But I still get project as the application

Re: [Interest] Qt 5 Creator (Mac) Debugger should use the system python executable

2015-02-05 Thread André Pönitz
On Thu, Feb 05, 2015 at 10:33:09AM +0100, René J.V. Bertin wrote: On Thursday February 05 2015 08:22:09 Harri Pasanen wrote: llbd script run our script but that doesn't strike me as very elegant either. If it is a long running script, it seems quite elegant to me, as I solves the