Re: [Interest] qml <--> c++

2016-02-27 Thread Tony Rietwyk
Hi Nicolas, I can see you left out Q_OBJECT on CustomWebView. Not idea whether the rest will work or not to achieve your aim. Tony From: Interest [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf Of jagernico...@legtux.org Sent: Sunday, 28 February 2016

[Interest] qml <--> c++

2016-02-27 Thread jagernicolas
Hi, in my main.qml I have this code : WebEngineView { id: webview url: "192.168.2.1" anchors.fill: parent onNewViewRequested: { var w_ = crecreateObject() request.openIn(appWin.w_) } } when onNewViewRequested is called, I would like to open the url of the request in the the same

Re: [Interest] Emitting signal from QThread::run()

2016-02-27 Thread Sze Howe Koh
On 28 February 2016 at 00:26, Alejandro Exojo wrote: > > El Saturday 27 February 2016, Thiago Macieira escribió: > > On sábado, 27 de fevereiro de 2016 11:45:50 PST Syam wrote: > > > void MainWindow::someFunction() > > > { > > > > > >MyThread *thread = new MyThread; > > >

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

2016-02-27 Thread Thiago Macieira
On sábado, 27 de fevereiro de 2016 11:58:09 PST Lorenz Haas wrote: > So it's all about the "unless..." part. Technically at the moment one > is calling delete it's not guaranteed that there are no events. Inside > the destructor, however, it is. So, assumed the documentation is > right, would this

Re: [Interest] Emitting signal from QThread::run()

2016-02-27 Thread Thiago Macieira
On sábado, 27 de fevereiro de 2016 17:26:32 PST Alejandro Exojo wrote: > El Saturday 27 February 2016, Thiago Macieira escribió: > > On sábado, 27 de fevereiro de 2016 11:45:50 PST Syam wrote: > > > void MainWindow::someFunction() > > > { > > > > > >MyThread *thread = new MyThread; > > >

[Interest] QML Context2D createPattern not working when using an Image item

2016-02-27 Thread BOUCARD Olivier
Hi, On Qt 5.5.1 MinGW 32bit. I'm making some test with the QML Canvas. And I was trying to fill a rectangle with a PNG as pattern. My Image is loaded using a QML Image item. My drawing commands are in a separate Javascript file. I access the image by adding an alias property to the Canvas

Re: [Interest] Emitting signal from QThread::run()

2016-02-27 Thread Alejandro Exojo
El Saturday 27 February 2016, Thiago Macieira escribió: > On sábado, 27 de fevereiro de 2016 11:45:50 PST Syam wrote: > > void MainWindow::someFunction() > > { > > > >MyThread *thread = new MyThread; > >connect(thread, SIGNAL(mySignal()), this, SLOT(myGuiSlot()), > > > >

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

2016-02-27 Thread Lorenz Haas
2016-02-24 18:23 GMT+01:00 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(); >>

Re: [Interest] Emitting signal from QThread::run()

2016-02-27 Thread Thiago Macieira
On sábado, 27 de fevereiro de 2016 11:45:50 PST Syam wrote: > void MainWindow::someFunction() > { >MyThread *thread = new MyThread; >connect(thread, SIGNAL(mySignal()), this, SLOT(myGuiSlot()), > Qt::QueuedConnection); >thread->start(); > } > > > // > > Will the