Re: [Interest] moveToThread used in constructor to move "this"

2016-02-24 Thread André Somers
Op 24/02/2016 om 18:23 schreef Thiago Macieira: On quarta-feira, 24 de fevereiro de 2016 10:22:18 PST Lorenz Haas wrote: Foo() : QObject(nullptr) { moveToThread(_thread); m_thread.start(); } ~Foo() { m_thread.quit(); m_thread.wait(); } This

Re: [Interest] Android Studio and Qt

2016-02-24 Thread rpzrpz...@gmail.com
Jason: On 2/24/2016 8:38 PM, Jason H wrote: How does one "regenerate it back into the build directory"? You want to look at the "use gradle builds" and then generate android files in the project android setup in project preferences. This will create an android subdirectory from your

Re: [Interest] Android Studio and Qt

2016-02-24 Thread Jason H
How does one "regenerate it back into the build directory"? I would figure that there would be some ability to extend the supplied QtActivity and tell the build system to use that? But it seems like I need to set up some build steps to overwrite the supplied activity? That doesn't seem 'Qt' to

Re: [Interest] Android Studio and Qt

2016-02-24 Thread m...@rpzdesign.com
Yes, edit the java code uptream and regenerate it back into the build directory. On 2/24/2016 6:41 PM, Jason H wrote: Hrm, that's not what the instructions said, but I can see your point. If correct though, I'd be usin the Qt-supplied/generated classes, but that means I'm editing code in

Re: [Interest] Has some examples about new version qt3d (5.5 or later) to operate 3d model mesh and sub mesh?

2016-02-24 Thread Jordon Wu
Hi Sean, Thanks very much. I will try is later. Best Regards Jordon Wu 2016-02-25 3:25 GMT+08:00 Sean Harmer : > Hi Jordan, > > On 24/02/2016 02:27, Jordon Wu wrote: > > Hi Sean, > > This is a cool 3d demo(https://www.youtube.com/watch?v=zCBESbHSR1k )! > > Is this demo

Re: [Interest] Android Studio and Qt

2016-02-24 Thread Jason H
Hrm, that's not what the instructions said, but I can see your point. If correct though, I'd be usin the Qt-supplied/generated classes, but that means I'm editing code in the build dir? Shouldn't the code be under my project's android dir? The article alludes to a

Re: [Interest] Tempalted QObjects

2016-02-24 Thread Thiago Macieira
On quarta-feira, 24 de fevereiro de 2016 22:28:23 PST Jean-Michaël Celerier wrote: > On Wed, Feb 24, 2016 at 8:50 PM, Thiago Macieira > wrote: > > no compilers is currently able to merge implementations that > > produce the same code, if they come from different

Re: [Interest] Android Studio and Qt

2016-02-24 Thread m...@rpzdesign.com
Jason: Its a little tricky, I think you have to open up the created project in the build directory, not try to import from the source directory tree where the qmake pro file is located. Look at Build Settings -> Build Steps -> Make: main in /bla/bla/bla directory and find the Debug ->

[Interest] Android Studio and Qt

2016-02-24 Thread Jason H
There is a step missing in http://www.kdab.com/qt-android-episode-6/ Where we go from importing the build.gradle to somehow having Java source to start debugging. Can someone fill in the missing steps? I didn't find any .java files. ___ Interest

Re: [Interest] Tempalted QObjects

2016-02-24 Thread Jean-Michaël Celerier
On Wed, Feb 24, 2016 at 8:50 PM, Thiago Macieira wrote: > no compilers is currently able to merge implementations that > produce the same code, if they come from different functions. > Isn't this what MSVC's /OPT:ICF (

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-24 Thread Lorenz Haas
> This destructor is either never run or deadlocks. Indeed, my example/test code was bad. The destructor was never called and thus I haven't saw the error output. > A QObject can only be destroyed in its thread of affinity. So the above is > running in that m_thread thread, which means it

Re: [Interest] How can I set proxy settings and QNetworkCookieJar with QWebEngine

2016-02-24 Thread NoRulez
Ok i think the most is solved in Qt 5.6.0 rc. Thanks Am 22.02.2016 um 11:08 schrieb Koehne Kai : >> -Original Message- >> From: NoRulez [mailto:noru...@me.com] >> [...] >>> Could you elaborate? >> >> >> In the Qt 5.5 examples there are a CookieJar example

Re: [Interest] Can't build Qt 5.6 RC on Windows - configure.exe is not recognized as internal or external command

2016-02-24 Thread Philippe
>>I see configure.exe in qtbase-opensource-5.6.0-rc.zip, but it's missing >>in all the other packages. It is not present in the commercial zip package. But configure.exe is built by configure.bat and this works ok. The problem I encounter is something else. Philippe On Wed, 24 Feb 2016

Re: [Interest] Can't build Qt 5.6 RC on Windows - configure.exe is not recognized as internal or external command

2016-02-24 Thread Thiago Macieira
On quarta-feira, 24 de fevereiro de 2016 20:48:49 PST Philippe wrote: > But configure.exe is built by configure.bat and this works ok. > > The problem I encounter is something else. Only if the .gitignore file is present. You can create it (empty is fine) to force configure.bat compiling the

Re: [Interest] Can't build Qt 5.6 RC on Windows - configure.exe is not recognized as internal or external command

2016-02-24 Thread Thiago Macieira
On quarta-feira, 24 de fevereiro de 2016 18:11:54 PST Philippe wrote: > qtBase builds fine, but later ActiveX and XMLPatterns projects fail. Please report those issues. Obviously, they compiled for us. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source

Re: [Interest] Can't build Qt 5.6 RC on Windows - configure.exe is not recognized as internal or external command

2016-02-24 Thread Thiago Macieira
On quarta-feira, 24 de fevereiro de 2016 16:37:07 PST Nuno Santos wrote: > Can't build Qt 5.6 RC with the very same command I have been using since > Qt 5.6 alpha. Does anyone knows why? I see configure.exe in qtbase-opensource-5.6.0-rc.zip, but it's missing in all the other packages. I've

Re: [Interest] Has some examples about new version qt3d (5.5 or later) to operate 3d model mesh and sub mesh?

2016-02-24 Thread Sean Harmer
Hi Jordan, On 24/02/2016 02:27, Jordon Wu wrote: Hi Sean, This is a cool 3d demo(https://www.youtube.com/watch?v=zCBESbHSR1k)! Is this demo using assimp to load 3d model or using gltf to load 3d model ? Nope, each sub mesh is in it's own OBJ file which we load using the Mesh component. So

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-24 Thread Thiago Macieira
On quarta-feira, 24 de fevereiro de 2016 10:22:18 PST Lorenz Haas wrote: >Foo() : QObject(nullptr) { > moveToThread(_thread); > m_thread.start(); >} > >~Foo() { > m_thread.quit(); > m_thread.wait(); >} This destructor is either never run or deadlocks. A

Re: [Interest] Can't build Qt 5.6 RC on Windows - configure.exe is not recognized as internal or external command

2016-02-24 Thread Philippe
Same her, impossible to build fully under Windows 10 / VS 2015 (I tried both 32 and 64 bit). qtBase builds fine, but later ActiveX and XMLPatterns projects fail. I tried with a basic configuration: configure -debug-and-release -make-tool jom -commercial -confirm-license Philippe Here, even with

Re: [Interest] emitting signals from UIApplication app delegate?

2016-02-24 Thread Nuno Santos
Jason, A signal is a function. You just need to call it. But first you need to have a valid object to call it. Nuno Em 24/02/2016 16:17, Jason H escreveu: I want a QObject class to emit a signal when a function in my app delegate is invoked. (Code follows) How can I do that? I don't know

[Interest] Can't build Qt 5.6 RC on Windows - configure.exe is not recognized as internal or external command

2016-02-24 Thread Nuno Santos
Hi, Can't build Qt 5.6 RC with the very same command I have been using since Qt 5.6 alpha. Does anyone knows why? Is not being able to find configure.exe. Is it supposed to be included? This is the output: C:\Qt\5.6\src_32>configure.bat -prefix c:\qt\5.6\msvc2013_5_6_rc_32_static

[Interest] emitting signals from UIApplication app delegate?

2016-02-24 Thread Jason H
I want a QObject class to emit a signal when a function in my app delegate is invoked. (Code follows) How can I do that? I don't know how to use QObjects in ObjectiveC --- PlatformShimImpl.cpp PlatformShimImpl::PlatformShimImpl(){ qDebug() << Q_FUNC_INFO; QtAppDelegate

Re: [Interest] How to hide keyboard while clicking outside of keyboard in qml

2016-02-24 Thread mark diener
Gianluca: For simple QML layouts, I think your technique would work. But I found that mousearea had issues when you had Loader objects in the chain. Another approach is to use a Q_INVOKABLE function to register any QML object that you want to have the keyboard hide whenever the touch outside of

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-24 Thread André Somers
Op 24/02/2016 om 10:22 schreef Lorenz Haas: Hi André, That should work just fine, with the exception of using _thread as a member. thanks for your answer. I am, however, not sure what you mean regarding the m_thread member. For a better understanding here is a working example I have in

Re: [Interest] How to hide keyboard while clicking outside of keyboard in qml

2016-02-24 Thread Gian Maxera
Hello, I do in this way: - add a MouseArea covering the entire screen that got a z level lower than any other input area (like TextArea) - on the onClicked I just call: Qt.inputMethod.hide() and the keyboard will close is you click outside any other active elements. Ciao, Gianluca. > On 24

[Interest] How to hide keyboard while clicking outside of keyboard in qml

2016-02-24 Thread 黄裔
I use TextArea as input in qml file. When clicking TextArea, keyboard pops up. But the keyboard could not hide while clicking outside of it. Whether there is a method or any API in qml can resolve this problem conveniently? thanks. Yi___ Interest

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-24 Thread Lorenz Haas
Hi André, > That should work just fine, with the exception of using _thread as a > member. thanks for your answer. I am, however, not sure what you mean regarding the m_thread member. For a better understanding here is a working example I have in mind:

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-24 Thread André Somers
Op 24/02/2016 om 09:39 schreef Lorenz Haas: Hi, keep calm, it is not about moveToThread(this) :) One canonical way to use QObjects and QThreads is this void SomeClass::init() { // m_thread is a member of SomeClass Foo *foo = new Foo; // Foo inherits QObject

[Interest] moveToThread used in constructor to move "this"

2016-02-24 Thread Lorenz Haas
Hi, keep calm, it is not about moveToThread(this) :) One canonical way to use QObjects and QThreads is this void SomeClass::init() { // m_thread is a member of SomeClass Foo *foo = new Foo; // Foo inherits QObject foo->moveToThread(_thread); } So in my case I want that an instance

[Interest] QML Drag Type `dragStarted` and `dragFinished` signals

2016-02-24 Thread Sina Dogru
Hello, As documentation of Drag QML Type says on `active ` property, Binding this property to the active property of MouseArea::drag > will cause > startDrag