Re: [Interest] QPlugin and RTTI

2014-06-24 Thread Till Oliver Knoll
Am 23.06.2014 um 19:13 schrieb Till Oliver Knoll till.oliver.kn...@gmail.com: ... And I /still/ think that was exactly one of the (many) selling points of using the Qt Meta Object over the RTTI, because the later is /not/ guaranteed to work across DLLs when it comes to dynamic casting... it

[Interest] qml display question

2014-06-24 Thread Nancy Zou
Dear All My display resolution is 800*480, I write a qml like that: import QtQuick 2.0 Rectangle { width:300 height: 200 color: red } Why it show the whole screen red color. I think it may be caused by window size. Is it right? How does qquick scene graph display qml contents to screen? Best

Re: [Interest] qml display question

2014-06-24 Thread Rutledge Shawn
On 24 Jun 2014, at 09:36, Nancy Zou nancy@csr.com wrote: Dear All My display resolution is 800*480, Sounds like you are on Android or on some sort of embedded system? So probably the reason is that you cannot have multiple windows: the whole application must be full-screen by design.

Re: [Interest] qml display question

2014-06-24 Thread Nancy Zou
-Original Message- From: Rutledge Shawn [mailto:shawn.rutle...@digia.com] Sent: Tuesday, June 24, 2014 3:51 PM To: Nancy Zou Cc: Interest@qt-project.org Subject: Re: [Interest] qml display question On 24 Jun 2014, at 09:36, Nancy Zou nancy@csr.com wrote: Dear All My display

Re: [Interest] qml display question

2014-06-24 Thread Rutledge Shawn
Dear All My display resolution is 800*480, Sounds like you are on Android or on some sort of embedded system? So probably the reason is that you cannot have multiple windows: the whole application must be full-screen by design. Of course you can have a red rectangle inside a black

Re: [Interest] QCommandLineParser, default arguments from env variable?

2014-06-24 Thread Mark Gaiser
On Mon, Jun 23, 2014 at 11:20 PM, Thiago Macieira thiago.macie...@intel.com wrote: Em seg 23 jun 2014, às 22:48:59, Mark Gaiser escreveu: getenv(APPNAME_ARGS), split it into a QStringList and pass it to the command-line parser. That sounds like a nice solution. Thank you for the hint The

Re: [Interest] Simple UDP listener question

2014-06-24 Thread Robert Wood
Yes, Bob, that's exactly it. On 192.168.0.18 I have stripped it right down to this this: udpSocRec = new QUdpSocket(this); udpSocRec-bind(QHostAddress::Any, 6454); connect(udpSocRec, SIGNAL(readyRead()),this, SLOT(processPendingDatagrams())); processPendingDatagrams() never gets

Re: [Interest] QML Skew animation?

2014-06-24 Thread Mark Gaiser
On Mon, Jun 23, 2014 at 10:55 PM, Ian Monroe i...@monroe.nu wrote: On Mon, Jun 23, 2014 at 1:48 PM, Mark Gaiser mark...@gmail.com wrote: Hi, QML has the Rotate and Scale possibility, but i can't find a way to do image skewing. If you don't know what skewing is, please look at this image [1].

Re: [Interest] QCommandLineParser, default arguments from env variable?

2014-06-24 Thread Giuseppe D'Angelo
On 24 June 2014 10:26, Mark Gaiser mark...@gmail.com wrote: I think I'll just look at how QCommandLineParser is doing that and copy that logic. I think there's no such logic. QCommandLineParser will already see the arguments correctly split, i.e. the ones you're receiving into main. Your

Re: [Interest] QML Skew animation?

2014-06-24 Thread Gunnar Sletta
Hi Mark, Starting 5.4 you can implement the skew yourself using the Matrix4x4 as input to the Item.transform. In 5.3 the way through public API would be to use a ShaderEffect or to implement a custom item which returns a QSGTransformNode with a skew matrix which has a textured node as child.

Re: [Interest] Simple UDP listener question

2014-06-24 Thread Rainer Wiesenfarth
Am 24.06.2014 10:38, schrieb Robert Wood: Yes, Bob, that's exactly it. On 192.168.0.18 I have stripped it right down to this this: udpSocRec = new QUdpSocket(this); udpSocRec-bind(QHostAddress::Any, 6454); connect(udpSocRec, SIGNAL(readyRead()),this,

Re: [Interest] Simple UDP listener question

2014-06-24 Thread Robert Wood
Hi Rainer, It says this: udp0 0 0.0.0.0:64540.0.0.0:* If I stop my app, that disappears, if I change it to listen on 192.168.0.18 by changing this line: udpSocRec-bind(QHostAddress(192.168.0.18), 6454); I get this: udp0 0 192.168.0.18:6454

Re: [Interest] Simple UDP listener question

2014-06-24 Thread Rainer Wiesenfarth
Am 24.06.2014 13:02, schrieb Robert Wood: It says this: udp0 0 0.0.0.0:64540.0.0.0:* If I stop my app, that disappears, [...] Ok, so your app can create the socket. Just to make sure: You _are_ running an event loop (Q{Core,}Application::exec())!? Best Regards

Re: [Interest] Simple UDP listener question

2014-06-24 Thread Robert Wood
Yes, I'm creating a standard Qt GUI using Qt Creator. With the same app, I can send out packets over and over again. I've just got that bit removed at the moment in an attempt to simplify things as much as possible. On 24/06/14 12:17, Rainer Wiesenfarth wrote: Am 24.06.2014 13:02, schrieb

Re: [Interest] Simple UDP listener question

2014-06-24 Thread Robert Wood
Hmmm, it's an issue with my desktop (192.168.0.18). If I swap things around and send from my desktop to the laptop, the laptop is working and seeing the packets. I can use netcat to test things both ways and that too will acdept nothing into the desktop. Weird. So, it's sack all to do with Qt

Re: [Interest] Simple UDP listener question

2014-06-24 Thread Thiago Macieira
Em ter 24 jun 2014, às 09:38:22, Robert Wood escreveu: I've tried changing the port to 123 to capture incoming NTP packets which, again, Wireshark says are present, but to no avail. You can't bind to port 123. That's a privileged port. -- Thiago Macieira - thiago.macieira (AT) intel.com

Re: [Interest] QCommandLineParser, default arguments from env variable?

2014-06-24 Thread Thiago Macieira
Em ter 24 jun 2014, às 10:26:39, Mark Gaiser escreveu: I think I'll just look at how QCommandLineParser is doing that and copy that logic. Would it be a nice idea to add a function to QCommandLineParser with the following signature: QStringList QCommandLineParser::parse(const QString

[Interest] Integrating on Android.

2014-06-24 Thread Jason H
I had to go Android SDK for a project because the Qt support fell short. Now I'm starting on the next project... How can I use the SDK app's intents in the new app that I want to do in Qt? The new app expands on the old app's features. So basically I want a Qt app to use the intents of the SDK

[Interest] how to properly close a SQLite database?

2014-06-24 Thread Francisco Ares
Hi, Before of anything else, thanks to anyone reading this message. I'm using Qt 4.8.5 and QtCreator. I use SQLite for data storage in an embedded system, and that is OK. There is a class, named CDataBase that holds the QSqlDatabase object and all of the QSqlQuery objects used on this program,

[Interest] QML Signal to C++ Slot with QVariant is not working with Qt5.3

2014-06-24 Thread Railway Coder
Hello together, are there some changes between Qt5.2 and Qt5.3 regarding to signal and slots behaviour? I've tried to switch to Qt5.3 but my Signals and Slots with QVariant are not working between QML and C++. I've written a small example that is working fine with Qt5.2 but not with Qt5.3. I

[Interest] Enable ANGLE in 5.2.1

2014-06-24 Thread Glenn Ramsey
Hi, I am trying to build a version of Qt 5.2.1 with VS2010 that will use ANGLE for Qt Quick 2.0. Using these configure options configure.bat -prefix %CD%\qtbase -make-tool jom -nomake examples -opensource -confirm-license -release -no-c++11 -icu -openssl -angle -no-opengl I get build errors

Re: [Interest] how to properly close a SQLite database?

2014-06-24 Thread Constantin Makshin
QSqlDatabase::close() closes the database backend connection but leaves QtSql one intact, i.e. even after close() your QSqlDatabase object occupies its slot in the [global] list of existing database objects. So in order to let QSqlDatabase::removeDatabase() do its job you have to destroy all

[Interest] Send Video output to specified display

2014-06-24 Thread Vinoth Kumar
Hi, I have 2 different displays (1 LCD and 1 HDMI) connected to my device. Is it possible in Qt to direct the output of my video playback to a particular display. Does QtMultimedia have any provision for this? Thanks, Vinoth ___ Interest mailing list