Re: [Interest] Unexpected problems with Qt 5.4.1 & upgrade to Xcode 7.1

2015-10-26 Thread Nuno Santos via Interest
I’m officially an idiot... I had a tight timer, running on a time critical priority thread, sucking all my resources and it would take much longer to load everything. Everything running smoothly! :) Sorry for wasting your time. Regards Nuno > On 26/10/2015, at 23:39, Nuno Santos wrote: >

Re: [Interest] Unexpected problems with Qt 5.4.1 & upgrade to Xcode 7.1

2015-10-26 Thread Nuno Santos via Interest
After a couple of hours around this issue I have found the following: - Everything loads after all, however it takes a LOT of time! Like 100x more - It also happens with Qt 5.5.1 - The only change Xcode and its tools Is there any change of the new Apple tools are making qml code run a LOT slower?

[Interest] iOS linking problem

2015-10-26 Thread Francesco Lamonica via Interest
Hi all, i have built a simple library statically with Qtcreator 3.5.1 (Qt 5.5.1) on a mac running os X 10.10.5. I did this with Xcode 7.0 /7.1 and then downgraded to 6.4.1 but the problem is the same. I can compile the library but then the sample app to test it fails at linking time with the foll

Re: [Interest] Include separate libraries with inlines in the Qt installers

2015-10-26 Thread Thiago Macieira via Interest
On Monday 26 October 2015 14:22:08 Matthew Woehlke via Interest wrote: > This was already discussed¹ (and generally poorly received as I > understood that thread). > > (¹ http://permalink.gmane.org/gmane.comp.lib.qt.devel/23572) The message from Dimitar was held in moderation for the interest mai

Re: [Interest] [Development] Qt static compiler error

2015-10-26 Thread Thiago Macieira via Interest
On Monday 26 October 2015 14:37:05 Matthew Woehlke via Interest wrote: > > The .pc file has it in the right variable: > > > > > > Libs: -L${libdir} -lQt5Core > > Libs.private: -lpthread -lz -licui18n -licuuc -licudata -lpcre16 -lm -ldl > > - > > lgthread-2.0 -pthread -lglib-2.0 -lrt -lsystemd >

[Interest] Unexpected problems with Qt 5.4.1 & upgrade to Xcode 7.1

2015-10-26 Thread Nuno Santos via Interest
Hi, Today I have upgraded to Xcode 7.1 but still using Qt 5.4.1 For my surprise, my apps stopped working. My apps base point is a qml subclass of Window, which has common stuff I use like style loading, font loading, splash loading and main qml loading. After a bit of debugging I have found t

Re: [Interest] [Development] Qt static compiler error

2015-10-26 Thread Tim Blechmann via Interest
>>> Qt statically build program is fail. >>> >>> libQt5Core.a depend on libpcre16 >>> >>> libQt5Gui.a depend on -lopengl32, -lglu32 >>> >>> What do I? >> >> You link to those libraries. >> >>> ../ThirdLibary/windows_mingw_static/qt/lib/libQt5Core.a(qregularexpression.o >>> ):qregularexpression.cpp:

Re: [Interest] [Development] Qt static compiler error

2015-10-26 Thread Matthew Woehlke via Interest
On 2015-10-26 13:13, Thiago Macieira via Interest wrote: > On Monday 26 October 2015 11:58:14 Matthew Woehlke wrote: >> Shouldn't Qt5Config.cmake provide those interface libraries for static >> Qt libraries? It seems to me it should, and since Qt is shipping its >> Qt5Config.cmake these days, that

Re: [Interest] Include separate libraries with inlines in the Qt installers

2015-10-26 Thread Matthew Woehlke via Interest
On 2015-10-16 10:04, Dimitar Dobrev wrote: > Hello all, > I would like to ask your opinion about [QTBUG-48668] Include separate > libraries with inlines in the Qt installers - Qt Bug Tracker .I could > also use some guidelines in case I can help contribute such a feature. > Dimita

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Edward Sutton via Interest
You can add image resources to a QTextDocument. QTextDocument textDocument; textDocument.setPageSize(QSizeF(m_pageWidth, m_pageHeight)); QString htmlImageClient; QImage imageClient(this->m_model->jobInformation()->clientInfo.logoImagePath); if(false == imageClient.isNul

Re: [Interest] qSwap or std::swap?

2015-10-26 Thread John Weeks via Interest
Thank you, Konstantin and Thiago. > Don't worry. ADL is one of the most complex and obscure corners of C++. It's > several pages long in the standard, all started from an innocent-looking > idea, > "wouldn't it be nice if f(x) called N::f(N::X)?". > > I think it's only less complex than overlo

Re: [Interest] [Development] Qt static compiler error

2015-10-26 Thread Thiago Macieira via Interest
On Monday 26 October 2015 11:58:14 Matthew Woehlke wrote: > Shouldn't Qt5Config.cmake provide those interface libraries for static > Qt libraries? It seems to me it should, and since Qt is shipping its > Qt5Config.cmake these days, that would imply that the problem can/should > be fixed in Qt itsel

Re: [Interest] qSwap or std::swap?

2015-10-26 Thread Thiago Macieira via Interest
On Monday 26 October 2015 08:48:55 John Weeks wrote: > > Both are correct, since one is implemented in terms of the other. That > > means they MUST expand to exactly the same assembly (and they do, I've > > just tested). > > > > If you're seeing something different, the problem is probably your co

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Duane
On 26/10/2015 11:48 AM, Jason H wrote: Thanks for the reply. We're using QWT to do the charts. I can save a chart to pdf. what I need is to make a report containing a chart among other things and save that as a PDF file. Qwt has QwtRenderer which is designed for this kind of usecase. You wo

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Duane
On 26/10/2015 11:47 AM, André Somers wrote: Op 26-10-2015 om 16:45 schreef Duane: Hi André. I know about QwtRenderer. What do you use to create your report if not QTextDocument? I wrote a custom reporting subsystem based on QML templates, not based on QTextDocument for our application. That

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Jason H
> >> I don't think 4.8 has the ability to paint images in a document. It > >> looks like Qt5 would make a lot of this simpler. > > > > If you read http://doc.qt.io/qt-4.8/richtext-html-subset.html You'll see it > > supports the tag. > > > > Yes but img requires a file name. I'd have to create

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Duane
On 26/10/2015 12:07 PM, Jason H wrote: I don't think 4.8 has the ability to paint images in a document. It looks like Qt5 would make a lot of this simpler. If you read http://doc.qt.io/qt-4.8/richtext-html-subset.html You'll see it supports the tag. Yes but img requires a file name. I

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Jason H
> > I don't think 4.8 has the ability to paint images in a document. It > looks like Qt5 would make a lot of this simpler. If you read http://doc.qt.io/qt-4.8/richtext-html-subset.html You'll see it supports the tag. ___ Interest mailing list Inter

Re: [Interest] [Development] Qt static compiler error

2015-10-26 Thread Matthew Woehlke
On 2015-10-26 11:31, Thiago Macieira wrote: > On Monday 26 October 2015 15:57:30 kl222 wrote: >> Hi all: >> >> Qt statically build program is fail. >> >> libQt5Core.a depend on libpcre16 >> >> libQt5Gui.a depend on -lopengl32, -lglu32 >> >> What do I? > > You link to those libraries. > >> ../Thir

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Duane
On 26/10/2015 11:36 AM, Jason H wrote: From: Duane On 26/10/2015 11:04 AM, Michael Sué wrote: Hi, Maybe you can use QPrinter using a QPainter: QPrinter printer; printer.setOutputFileName("file.pdf"); QPainter painter(&printer); //paint the widget of your text document I was just looki

Re: [Interest] qSwap or std::swap?

2015-10-26 Thread Konstantin Tokarev
26.10.2015, 18:49, "John Weeks" : >>  Both are correct, since one is implemented in terms of the other. That means >>  they MUST expand to exactly the same assembly (and they do, I've just >> tested). >> >>  If you're seeing something different, the problem is probably your code. And >>  that's

Re: [Interest] qSwap or std::swap?

2015-10-26 Thread John Weeks
> Both are correct, since one is implemented in terms of the other. That means > they MUST expand to exactly the same assembly (and they do, I've just tested). > > If you're seeing something different, the problem is probably your code. And > that's why Marc is recommending qSwap: because people

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread André Somers
Op 26-10-2015 om 16:45 schreef Duane: Hi André. I know about QwtRenderer. What do you use to create your report if not QTextDocument? I wrote a custom reporting subsystem based on QML templates, not based on QTextDocument for our application. That is the context we use it in. André __

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Jason H
> >> Thanks for the reply. We're using QWT to do the charts. I can save a > >> chart to pdf. what I need is to make a report containing a chart among > >> other things and save that as a PDF file. > > Qwt has QwtRenderer which is designed for this kind of usecase. You > > would render the chart

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Duane
On 26/10/2015 11:31 AM, André Somers wrote: Op 26-10-2015 om 14:09 schreef Duane: On 23/10/2015 7:40 PM, Sze Howe Koh wrote: On 24 October 2015 at 00:21, Duane wrote: I need to create a document as a pdf file for my application. I can use QTextDocument and html to do most of the document but

Re: [Interest] Qt Android app crashing on Android 6.0 -

2015-10-26 Thread Robert Iakobashvili
On Mon, Oct 26, 2015 at 4:35 PM, Turunen Tuukka wrote: > > >> -Original Message- >> From: Robert Iakobashvili [mailto:corobe...@gmail.com] >> Sent: maanantaina 26. lokakuuta 2015 16.20 >> To: Turunen Tuukka ; interest@qt- >> project.org >> Subject: Re: [Interest] Qt Android app crashing on

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Jason H
> From: Duane > > On 26/10/2015 11:04 AM, Michael Sué wrote: > > Hi, > > > > Maybe you can use QPrinter using a QPainter: > > > > QPrinter printer; > > printer.setOutputFileName("file.pdf"); > > QPainter painter(&printer); > > > > //paint the widget of your text document > > > > > I was just lo

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread André Somers
Op 26-10-2015 om 14:09 schreef Duane: On 23/10/2015 7:40 PM, Sze Howe Koh wrote: On 24 October 2015 at 00:21, Duane wrote: I need to create a document as a pdf file for my application. I can use QTextDocument and html to do most of the document but I need to add a chart to it. I'm using Qt 4

Re: [Interest] [Development] Qt static compiler error

2015-10-26 Thread Thiago Macieira
On Monday 26 October 2015 15:57:30 kl222 wrote: > Hi all: > > Qt statically build program is fail. > > libQt5Core.a depend on libpcre16 > > libQt5Gui.a depend on -lopengl32, -lglu32 > > What do I? You link to those libraries. > ../ThirdLibary/windows_mingw_static/qt/lib/libQt5Core.a(qregulare

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Duane
On 26/10/2015 11:04 AM, Michael Sué wrote: Hi, Maybe you can use QPrinter using a QPainter: QPrinter printer; printer.setOutputFileName("file.pdf"); QPainter painter(&printer); //paint the widget of your text document I was just looking at that. I think this would work but I'd have to ma

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Jason H
There is always a way. Alternatives: 1. Distribute a Qt 5.0 static (or dynamically linked) binary for printing. 2. Use QPrinter to print the report, requiring the user to have a PDF print driver installed. You can select this printer in Qt, so once set there is no need to bring up the QPrintDia

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Michael Sué
Hi, Maybe you can use QPrinter using a QPainter: QPrinter printer; printer.setOutputFileName("file.pdf"); QPainter painter(&printer); //paint the widget of your text document - Michael. ___ Interest mailing list Interest@qt-project.org http://lists

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Duane
On 26/10/2015 10:24 AM, Jason H wrote: The basic fall-back for this is to render the chart as an image. I render PDFs with Qt, but I came up with my own framework. Basically, I using QPdfWriter it is possible to treat it as a widget, and have it lay itself out on the page too! So what I so is

Re: [Interest] Qt Android app crashing on Android 6.0 -

2015-10-26 Thread Turunen Tuukka
> -Original Message- > From: Robert Iakobashvili [mailto:corobe...@gmail.com] > Sent: maanantaina 26. lokakuuta 2015 16.20 > To: Turunen Tuukka ; interest@qt- > project.org > Subject: Re: [Interest] Qt Android app crashing on Android 6.0 - > > On Mon, Oct 26, 2015 at 3:29 PM, Turunen Tuu

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Jason H
The basic fall-back for this is to render the chart as an image. I render PDFs with Qt, but I came up with my own framework. Basically, I using QPdfWriter it is possible to treat it as a widget, and have it lay itself out on the page too! So what I so is I have several QWidget-derived classes th

Re: [Interest] Qt Android app crashing on Android 6.0 -

2015-10-26 Thread Robert Iakobashvili
On Mon, Oct 26, 2015 at 3:29 PM, Turunen Tuukka wrote: > > Hi, > > When we have been running Android 6 and itse development versions we have not > experienced such crashes. The crash you sent is in libcrypto.so though, which > is not part of the Android NDK, so if you're using the system version

Re: [Interest] Qt Android app crashing on Android 6.0 -

2015-10-26 Thread Nuno Santos
Tuuka, I didn’t knew that. I will try it. Thanks for your reply. Regards, Nuno > On 26/10/2015, at 13:29, Turunen Tuukka > wrote: > > > Hi, > > When we have been running Android 6 and itse development versions we have not > experienced such crashes. The crash you sent is in libcrypto.s

Re: [Interest] Qt Android app crashing on Android 6.0 -

2015-10-26 Thread Turunen Tuukka
Hi, When we have been running Android 6 and itse development versions we have not experienced such crashes. The crash you sent is in libcrypto.so though, which is not part of the Android NDK, so if you're using the system version, you're a bit on your own. As we've said in our documentation, y

Re: [Interest] Creating pdf with QTextDocument with chart

2015-10-26 Thread Duane
On 23/10/2015 7:40 PM, Sze Howe Koh wrote: > On 24 October 2015 at 00:21, Duane wrote: >> I need to create a document as a pdf file for my application. I can use >> QTextDocument and html to do most of the document but I need to add a >> chart to it. >> >> I'm using Qt 4.8. Any suggestions? > >

Re: [Interest] Draw multiple rectangles in a QGraphicsItem using the mouse

2015-10-26 Thread David Carmona
Ok, I'm going to try and tell you. David Le 26 oct. 2015 13:59, "Michael Sué" a écrit : > Hi David, > > > However, I have some problems when I actually want to draw rectangles > with negatives width and height. I mean when the values of origPoint.x() and > > origPoint.y() are strictly higher tha

Re: [Interest] Draw multiple rectangles in a QGraphicsItem using the mouse

2015-10-26 Thread Michael Sué
Hi David, > However, I have some problems when I actually want to draw rectangles with > negatives width and height. I mean when the values of origPoint.x() and > origPoint.y() are strictly higher than scenePos().x() and scenePos().y() > respectively. You will have to normalize the rectangle c

Re: [Interest] QML type checking quirk

2015-10-26 Thread Daniel França
My guess is that the error message comes in a much earlier step in compilation, in a static analysis when parsing QML. When there's an expression it can't do this kind of check in compile time and then the javascript implicit conversion works as a charm and your code works. Em dom, 25 de out de 20

Re: [Interest] Linguist does not show several input field for strings with plural numbers

2015-10-26 Thread Dmitry Volosnykh
Well, as far as I can see the problem is on the lupdate side. It just does not add numerus="yes" attribute. Thus, Linguist does not interpret this message as the one with plural form. On Mon, Oct 26, 2015 at 1:32 PM, Dmitry Volosnykh < dmitry.volosn...@gmail.com> wrote: > I face the same problem

Re: [Interest] Linguist does not show several input field for strings with plural numbers

2015-10-26 Thread Dmitry Volosnykh
I face the same problem with Internationalization QML-example ( http://doc.qt.io/qt-5/qtqml-qml-i18n-example.html). I've just replaces qsTr("Hello") with qsTr("%n second(s)"). But still cannot see Linguist providing multiple input fields for a number of translations. Also tried Linguist 5.6.0 buil

[Interest] Linguist does not show several input field for strings with plural numbers

2015-10-26 Thread Dmitry Volosnykh
I have several strings defined in .qml file and marked with QT_TR_NOOP. The placeholder I use is %n like the docs suggest. After running lupdate tool on the project file I open generated .ts files in Linguist which does not recognize them as ones which should be translated according to translation

Re: [Interest] Draw multiple rectangles in a QGraphicsItem using the mouse

2015-10-26 Thread David Carmona
Hi Michael, I implemented your method and it works pretty well. Thank you so much for your help. This is the code (ImageGraphicsSceneW subclasses ImageGraphicsScene). void ImageGraphicsSceneW::mousePressEvent(QGraphicsSceneMouseEvent *event) { origPoint=event->scenePos(); qDebug()<<"orig

[Interest] Qt Android app crashing on Android 6.0 -

2015-10-26 Thread Nuno Santos
Hi, My users are reporting crashes on Android 6.0 when trying to start the app. Below is what I got from Google Developer Console. Does anyone know what is happening here? Is anyone having the same problem? What can I do to address this? Thanks in advance, Regards, Nuno *** *** *** *** ***

Re: [Interest] -u and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

2015-10-26 Thread Nuno Santos
Will try! Thx Regards, Nuno > On 26 Oct 2015, at 00:30, Robert Iakobashvili wrote: > > Hi, > > 1. Option 1. > > Open the project generated by qmake by Xcode. > > In Build Settings change ENABLE_BITCODE from YES to NO; > > Now Build or Rebuild it in QCreator. > > > 2. Option 2. > > Upgra

[Interest] Qt 5.5.1 QPainter 30% slower than Qt 5.5.0 ?

2015-10-26 Thread Bernd Müller
Hi, after switching from Qt 5.5.0 with Qt Creator 3.4.2 to Qt 5.5.1 with Qt Creator 3.5.1 (both MSVC2013 64bit) the graphic animations of the same Qt Windows 7 64bit desktop application are running 30% slower. The animation is drawing in a QWidget via QPainter and QFont. Is this a graphics car

[Interest] Permanent offset of QWinWidget with respect to parent window (CView)‏

2015-10-26 Thread Volker Enderlein
Hi, we are using QWinMigrate to extend our MFC based Application with some Qt Widgets that are shown inside of a CView by means of QWinWidget. When updating from Qt4 to Qt5 (5.5.0) we experienced a permanent offset of the QWinWidget. Inserting a widget->move(0, 0) fixed the problem but I'd rat

[Interest] Qt 5.5.1 30% slower than Qt 5.5.1

2015-10-26 Thread Bernd Müller
Hi there, after further testing I'm not sure if its only an graphic issue. Because a basic QWidget / QPainter test application did not show any slow down with Qt 5.5.1. So it might be a deeper issue. All I can say is that my application runs 30% slower with QT 5.5.1 than with Qt 5.5.0. So

[Interest] How to achieve qt application as a part of eclipse perspective?

2015-10-26 Thread Mrugesh Sabalpara
Hello, I have some questions. 1) I have my qt application and I want to add it to eclipse as a perspective. I searched and found I need to write JNI to communicate. But not very much clear? 2) Can QX11Embedcontainer helps here? And what are the alternatives for it in Qt5.X? 3) Is ther

[Interest] Include separate libraries with inlines in the Qt installers

2015-10-26 Thread Dimitar Dobrev
Hello all,     I would like to ask your opinion about [QTBUG-48668] Include separate libraries with inlines in the Qt installers - Qt Bug Tracker .    I could also use some guidelines in case I can help contribute such a feature.     Dimitar Dobrev

Re: [Interest] qSwap or std::swap?

2015-10-26 Thread Philippe
You are right. I also just verified that: qSwap(str1, str2) and swap(str1, str2) produce both the same code. while std::swap(str1, str2) is different and produce far more assembly code. As you say, this is a big gotcha, and using the qSwap is more obvious. Therefore you should consider removing