[Interest] QtObject vs plain old JavaScript object

2017-07-06 Thread Walter Purvis
I have a fairly technical question: If a QML-based application needs a number of non-visual object types, are there reasons to prefer implementing those types as QtObject in individual QML files (e.g., SomeObject.QML) vs plain old JavaScript objects in a js file? For example, does one option

Re: [Interest] Set QTableWidgetItem checkbox when clicking anywhere on QTableWidget's row

2017-07-06 Thread André Somers
Op 06/07/2017 om 17:47 schreef Murphy, Sean: >>> And then with the event filter approach, what would I actually be filtering >> on? > >> It's similar to the above, only it solves the same problem at a >> different location in your code. Instead of modifying a delegate, you'd >> intercept the

Re: [Interest] Set QTableWidgetItem checkbox when clicking anywhere on QTableWidget's row

2017-07-06 Thread Murphy, Sean
> > And then with the event filter approach, what would I actually be filtering > on? > It's similar to the above, only it solves the same problem at a > different location in your code. Instead of modifying a delegate, you'd > intercept the mouse click and, again, handle the state change

Re: [Interest] Set QTableWidgetItem checkbox when clicking anywhere on QTableWidget's row

2017-07-06 Thread André Somers
Hi, Op 06/07/2017 om 16:07 schreef Murphy, Sean: > Thanks for the response Andre > >> I'd probably handle this via either a custom delegate or by using an >> event filter. > Can you go into a little more detail on these two approaches? Ok, a little... > > As far as the custom delegate approach,

Re: [Interest] Headless Install of Qt using a JavaScript File

2017-07-06 Thread Yuvraaj Kelkar
Thanks Ben! This is exactly what I was looking for as well: Automated install for Qt/android/linux. I used the path: https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_58/ On Thu, Jul 6, 2017 at 7:58 AM, Ben Lau wrote: > > I check the package list from the

Re: [Interest] Headless Install of Qt using a JavaScript File

2017-07-06 Thread Ben Lau
I check the package list from the directory of download.qt.io Example: https://download.qt.io/online/qtsdkrepository/mac_x64/desktop/qt5_55/ On 6 July 2017 at 22:32, Michael Jackson wrote: > I am updating our script file for installing Qt 5.9.1 in an automated >

[Interest] Headless Install of Qt using a JavaScript File

2017-07-06 Thread Michael Jackson
I am updating our script file for installing Qt 5.9.1 in an automated fashion. We do this by calling the installer with the --script argument. Generally works great for the default install. I would like to customize the install to remove some of the components. At one point I had code like

Re: [Interest] Set QTableWidgetItem checkbox when clicking anywhere on QTableWidget's row

2017-07-06 Thread Murphy, Sean
Thanks for the response Andre > I'd probably handle this via either a custom delegate or by using an > event filter. Can you go into a little more detail on these two approaches? As far as the custom delegate approach, I'm assuming that if I follow the Spin Box Delegate Example

Re: [Interest] Set QTableWidgetItem checkbox when clicking anywhere on QTableWidget's row

2017-07-06 Thread Murphy, Sean
> You can set a flag if the button was "released" (i.e. by the user), and in > your > slot set the checkbox only if the flag wasn't set but in any case reset the > flag. > > Or you can use the sender() function to see which object activated your slot. Thanks for replying, I'll look into this,

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Oleg Evseev
> no information about ownership (transfer) It is same as usual data ownership when mix C++/QML http://doc.qt.io/qt-5/qtqml-cppintegration-data.html especially take into account this: *additionally, the QML engine respects the normal QObject parent ownership semantics of Qt C++ objects, and will

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Helmut Mülner
Hi Oleg, > This is basically the same approach as in the Stackoverflow answer That's why I wrote "I'm not sure I understand your problem in a right way" before. Why is this approach not suitable for you? (just in case, in difference with StackOverflow approach in my example camera and render

Re: [Interest] disable web security in QtWebEngine

2017-07-06 Thread Jason Dolan
The answer is mentioned in that forum you linked to: add --disable-web-security as an argument when running your program. I’m sure you could also programmatically add it to the arguments sent to QApplication if you wanted to. > On Jul 5, 2017, at 6:46 PM, Kevin Mcintyre

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Oleg Evseev
> This is basically the same approach as in the Stackoverflow answer That's why I wrote "*I'm not sure I understand your problem in a right way"* before. Why is this approach not suitable for you? (just in case, in difference with StackOverflow approach in my example camera and render settings

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Helmut Mülner
> I think you misunderstood me: MY GUI is in QML, only the backend is in C++ This is certainly what I mean. Take a look my setData example from https://bugreports.qt.io/browse/QTBUG-60429 it uses Scene3D in QML and C++ backend. Sorry, my

Re: [Interest] Qt online installer and updated MaintenanceTool.app crash on OS X 10.9

2017-07-06 Thread René J . V . Bertin
On Wednesday July 05 2017 13:18:47 René J.V. Bertin wrote: > I wanted to do some maintenance on my installation of official Qt builds, and > ended up with a broken maintenance tool because it is now built against a Qt > version that dropped support for my OS version. Maybe this can help others

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Oleg Evseev
> I think you misunderstood me: *MY GUI is in QML, only the backend is in C++* This is certainly what I mean. Take a look my setData example from https://bugreports.qt.io/browse/QTBUG-60429 it uses Scene3D in QML and C++ backend. > ___ Interest mailing

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Helmut Mülner
Hi Oleg, > Or is it possible to construct some of these in C++ and use them in QML via > setContextProperty: Buffer, Geometry, GeometryRenderer or other classes from > the Qt3D modules? >From my point of view it would be better to construct them (Buffer, Geometry, >GeometryRenderer, Textures

Re: [Interest] Decoding drag file URLs under Windows with QUrl

2017-07-06 Thread Julien Cugnière
Hello Etienne, QUrl::path does not return a local file path, but rather the path part of the URL, which is indeed "/C:\Users\foo\file.txt". I think what you're looking for is QUrl::toLocalFile(). Julien Cugnière 2017-07-06 10:57 GMT+02:00 Etienne Sandré-Chardonnal : >

Re: [Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Oleg Evseev
Hi, Helmut I'm not sure I understand your problem in a right way, but I think my setData example from https://bugreports.qt.io/browse/QTBUG-60429 maybe helpful. > Or is it possible to construct some of these in C++ and use them in QML via setContextProperty: Buffer, Geometry, GeometryRenderer or

[Interest] Qt3D: Create custom meshes and textures in C++, use in QML

2017-07-06 Thread Helmut Mülner
After studying the (spare) Qt3d documentation and examples and researching almost all Web resources, I am still not sure how to best solve the following task: I have to create custom meshes and textures in C++ (the data come from a database) and I want to use these items in a QML GUI. At

[Interest] Decoding drag file URLs under Windows with QUrl

2017-07-06 Thread Etienne Sandré-Chardonnal
Dear all, I'm implementing file dropping into my windows application. I retrieve the URLs via mimeData->urls() in subclassed dropMimeData functions. When dropping a file, QUrl::toString() returns something like this: file:///C:\Users\foo\file.txt And when getting the path with

Re: [Interest] Set QTableWidgetItem checkbox when clicking anywhere on QTableWidget's row

2017-07-06 Thread André Somers
Hi, I'd probably handle this via either a custom delegate or by using an event filter. André P.S. Oh, and get rid of the QTableWidget. Use QTableView instead. Op 05/07/2017 om 20:16 schreef Murphy, Sean: > I've got a QTableWidget that presents data in two columns. The first column > is made