Re: [Interest] Add another translation?

2016-04-26 Thread ekke
Am 26.04.16 um 22:24 schrieb Jason H: > How I currently support English and Spanish, how do I add another language in > Qt Linguist? it seems that I need to re-run lupdate? I'd love to be able to > to it all by GUI, since I already have working TS files. I should be able to > use them as the tem

Re: [Interest] EGL Error : Could not create the egl surface: error = 0x300b

2016-04-26 Thread Denis Shienkov
Or, maybe your app has wrong linking to *EGL libraries... for example, your target has own *EGL libraries path, which is different than *EGL MESA libraries. Check your ldd. BR, denis 27.04.2016 2:21, Thiago Macieira пишет: On terça-feira, 26 de abril de 2016 18:02:02 PDT Ryan Elkholy wrote

Re: [Interest] EGL Error : Could not create the egl surface: error = 0x300b

2016-04-26 Thread Thiago Macieira
On terça-feira, 26 de abril de 2016 18:02:02 PDT Ryan Elkholy wrote: > Yes, sorry for that. Three questions: > > 1. How did you find that 0x300b was EGL_BAD_NATIVE_WINDOW? a) I searched the source code for the full error message and found that it was printing the return value of eglGetError() b

Re: [Interest] EGL Error : Could not create the egl surface: error = 0x300b

2016-04-26 Thread Ryan Elkholy, PhD, PE
Any ideas for a fix? I see a lot of stuff regarding platform specific fixes, but none for x86-64. On Tue, Apr 26, 2016 at 6:43 PM, Giuseppe D'Angelo wrote: > On Wed, Apr 27, 2016 at 12:02 AM, Ryan Elkholy > wrote: > > 1. How did you find that 0x300b was EGL_BAD_NATIVE_WINDOW? > > grep -i 300b /

Re: [Interest] EGL Error : Could not create the egl surface: error = 0x300b

2016-04-26 Thread Giuseppe D'Angelo
On Wed, Apr 27, 2016 at 12:02 AM, Ryan Elkholy wrote: > 1. How did you find that 0x300b was EGL_BAD_NATIVE_WINDOW? grep -i 300b /usr/include/EGL/egl.h #define EGL_BAD_NATIVE_WINDOW 0x300B Cheers, -- Giuseppe D'Angelo ___ Interest mailing

Re: [Interest] EGL Error : Could not create the egl surface: error = 0x300b

2016-04-26 Thread Ryan Elkholy
Yes, sorry for that. Three questions: 1. How did you find that 0x300b was EGL_BAD_NATIVE_WINDOW? 2. What is this caused by? 3. Given that there is no obvious solution, how can I dig further into debugging this? Thanks > On Apr 26, 2016, at 5:20 PM, Thiago Macieira > wrote: > >> On terça-fe

Re: [Interest] EGL Error : Could not create the egl surface: error = 0x300b

2016-04-26 Thread Thiago Macieira
On terça-feira, 26 de abril de 2016 14:44:45 PDT Ryan Elkholy, PhD, PE wrote: > Hello, > > I am am trying to make a yocto build that includes meta-qt5 without x11 or > wayland on the Minnowboard Turbot (x86-64). I was successful in building my > image but the problem occurred when testing my basic

[Interest] Add another translation?

2016-04-26 Thread Jason H
How I currently support English and Spanish, how do I add another language in Qt Linguist? it seems that I need to re-run lupdate? I'd love to be able to to it all by GUI, since I already have working TS files. I should be able to use them as the template, change the language, then have it wipe

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Jérôme Godbout
We have QWidgets as base window (QMainWindow) that have the QQuickView into it. For the parent, we use the QMainWindow. Maybe this explain why it work well in our case. We have some tools that are still into QWidgets (TreeView mostly with dock window, the Qml TreeView, is somewhat... painful in the

Re: [Interest] [Qt3d] Does the duration of NumberAnimation update when you change its value?

2016-04-26 Thread Oleg Evseev
Hi, Ramy and Sean > Something like this should do it (not tested) Thank you, Sean. Correct it little bit, tested, it works: Entity { id: mainEntity property real progress: 0.0 property real rotationSpeed: -1.0 property real angle: previousAngle + ( progress *

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Sina Dogru
Yes I got your points. At least there is no any bouncing between QML and C++. 2016-04-26 20:11 GMT+03:00 Jérôme Godbout : > We are mostly using QFileDialog and QMessageBox. Note the Qml type but the > one from QtWidgets/QFileDialog > > *Q_INVOKABLE QString getSaveFileName(...); // .h* > > > *QStr

[Interest] EGL Error : Could not create the egl surface: error = 0x300b

2016-04-26 Thread Ryan Elkholy, PhD, PE
Hello, I am am trying to make a yocto build that includes meta-qt5 without x11 or wayland on the Minnowboard Turbot (x86-64). I was successful in building my image but the problem occurred when testing my basic qt app on the image. When trying to run the app using -platform eglfs I get the followi

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Jérôme Godbout
We are mostly using QFileDialog and QMessageBox. Note the Qml type but the one from QtWidgets/QFileDialog *Q_INVOKABLE QString getSaveFileName(...); // .h* *QString MySingletonDialog::getSaveFileName(...) // .cpp* *{* * return QFileDialog::getSaveFileName(...);* *}* here the return error would

[Interest] Example for: QTreeView + QAbstractItemModel + external data

2016-04-26 Thread anton
Hi, I have subclassed QAbstractItemModel, and I want to load additionally data in the model as soon as somebody clicks on the [+] in the treeview to load the children of this item form an external data ( web- app which gives me json data back). Now: I reimplemented hasChildren() in the model b

Re: [Interest] PRO File defines

2016-04-26 Thread Francisco Ares
2016-04-25 21:13 GMT-03:00 Hamish Moffatt : > On 25/04/16 20:58, Francisco Ares wrote: > > > P.S.: by the way, I've been fiddling with some PRO files, and nowadays use > a few tricks, like: > > using one source tree to build different executables, with different > functionality: > > > > op1=$$fin

Re: [Interest] How add libsqlite3.dylib to iOS qmake?

2016-04-26 Thread Jason H
FWIW, Just use Qt to do the SQLite stuff, and provide the functionaltiy in a ObjectiveC .mm file. Example: // ObjectiveC - (BOOL)sendBackgroundChunk { qDebug() << Q_FUNC_INFO; QVariantMap map = BackgroundChunk::extractNextChunk(); if (!map.isEmpty()) { NSString *nsFilename = map["ext

Re: [Interest] How add libsqlite3.dylib to iOS qmake?

2016-04-26 Thread Edward Sutton
Thanks Jason, This resolved my link issues. Now I can work on calling and sending the tracker events. # https://developers.google.com/analytics/devguides/collection/ios/v3/sdk-download#download_sdk # platform/ios/xcode/deps/GoogleAnalyticsServicesiOS_3.15/ # # The Google A

Re: [Interest] How add libsqlite3.dylib to iOS qmake?

2016-04-26 Thread Jason H
I don't think you (iOS/Qt) can. I think iOS has always been static, until recently, but the Qt build process improvements to allow dynlib hasn't been released yet. I think it's coming in 5.7.   I think it should work as a .a   Sent: Tuesday, April 26, 2016 at 10:11 AM From: "Edward Sutton" T

[Interest] How add libsqlite3.dylib to iOS qmake?

2016-04-26 Thread Edward Sutton
How do you add a dylib to an iOS qmake file? I am trying to add Google Analytics support to my Qt iOS app. I need to add the following dependencies to qmake: * ligGoogleAnalyticsServices.a * CoreData.framework * SystemConfiguration.framework * libz.dylib * libsqlite3.dylib

Re: [Interest] Running Qt app in a browser

2016-04-26 Thread Jason H
> That's about all there is. My current MO is a NodeJS REST server and AJAX to > the various clients, in whatever they are (QML/HTML usually I forgot, related to asm.js: I wanted to mention this blog post: http://blog.qt.io/blog/2015/09/25/qt-for-native-client-and-emscripten/ __

Re: [Interest] Running Qt app in a browser

2016-04-26 Thread Jason H
> Sent: Monday, April 25, 2016 at 4:59 PM > From: "Larry Martell" > To: interest@qt-project.org > Subject: [Interest] Running Qt app in a browser > > Is it possible to run a Qt app in a browser? I have googled for this, > and found some hits, but none seen like they ever worked out. The most > p

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Shawn Rutledge
> On 26 Apr 2016, at 15:00, Jérôme Godbout wrote: > > Hi Dmitry, > not much problems, except this is a modal way for interacting with the user. > I'm not a fan of modal (as matter of fact I hate it, you prevent your user > for copy/paste, check something from the real work window), but the Qm

[Interest] Release build Errors on launch in android - used to work fine

2016-04-26 Thread Jason H
I have a project that I've been working on for a while now. Yesterday something went wonky, and I did a clean, then build. The debug version works fine, but the release crashes on app start with the following errors: E/art ( 556): dlopen("/data/data/com.company.app.a/qt-reserved-files/plug

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Sina Dogru
Hello Jérôme, I am trying to understand how you made it possible, 2016-04-26 15:39 GMT+03:00 Jérôme Godbout : > We also have expose those blocking C++ QMessageBox and QDialog for linear > workflow via Q_INVOKABLE from C++ singleton. > I might misunderstand, do you actually using QMessageBox wit

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Jérôme Godbout
Hi Dmitry, not much problems, except this is a modal way for interacting with the user. I'm not a fan of modal (as matter of fact I hate it, you prevent your user for copy/paste, check something from the real work window), but the Qml Dialog callback make it even worst. It seem ok for a single ques

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Dmitry Volosnykh
Jérôme, thank you for your input. Just for self education... Did you face some problems with such approach which you may want to share with us? Any UI performance issues since you may have blocked scene renderer? On Tue, Apr 26, 2016 at 3:39 PM Jérôme Godbout wrote: > We also have expose those b

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Jérôme Godbout
We also have expose those blocking C++ QMessageBox and QDialog for linear workflow via Q_INVOKABLE from C++ singleton. This avoid the callback spaghetti mess of Qml Dialog and made the code more readable. If you have many options to offer to user in particular sequences of may or may not be request

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Jérôme Godbout
I can tell what we did, we made a FileSystem C++ singleton that expose most file system file/url check, we made those check inside Qml javascript now. This way you can make callback and GUI logic into Qml. We expect C++ function to be call with valid argument all the time. Else we always return err

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Sina Dogru
Ah yeah, thank you so much Dmitry :) 2016-04-26 13:49 GMT+03:00 Dmitry Volosnykh : > While I cannot recommend you some 'the best book on declarative > programming', I still suggest you to read http://qmlbook.github.io > > On Tue, Apr 26, 2016 at 1:27 PM Sina Dogru wrote: > >> Yes I guess I am st

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Dmitry Volosnykh
While I cannot recommend you some 'the best book on declarative programming', I still suggest you to read http://qmlbook.github.io On Tue, Apr 26, 2016 at 1:27 PM Sina Dogru wrote: > Yes I guess I am still thinking procedural way. Do you have any > recommendation book/documents to understand de

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Sina Dogru
Yes I guess I am still thinking procedural way. Do you have any recommendation book/documents to understand declarative programming? Thank you for your helps. Sina 2016-04-26 13:07 GMT+03:00 Dmitry Volosnykh : > > Well the problem is ... while using QFileDialog's and QMessageBox's > static func

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Dmitry Volosnykh
> Well the problem is ... while using QFileDialog's and QMessageBox's static functions, program can continue to flow from where those functions called. This is declarative language. Spaghetti code is unavoidable %) You'll have to do a mind-shift to use QML as it was designed. On Tue, Apr 26, 2016

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Dmitry Volosnykh
> FileDialog's open function would not return the file URL while QFileDialog::getSaveFileName would return it While FileDialog.open() does not return anythying, you still able to get file's URL via fileUrl property of FileDialog instance like follows: FileDialog { id: fileDialog onAccepted: co

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Sina Dogru
Ah by the way I just wrote this code to show my purpose. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Sina Dogru
2016-04-26 12:11 GMT+03:00 Shawn Rutledge : > > You shouldn’t need to do this. Just write onAccepted/onRejected handlers > which call back to QML and/or C++ code as necessary. Is there some reason > why that is difficult? > > Well the problem is (like I tried to explain on the email to Dmitry) w

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Sina Dogru
> Hi, Sina. You may try to wrap those C++-side static methods with > intermediary class that is exposed to QML in a usual way. As far as I > remember there should be some API for opening files as well as for message > notifications. But that will require you to import QtQuick.Controls module. > Ple

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Shawn Rutledge
> On 26 Apr 2016, at 10:02, Sina Dogru wrote: > > On the Widgets world, some of the static functions of QMessageBox and > QFileDialog (eg getSaveFileName and warning) are so handy and necessary, > IMHO. I do mimic this behaviour with a QML function, which opens a file > dialog or a message bo

Re: [Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Dmitry Volosnykh
Hi, Sina. You may try to wrap those C++-side static methods with intermediary class that is exposed to QML in a usual way. As far as I remember there should be some API for opening files as well as for message notifications. But that will require you to import QtQuick.Controls module. Please, refer

[Interest] [QtQuick] Interaction with user from C++

2016-04-26 Thread Sina Dogru
Hello list, Before watching this video , I was thinking the Qt-Declarative module is aiming to touch-screen and mobile devices. And also after experiencing some QtQuick applications on desktop my thought h

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-26 Thread Gunnar Sletta
> On 25 Apr 2016, at 19:46, Artem Fedoskin wrote: > > Thank you for your reply Gunnar, > > Can you please tell me - can I store a pointer to the object of external > class (even not a QQuickItem derived one) in QSGNode derived class? Each > object of the class Data is associated with correspo