[Interest] Handling QObject auto-deletion and signals emitted from destructors

2015-09-02 Thread Neil Williams
Below is a example program which will crash when the widget is closed. This setup replicates the QWebview behaviour where it will emit the loadFinished signal from inside the destructor if a page is loading. I am wondering if anyone can suggest a clean way of handling this sort of case, where a

[Interest] OS X Deployment - question

2015-09-02 Thread Ziggy Uszkurat
Hi there, When I run macdeployqt, it installs frameworks as expected. However, the ones it installs are of a different size to the ones in QT/lib. For instance, QtCore is 5.9 MB in my app, but 6.3 MB in the QT/lib directory. Oddly, the frameworks in QTCreator are the same size as the ones

Re: [Interest] Launch Qt Desktop Application(Windows) by clicking custom file

2015-09-02 Thread Berkay Elbir
Thank you for your answer. Actually, I tried to do this in Qt installer(1.5.0), updated the installscript with this: component.addOperation("RegisterFileType", "fl", "@TargetDir@\\A.exe" + "'%1'", "myFiles", "text/plain","@TargetDir@/A_icon.ico", "ProgId=A.fl");​ as Federico suggested. But it

Re: [Interest] Errors trying to import an external QML module to my project

2015-09-02 Thread Daniel França
Ohh silly me, Thanks Koehne. It's working now, but Qt Creator still thinks the module doesn't exist, mark the import in *red *and can't autocomplete*.* Em qua, 2 de set de 2015 às 10:18, Koehne Kai escreveu: > > > > -Original Message- > > From:

[Interest] Qt3D 2 and Bullet physics

2015-09-02 Thread Ola Røer Thorsen
Hi all, just wondering if someone has tried using the Bullet physics engine with Qt3D 2.0? Wondering about the best/recommended way to combine these. I'd like to step Bullet's simulation loop and visualize the rigid bodies, basically. Best regards, Ola

Re: [Interest] Errors trying to import an external QML module to my project

2015-09-02 Thread Koehne Kai
> -Original Message- > From: interest-bounces+kai.koehne=theqtcompany@qt-project.org > [mailto:interest-bounces+kai.koehne=theqtcompany@qt-project.org] > On Behalf Of Daniel Franca > Sent: Wednesday, September 02, 2015 10:04 AM > To: interest@qt-project.org > Subject: [Interest]

[Interest] Errors trying to import an external QML module to my project

2015-09-02 Thread Daniel França
Hi guys I'm trying to import the modules from papyros (awesome components btw) to my application. For that I cloned the repo, and then I added the modules path to the *QML2_IMPORT_PATH* env var. The papyros is already with the qmldir files set correctly,

[Interest] Crash on start of the application. Fault module Qt5Qml.dll

2015-09-02 Thread Igor Mironchik
Hi guys, In my application I use one QQuickWidget. Theres is nothing more with QML usage in the application. But sometimes on start of the application it crashes and fault module is Qt5Qml.dll. Version 5.4.2.0. As you can see I'm on Windows. About this crash I knew from users. But I can't

Re: [Interest] iOS QWidget and QQuickWidget mixing in the same app

2015-09-02 Thread Igor Mironchik
Hi, 9/2/2015 7:04 PM, Igor Mironchik пишет: > Hi, > > Is it allowed to use QQuickWidget in the QWidget-based application on > iOS? I know the answer. NO... ___ Interest mailing list Interest@qt-project.org

[Interest] ComboBox on iOS

2015-09-02 Thread Nuno Santos
Hi, I’m trying to use a QtQuickControls combobox on a iOS app. It crashes as soon as I use a model of list type or ListModel type. Doesn’t crash using an integer model. I’m using Qt 5.4.1 Does anyone has the same problem? Regards, Nuno___

[Interest] iOS QByteArray to NSMutableData ?

2015-09-02 Thread Edward Sutton
How can I assign a QByteArray to NSMutableData ? qint64 AccessoryManager::writeData(const QByteArray ) { if(0 >= data.count()) { return 0; } if (this->d_ptr->writeData == nil) { this->d_ptr->writeData = [[NSMutableData alloc] init]; } // Append

[Interest] Qml Drag n Drop Custom QQuickItem

2015-09-02 Thread Jérôme Godbout
Hi, I'm trying to add behaviors for drag n drop on a custom QQuickItem in C++ from Qml. I have use inside the C++ part: setFlags(ItemAcceptsDrops); into the custom QQuickItem constructor. I now receive event into custom handler: dragEnterEvent(QDragEnterEvent* event) inside the overload

Re: [Interest] iOS QWidget and QQuickWidget mixing in the same app

2015-09-02 Thread Igor Mironchik
9/2/2015 8:28 PM, Agocs Laszlo пишет: > Hi, > > Qt 5.5 introduces support for both QQuickWidget and QOpenGLWidget on iOS. Just checked on simulator... Doesn't work... > > Best regards, > Laszlo > > > From:

Re: [Interest] [External] iOS QByteArray to NSMutableData ?

2015-09-02 Thread Edward Sutton
Never mind. Sorry. qint64 AccessoryManager::writeData(const QByteArray ) { if(0 >= data.count()) { return 0; } if (this->d_ptr->writeData == nil) { this->d_ptr->writeData = [[NSMutableData alloc] init]; } // Append data to write to _writeData

[Interest] iOS QWidget and QQuickWidget mixing in the same app

2015-09-02 Thread Igor Mironchik
Hi, Is it allowed to use QQuickWidget in the QWidget-based application on iOS? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] iOS QWidget and QQuickWidget mixing in the same app

2015-09-02 Thread Agocs Laszlo
Hi, Qt 5.5 introduces support for both QQuickWidget and QOpenGLWidget on iOS. Best regards, Laszlo From: interest-bounces+laszlo.agocs=theqtcompany@qt-project.org on behalf of Igor

[Interest] Qt on iOS - Native Swift-Written GUI with Qt Libraries

2015-09-02 Thread Robert Iakobashvili
Gentlemen, To overcome various issues and not-nativeness of Qt on iOS, I was thinking about the following combination: 1. Swift-written native GUI; 2. Internals supported by Qt-containers, QString, networking, IPC from QtCore, QtNetwork; Has somebody tried the above combination and any

Re: [Interest] Qt on iOS - Native Swift-Written GUI with Qt Libraries

2015-09-02 Thread Pau Garcia i Quiles
Hello, AFAIK you cannot combine swift and c++. You'd need IPC or alike to communicate GUI and core. Looks cumbersome. On Thursday, September 3, 2015, Robert Iakobashvili wrote: > Gentlemen, > To overcome various issues and not-nativeness of Qt on iOS, > I was thinking

Re: [Interest] Launch Qt Desktop Application(Windows) by clicking custom file

2015-09-02 Thread Federico Buti
I've just copied part of my script and inserted the placeholders. It works fine for me. Actually I've used version 2.0 but AFAIK that should not matter for this. I can recheck my configuration and post it, if it could help. Br, F. On Sep 2, 2015 9:47 AM, "Berkay Elbir"

[Interest] QApplication doesn't want to quit

2015-09-02 Thread Igor Mironchik
Hi, Standard solution: QApplicationapp(argc,argv); QObject::connect(,::lastWindowClosed, ,::quit); I'm sure that lastWindowClosed emits, but QApplication doesn't want to quit. For testing I build application with CONFIG += console And I see this console window... What can be the problem?

Re: [Interest] OS X Deployment - question

2015-09-02 Thread Till Oliver Knoll
> Am 02.09.2015 um 09:48 schrieb Ziggy Uszkurat : > > Hi there, > > When I run macdeployqt, it installs frameworks as expected. However, the ones > it installs are of a different size to the ones in QT/lib. For instance, > QtCore is 5.9 MB in my app, but 6.3 MB in the

Re: [Interest] QApplication doesn't want to quit

2015-09-02 Thread Jakob Magiera
AFAIK the Standard solution is QApplication:: setQuitOnLastWindowClosed(true); Jakob Von: interest-bounces+jam=ivu...@qt-project.org [mailto:interest-bounces+jam=ivu...@qt-project.org] Im Auftrag von Igor Mironchik Gesendet: Mittwoch, 2. September 2015 11:40 An: interest@qt-project.org

[Interest] Build for iOS

2015-09-02 Thread Igor Mironchik
Hi guys, First time trying to build project for iOS. And I received a lot of similar warnings... Unknown warning group '-Winconsistent-missing-override', ignored. How to fix it? Thank you. ___ Interest mailing list Interest@qt-project.org

Re: [Interest] Build for iOS

2015-09-02 Thread Nuno Santos
Hi, That’s a problem with the 5.5.0 release. I think it will be fixed on 5.5.1 which will be hopefully release in september. Regards, Nuno > On 02 Sep 2015, at 14:23, Igor Mironchik wrote: > > Hi guys, > > First time trying to build project for iOS. And I received

Re: [Interest] QApplication doesn't want to quit

2015-09-02 Thread Thiago Macieira
On Wednesday 02 September 2015 12:40:19 Igor Mironchik wrote: > Hi, > > Standard solution: > > QApplicationapp(argc,argv); > > QObject::connect(,::lastWindowClosed, > > ,::quit); I'm sure that lastWindowClosed emits, but > QApplication doesn't want to quit. For testing I build application with

Re: [Interest] Build for iOS

2015-09-02 Thread Igor Mironchik
Hi, with QSettings I solved the problem. All is fine. But can anybody tell me what is it: ASSERT: "qt_window_private(window())->compositing" in file qiosbackingstore.mm line 194 9/2/2015 4:26 PM, Nuno Santos пишет: Hi, That’s a problem with the 5.5.0 release. I think it will be fixed on

[Interest] Non rectangular clipPath for QQuickItems

2015-09-02 Thread Richard Öhlinger
Hello! I'm porting our Quick 1 application to Quick 2. In our application we had an triangle shaped item with a clipping path. All child Items in QML (e.g. our Buttons) will be clipped to that triangular shape //in C'tor: this->setFlag(QGraphicsItem::ItemHasNoContents, false);