Re: [Interest] QTextStream, QIODevice::Text and line endings convertation

2015-11-17 Thread Igor Mironchik
11/18/2015 12:58 AM, Thiago Macieira пишет: On Tuesday 17 November 2015 23:46:49 Igor Mironchik wrote: QString data = QLatin1String( "/*** Program Name ***/\r\n" "TEST PROGRAM TEST_00;\r\n" "BEGIN\r\n" "LOGIC\r\n" "NAME :\r" "ACTUAL_NAME\

[Interest] [qt-Android] MediaPlayer freeze UI when playing a remote video

2015-11-17 Thread Liang Jian
When network is not good, MediaPlayer will freeze UI when playing a remote video under android. After I set a video url to MediaPlayer, it seems that it will fetch meta-data of the video first, and if the network is not good, it will freeze UI for a very long time. A very similar problem wh

Re: [Interest] Examples with "excludeAreas" of module qt-location available?

2015-11-17 Thread Aaron McCarthy
Hi, On Tue, 17 Nov 2015 12:19:04 Jan Krause wrote: > > On Tue, 17 Nov 2015 08:36:27 Jan Krause wrote: > >> are there examples for using the property excludeAreas > >> (http://doc.qt.io/qt-5/qml-qtlocation-routequery.html#excludedAreas-prop) > >> of a RouteQuery available . It seems that this featu

[Interest] QWebEngine::back() not working

2015-11-17 Thread Mike Jackson
We are coding up a Qt 5.4.2 application (also tested with Qt 5.5.1) and we are using a QWebEngineView. generally the web view works just great. We are able to load our documentation into it and view it fine. As a convenience to our users we added the traditional “Forward” and “Back” buttons to t

[Interest] Handle frames and web forms with QWebEngine

2015-11-17 Thread NoRulez
Hi, What is the preferred way to handle web forms (iterate over it like QWebCollection does in QWebKit), search for frames by name and get notified when a frame is created? (Was a signal in QWebKit) Best Regards ___ Interest mailing list Interest@qt-

Re: [Interest] QTextStream, QIODevice::Text and line endings convertation

2015-11-17 Thread Thiago Macieira
On Tuesday 17 November 2015 23:46:49 Igor Mironchik wrote: > QString data = QLatin1String( "/*** Program Name ***/\r\n" > "TEST PROGRAM TEST_00;\r\n" > "BEGIN\r\n" > "LOGIC\r\n" > "NAME :\r" > "ACTUAL_NAME\r\n" > "OPTION ENABLE : " ); > An

Re: [Interest] QTextStream, QIODevice::Text and line endings convertation

2015-11-17 Thread Thiago Macieira
On Tuesday 17 November 2015 23:46:49 Igor Mironchik wrote: > And output is: > > "/*** Program Name ***/" > > "TEST PROGRAM TEST_00;" > > "BEGIN" > > "LOGIC" > > "NAME :ACTUAL_NAME" > > "OPTION ENABLE : " > > > Look here "NAME :ACTUAL_NAME" '\r' wasn't converted to '\n'... I don't see \n in

Re: [Interest] Changes in Qt 5.6 on Windows HiDPI

2015-11-17 Thread Pavlo Dyachenko
I believe the problem is with QT incorrectly determining scaling ratios for each monitor on Windows. When I briefly looked at the code, from what I remember anyway, it seemed it used physical pixel density to calculate the ratio. What it should use is Window's logical DPI for each monitor. Can b

Re: [Interest] Animating a gradient

2015-11-17 Thread Gianluca
Hello Jason, why you don’t simple use property binding ? GradientStop { id: gs2; position: gs1.position+0.1; color: "dodgerblue" } and remove completely onPositionChanged Ciao, Gianluca. Il giorno 17/nov/2015, alle ore 20:39, Jason H ha scritto: > I want to animate a gradient, but onPosition

Re: [Interest] QTextStream, QIODevice::Text and line endings convertation

2015-11-17 Thread Igor Mironchik
Hi, Here is modified source: #include #include #include #include static const QChar c_n = QLatin1Char( '\n' ); QString readWord( QTextStream & stream ) { QChar ch; QString res; while( !stream.atEnd() ) { stream >> ch; if( ch == c_n ) break;

[Interest] Animating a gradient

2015-11-17 Thread Jason H
I want to animate a gradient, but onPositionChanged gives an error, even though I can animate it. What am I doing wrong? Item { property alias color: container.color Component.onCompleted: anim.start() Rectangle { id: container width: paren

Re: [Interest] QTextStream, QIODevice::Text and line endings convertation

2015-11-17 Thread Thiago Macieira
On Tuesday 17 November 2015 23:17:14 Igor Mironchik wrote: > Line endings doesn't convert to \n as should be. On Windows with MSVC > 2013 if read that data from file then "NAME :\r" even doesn't recognize > as line ending at all... Line ending conversion only applies when read from a QIODevice. It

[Interest] QTextStream, QIODevice::Text and line endings convertation

2015-11-17 Thread Igor Mironchik
Hi, In the following example: #include #include #include static const QChar c_n = QLatin1Char( '\n' ); QString readWord( QTextStream & stream ) { QChar ch; QString res; while( !stream.atEnd() ) { stream >> ch; if( ch == c_n ) break; e

Re: [Interest] subclassed QTimer

2015-11-17 Thread Thiago Macieira
On Tuesday 17 November 2015 16:54:41 Daniel França wrote: > If the QTimer works in a different way than QML Timer type. > The QML Timer syncs with the animation timer, this is synced with the > screen refresh: > http://stackoverflow.com/questions/22752201/qml-timer-not-triggered-in-the-r > ight-int

[Interest] Very pixalated rendering when using non-integer as a device scale factor with QGraphicsOpacityEffect applied.

2015-11-17 Thread Pavlo Dyachenko
Hi, it seems that when screen scale ratio is non integer and opacity is applied the whole widget looks very pixalated. Example:qputenv("QT_SCALE_FACTOR", QByteArray("1.5")); QWidget mainWindget; QLabel label(&mainWindget); label.setText("Sample Test"); label.setGraphicsEffect(new QGraphicsOpacityE

Re: [Interest] QML solution for fitting text?

2015-11-17 Thread Nurmi J-P
> On 17 Nov 2015, at 19:32, Jason H wrote: > > I want to fit text into a rectangle, but dynamically size the text like > scaling an image: > Rectangle { > width: // some with > width: // some height > Text { text: "Hello World"; anchors.fill: parent; font.pixelSize: > ??? } > } See Text::font

[Interest] QML solution for fitting text?

2015-11-17 Thread Jason H
I want to fit text into a rectangle, but dynamically size the text like scaling an image: Rectangle { width: // some with width: // some height Text { text: "Hello World"; anchors.fill: parent; font.pixelSize: ??? } } In the old QWidget days, I'd use QFontMetrics to figure out what size would fi

Re: [Interest] QuickModel - ORM for QML

2015-11-17 Thread Ben Lau
Hi Daniel, Your project is interesting. Good Job. By the way, will you be interested to publish it on qpm.io ? On 16 November 2015 at 06:35, Daniel França wrote: > Hi guys, > I've developed an ORM library for QML. > > The main intention was to use it for some of my projects, but as I've seen >

Re: [Interest] subclassed QTimer

2015-11-17 Thread Daniel França
If the QTimer works in a different way than QML Timer type. The QML Timer syncs with the animation timer, this is synced with the screen refresh: http://stackoverflow.com/questions/22752201/qml-timer-not-triggered-in-the-right-interval You can see other people with similar problems and the same fi

Re: [Interest] StackView weirdness

2015-11-17 Thread Jason H
There was a scenario where the window disappeared after a short time, which was very weird. > Sent: Tuesday, November 17, 2015 at 9:48 AM > From: "Gian Maxera" > To: "Jason H" > Cc: Interest@qt-project.org > Subject: Re: [Interest] StackView weirdness > > Sorry, I don’t get it. > What do you m

Re: [Interest] subclassed QTimer

2015-11-17 Thread Thiago Macieira
On Tuesday 17 November 2015 17:01:40 René J. V. Bertin wrote: > Thiago Macieira wrote: > > Please don't set it to PreciseTimer unless you really need millisecond > > resolution or better (if the 5% error is not acceptable). > > Question: does setting the type of a single timer affect all timers, i

Re: [Interest] subclassed QTimer

2015-11-17 Thread Thiago Macieira
On Tuesday 17 November 2015 16:07:24 Daniel França wrote: > Without precise, at least in OSX, the timer simply doesn't get trigger > while in background I seriously doubt it. Both the Unix and Cocoa event dispatchers use QTimerInfoList, which simply calculates the timeout of the next timer that

Re: [Interest] subclassed QTimer

2015-11-17 Thread Daniel França
Without precise, at least in OSX, the timer simply doesn't get trigger while in background On Tue, 3 Nov 2015 at 15:35, Thiago Macieira wrote: > On Tuesday 03 November 2015 13:24:38 Daniel França wrote: > > If still don't work with the Q_OBJECT macro, maybe trying with > setTimerType > > (Qt::Pr

Re: [Interest] subclassed QTimer

2015-11-17 Thread René J . V . Bertin
Thiago Macieira wrote: > Please don't set it to PreciseTimer unless you really need millisecond > resolution or better (if the 5% error is not acceptable). Question: does setting the type of a single timer affect all timers, i.e. does the overhead of configuring a single (or a handful of) timers

Re: [Interest] StackView weirdness

2015-11-17 Thread Gian Maxera
Sorry, I don’t get it. What do you mean ? > On 17 Nov 2015, at 14:39, Jason H wrote: > > Doh, thanks! > > With that, I can't replicate either previous behavior. > >> Sent: Tuesday, November 17, 2015 at 9:38 AM >> From: "Gian Maxera" >> To: "Jason H" >> Cc: Interest@qt-project.org >> Subject

Re: [Interest] StackView weirdness

2015-11-17 Thread Jason H
Doh, thanks! With that, I can't replicate either previous behavior. > Sent: Tuesday, November 17, 2015 at 9:38 AM > From: "Gian Maxera" > To: "Jason H" > Cc: Interest@qt-project.org > Subject: Re: [Interest] StackView weirdness > > Hello Jason, > first thing I’ll try if in your shoes: > - expl

Re: [Interest] StackView weirdness

2015-11-17 Thread Gian Maxera
Hello Jason, first thing I’ll try if in your shoes: - explicity set witdh and height on the stackView. I found weird problems on stack transitions when the width and height are not set explicitly Ciao, Gianluca. > On 17 Nov 2015, at 14:36, Jason H wrote: > > // main.qml -

Re: [Interest] StackView weirdness

2015-11-17 Thread Jason H
// main.qml -: import QtQuick 2.5 import QtQuick.Controls 1.4 ApplicationWindow { visible: true width: 480 height: 720 // comment out StackView to make it work, when doing so, uncomment visible: true for LoginScreen (default visible

Re: [Interest] [qt-5.6 windows] I can't play video using MediaPlayer

2015-11-17 Thread Liang Jian
The video I played is a local file. On Tue, Nov 17, 2015 at 9:24 PM, Nils Jeisecke wrote: > Hi, > > On Tue, Nov 17, 2015 at 2:09 PM, Liang Jian wrote: > > I can't playback video using MediaPlayer, the error message says: > > DirectShowPlayerService::doRender: Unresolved error code 8

Re: [Interest] [qt-5.6 windows] I can't play video using MediaPlayer

2015-11-17 Thread Nils Jeisecke via Interest
Hi, On Tue, Nov 17, 2015 at 2:09 PM, Liang Jian wrote: > I can't playback video using MediaPlayer, the error message says: > DirectShowPlayerService::doRender: Unresolved error code 80040266 just a guess: playback via https using self signed certificates? Nils __

[Interest] [qt-5.6 windows] I can't play video using MediaPlayer

2015-11-17 Thread Liang Jian
I build qt-5.6 from git using the following commands: configure -debug-and-release -platform win32-msvc2013 -opensource -confirm-license -nomake examples -nomake tests -opengl desktop -mp -skip qt3d -skip qtlocation -skip qtwebengine nmake I can't playback video using MediaPlayer, the err

Re: [Interest] Examples with "excludeAreas" of module qt-location available?

2015-11-17 Thread Jan Krause
Hi, Am 17.11.2015 um 09:24 schrieb Aaron McCarthy: Hi, When posting a new question you shouldn't reply to an existing email as it breaks threading. yeah... you are right... my fault... sorry On Tue, 17 Nov 2015 08:36:27 Jan Krause wrote: are there examples for using the property excludeArea

Re: [Interest] QuickModel - ORM for QML

2015-11-17 Thread Daniel França
Hi Jason, For now it's SQLITE (LocalStorage) only, but is a cool feature to add capacity to handle JSON, I'll add it on my TODO list :) Best, Daniel Em seg, 16 de nov de 2015 às 20:42, Jason H escreveu: > Does this work on an array of JSON objects? i.e. to provide models for > ListModel via Aja

Re: [Interest] Examples with "excludeAreas" of module qt-location available?

2015-11-17 Thread Aaron McCarthy
Hi, When posting a new question you shouldn't reply to an existing email as it breaks threading. On Tue, 17 Nov 2015 08:36:27 Jan Krause wrote: > are there examples for using the property excludeAreas > (http://doc.qt.io/qt-5/qml-qtlocation-routequery.html#excludedAreas-prop) of > a RouteQuery a