Re: [Interest] vs. Flutter
On 2019-02-19 3:22 p.m., Jason H wrote: Was just reading the blog and it mentions live reloading: https://blog.qt.io/blog/2019/02/18/scaling-large-ui-development-projects-managing-complexities-reference-ui-neptune-3/ This Neptune3 thing, is that something we can use on the phones? I've been following the discussion and it looks like a lot of features of flutter, such as the live reloading, push notification, etc, already exists in felgo (use to be vplay). I used vplay for awhile, but it got too expensive so I just redid what I was using from their work myself. Only took a couple of weeks. My main point is that Qt can do all of this stuff because the felgo people already did. It just has to be done by Qt and put into the core. -- Lorne Sturtevant Sum Ergo Cogito ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] Handling zooming in QtCharts
On 06/20/2016 08:44 PM, Vincent Hui wrote: > Did you try Examples/Qt-5.7/qtcharts/charts/zoomlinechart ? > Yes I did. That example uses the default zoom which is always in the centre of the chart. -- Lorne Sturtevant Sum Ergo Cogito ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Problem location symbol on android
On 04/07/2016 05:15 PM, Lorne Sturtevant wrote: > I have a project that I'm trying to get working on android. I'm > using Qt Creator to build and run everything. The program compiles, > links and deploys. When it runs, I get the following error: > > Starting remote process.V/Zygote (20264): Switching descriptor 33 to > /dev/null > > V/Zygote (20264): Switching descriptor 9 to /dev/null > > D/dalvikvm(20264): Late-enabling CheckJNI > > I/ActivityManager( 436): Start proc org.qtproject.example.test_mage > for activity > org.qtproject.example.test_mage/org.qtproject.qt5.android.bindings.QtActivity: > pid=20264 uid=10109 gids={50109, 3003, 1028, 1015} > > D/ActivityThread(20264): > handleBindApplication:org.qtproject.example.test_mage > > D/ActivityThread(20264): setTargetHeapUtilization:0.75 > > D/ActivityThread(20264): setTargetHeapMinFree:524288 > > D/dalvikvm(20264): Trying to load lib > /data/data/org.qtproject.example.test_mage/lib/libgnustl_shared.so > 0x2c665238 > > D/dalvikvm(20264): Added shared lib > /data/data/org.qtproject.example.test_mage/lib/libgnustl_shared.so > 0x2c665238 > > D/dalvikvm(20264): No JNI_OnLoad found in > /data/data/org.qtproject.example.test_mage/lib/libgnustl_shared.so > 0x2c665238, skipping init > > D/dalvikvm(20264): Trying to load lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Core.so 0x2c665238 > > D/dalvikvm(20264): Added shared lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Core.so 0x2c665238 > > D/dalvikvm(20264): Trying to load lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Gui.so 0x2c665238 > > D/dalvikvm(20264): Added shared lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Gui.so 0x2c665238 > > D/dalvikvm(20264): No JNI_OnLoad found in > /data/data/org.qtproject.example.test_mage/lib/libQt5Gui.so > 0x2c665238, skipping init > > D/dalvikvm(20264): Trying to load lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Widgets.so 0x2c665238 > > D/dalvikvm(20264): Added shared lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Widgets.so 0x2c665238 > > D/dalvikvm(20264): No JNI_OnLoad found in > /data/data/org.qtproject.example.test_mage/lib/libQt5Widgets.so > 0x2c665238, skipping init > > D/dalvikvm(20264): Trying to load lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Xml.so 0x2c665238 > > D/dalvikvm(20264): Added shared lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Xml.so 0x2c665238 > > D/dalvikvm(20264): No JNI_OnLoad found in > /data/data/org.qtproject.example.test_mage/lib/libQt5Xml.so > 0x2c665238, skipping init > > D/dalvikvm(20264): Trying to load lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Concurrent.so > 0x2c665238 > > D/dalvikvm(20264): Added shared lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Concurrent.so > 0x2c665238 > > D/dalvikvm(20264): No JNI_OnLoad found in > /data/data/org.qtproject.example.test_mage/lib/libQt5Concurrent.so > 0x2c665238, skipping init > > D/dalvikvm(20264): Trying to load lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Network.so 0x2c665238 > > D/dalvikvm(20264): Added shared lib > /data/data/org.qtproject.example.test_mage/lib/libQt5Network.so 0x2c665238 > > D/dalvikvm(20264): No JNI_OnLoad found in > /data/data/org.qtproject.example.test_mage/lib/libQt5Network.so > 0x2c665238, skipping init > > D/dalvikvm(20264): Trying to load lib > /data/data/org.qtproject.example.test_mage/qt-reserved-files/plugins/platforms/android/libqtforandroid.so > 0x2c665238 > > D/dalvikvm(20264): Added shared lib > /data/data/org.qtproject.example.test_mage/qt-reserved-files/plugins/platforms/android/libqtforandroid.so > 0x2c665238 > > I/Qt (20264): qt start > > D/dalvikvm(20264): Trying to load lib > /data/data/org.qtproject.example.test_mage/qt-reserved-files/plugins/bearer/libqandroidbearer.so > 0x2c665238 > > D/dalvikvm(20264): Added shared lib > /data/data/org.qtproject.example.test_mage/qt-reserved-files/plugins/bearer/libqandroidbearer.so > 0x2c665238 > > D/dalvikvm(20264): No JNI_OnLoad found in > /data/data/org.qtproject.example.test_mage/qt-reserved-files/plugins/bearer/libqandroidbearer.so > 0x2c665238, skipping init > > D/dalvikvm(20264): Trying to load lib > /data/app-lib/org.qtproject.example.test_mage-2/libphysfs.so 0x2c665238 > > D/dalvikvm(20264): Added shared lib > /data/app-lib/org.qtproject.example.test_mage-2/libphysfs.so 0x2c665238 > > D/dalvikvm(20264): No JNI_OnLoad found in > /data/app-lib/org.qtproject.example.test_mage-2/libphysfs.so > 0x2c665238, skipping init > > D/dalvikvm(20264): Trying to load lib > /data/app-lib/org.qtpro
[Interest] Problem location symbol on android
it's not finding it. Any help with this would be greatly appreciated. -- Lorne Sturtevant Sum Ergo Cogito ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] QML, Layouts and Dynamic Objects
I am dynamically creating an object which is working fine. I set the parent of the object to a GridLayout. That also works fine. I want to set the Layout's attached properties of my object, but it's not working. Here's a small sample |var component; var button; component = Qt.createComponent("CustomButton.qml"); button = component.createObject(gridLayout); button.Layout.maximumWidth = 10; button.Layout.maximumHeight = 10; | I get the error "TypeError: Type error" when accessing button.Layout.maximimWidth. The button is properly created and I can see it and use it in the gui. If I comment out setting the maximum width and height, everything works except the size is not what I want. It looks like the button is not getting the Layout attached property when I dynamically create it. When I create it statically in a qml file, everything works fine. Any help would be greatly appreciated. -- Lorne Sturtevant Sum Ergo Cogito ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Sharing Shaders between contexts
I have a program that has two top level OpenGL widgets. I'm having problems creating shader programs and sharing them between the windows. The shaders work prefectly in one window, but not in the other. Previously I've used QGLWidget, but now I'm trying to upgrade it to QOpenGLWidget. With the old system, I had no problems sharing everything between the top level widgets. I'm using QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts) before creating the QApplication. I've also used QOpenGLContext::areSharing() to compare the contexts and they are supposedly being shared. From the documentation for QOpenGLContext, it states: Resources, such as framebuffer objects, textures, and vertex buffer objects can be shared between contexts. In that list of resources, it doesn't list shader programs. Can they be shared or are they treated differently? I found this forum post http://forum.qt.io/topic/51764/2-qopenglwidget-shared-context which is asking the same thing I am. Can anyone lend some insight? -- Lorne Sturtevant Sum Ergo Cogito ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Preventing QUrl from encoding query parameters
Just open a QTcpSocket to the server and send the GET command. And add this comment to your source code: // This looks like HTTP but isn't! // This is actually a binary protocol, since it doesn't conform // to RFC 2616 and RFC 3896. Thanks for the tip. That'll be easier than a separate process. -- Lorne Sturtevant Sum Ergo Cogito ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Preventing QUrl from encoding query parameters
You can't do what you want. QUrl will normalise what it has to. That's what I had feared. I was digging through the source I couldn't find a hidden force do things wrong flag. So just make sure that you are running Qt 5.3, since there were bugs in previous versions. If that doesn't work, fix your server. If it was my server, I'd fix it in an instant. But unfortunately it's a 3rd party server which I can't modify. While I try to get them to fix it, I think I'll just use curl spawned from QProcess. Thanks for the confirmation Thiago. -- Lorne Sturtevant Sum Ergo Cogito ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Preventing QUrl from encoding query parameters
On 08/02/2014 11:27 AM, Dmitriy Purgin wrote: Hi, If you pass this raw QString or QByteArray somewhere, why use QUrl then? Anyway, try QUrl::fromPercentEncoding(): QUrl url(http://example.com?query=[{\name\:\value\}];); qDebug() QUrl::fromPercentEncoding(url.toEncoded()); // produces: http://example.com?query=[{name:value}]; I should clarify that I need the QUrl because I need to pass it to a QNetworkRequest. That class only takes QUrls. I can't pass a string. QUrl::fromPercentEncoding() produces a QString. That's not what I need. -- Lorne Sturtevant Sum Ergo Cogito ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Preventing QUrl from encoding query parameters
I am to connect to a 3rd party API over http. This API does not accept requests that the URLs that are properly percent encoded for invalid characters. For example. It requires urls to be of the form: http://example.com?query=[{name:value}]. I create the QUrl like this: QUrl url = QUrl::fromEncoded(http://example.com?query=[{\name\:\value\}];); url.toString() shows that the string is percent encoded as http://example.com?query=[%7B%22name%22:%22value%22%7D] as it should be. The problem is that the 3rd part API can't handle the percent encoded form. I've tested this with curl as well: curl http://example.com?query=[{name:value}] returns the correct result. curl http://example.com?query=[%7B%22name%22:%22value%22%7D] returns an error from the 3rd party API. So my question is. How can I force QUrl not to percent encode the URL? Even though it's an error, I want QUrl to ignore it and just use the raw string I provide. -- Lorne Sturtevant Sum Ergo Cogito ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest