Re: [Interest] qml performance with Qt5.2

2014-06-26 Thread Gunnar Sletta
On 26 Jun 2014, at 06:03, Nancy Zou nancy@csr.com wrote: Dear Gunnar other friends: I have read the blog http://qt-project.org/doc/qt-5/qtquick-visualcanvas-scenegraph-renderer.html I have a few questions about section performance: 1 Make sure the texture atlas is used. The Image

Re: [Interest] Calling reject() on a QFileDialog on Macintosh

2014-06-26 Thread Rutledge Shawn
On 25 Jun 2014, at 21:10, John Weeks j...@wavemetrics.com wrote: We use QFileDialog::getOpenFileName() to get the native file dialog on Macintosh. If you hit Escape, the dialog closes (as it should). If I call QDialog::reject() or even if I use this code:

Re: [Interest] QJsonObject::value() - Undefined or Null upon non-existing key

2014-06-26 Thread Wiebe Cazemier
- Original Message - From: Wiebe Cazemier wi...@halfgaar.net To: interest@qt-project.org Sent: Wednesday, 25 June, 2014 2:31:49 PM Subject: [Interest] QJsonObject::value() - Undefined or Null upon non-existing key Hi, The docs for QJsonObject::operator[] say [1]: The

Re: [Interest] qml performance with Qt5.2

2014-06-26 Thread Nancy Zou
Dear Gunnar other friends: About atlas texture: I print the atlas size in my system, QSG: texture atlas dimensions: 1024 x 1024 I use qml image item to load a jpeg image with size of 640*640, but I find it isn't the atlas texture. If a smaller image like 200*200, it can be the atlas

Re: [Interest] DOUBT

2014-06-26 Thread Sean Harmer
On Wednesday 25 Jun 2014 13:27:23 Amey Patil wrote: Thank you sir for your instant reply.. No, my openGL version is 2.1, I don't understand, I have nvidia graphics card.. Thanks for pointing out the problem, wat solution will you suggest?? Which card? nVidia card is not magic. They have

Re: [Interest] qml performance with Qt5.2

2014-06-26 Thread Gunnar Sletta
On 26 Jun 2014, at 11:36, Nancy Zou nancy@csr.com wrote: Dear Gunnar other friends: About atlas texture: I print the atlas size in my system, QSG: texture atlas dimensions: 1024 x 1024 I use qml image item to load a jpeg image with size of 640*640, but I find it isn't the atlas

Re: [Interest] qml performance with Qt5.2

2014-06-26 Thread Nancy Zou
I get it. Thank you. -Original Message- From: Gunnar Sletta [mailto:gunnar.sle...@jolla.com] Sent: Thursday, June 26, 2014 6:20 PM To: Nancy Zou Cc: Gunnar Sletta; Interest@qt-project.org Subject: Re: [Interest] qml performance with Qt5.2 On 26 Jun 2014, at 11:36, Nancy Zou

[Interest] Creating a debug log with a stacktrace on Linux

2014-06-26 Thread Rogers Nate
I am trying to capture some debug information to eventually add to a log in my application but my stacktrace doesn't contain the actual names of the functions that are being call (at least that I can see). How can I get a stack trace that is more meaningful or easier to read? main.cpp

Re: [Interest] Creating a debug log with a stacktrace on Linux

2014-06-26 Thread Rogers Nate
I built it as a debug build. Nate On 06/26/2014 10:17 AM, Sandeep wrote: Is there a way to get what I want (ie. QTimer calling processFiveWayButton() and that function calling upButtonClicked())? Thanks! I guess you might be using a RELEASE build, and usually RELEASE builds would strip

[Interest] QObject::connect

2014-06-26 Thread igor.mironchik
Hi guys, I have one simple question: Is it possible to make connection with new syntax (using QMetaMethod) if object has two or more signals with the same name but with different argument’s type? For example, QComboBox::currentIndexChanged... There are two signals with int and QString... Or

Re: [Interest] Creating a debug log with a stacktrace on Linux

2014-06-26 Thread Thiago Macieira
Em qui 26 jun 2014, às 14:29:15, Rogers Nate escreveu: I built it as a debug build. You need one extra flag: QMAKE_LFLAGS_APP += -Wl,-rdynamic -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center

Re: [Interest] QObject::connect

2014-06-26 Thread André Somers
igor.mironc...@gmail.com schreef op 26-6-2014 18:43: Hi guys, I have one simple question: Is it possible to make connection with new syntax (using QMetaMethod) if object has two or more signals with the same name but with different argument's type? For example,

Re: [Interest] QObject::connect

2014-06-26 Thread Thiago Macieira
Em qui 26 jun 2014, às 18:43:54, igor.mironc...@gmail.com escreveu: Hi guys, I have one simple question: Is it possible to make connection with new syntax (using QMetaMethod) if object has two or more signals with the same name but with different argument’s type? If I ignore the

Re: [Interest] Creating a debug log with a stacktrace on Linux

2014-06-26 Thread Thiago Macieira
Em qui 26 jun 2014, às 08:45:34, Thiago Macieira escreveu: Em qui 26 jun 2014, às 14:29:15, Rogers Nate escreveu: I built it as a debug build. You need one extra flag: QMAKE_LFLAGS_APP += -Wl,-rdynamic Sorry, without the -Wl,. This is a GCC flag: QMAKE_LFLAGS_APP += -rdynamic --

Re: [Interest] QObject::connect

2014-06-26 Thread igor.mironchik
Thanks guys for your answers. I found what I was seeking. And what about parentheses and QMetaMethod that I wanted to concretize what I mean under new syntax of connection. As new connect method is: QMetaObject::Connection QObject::connect(const QObject * sender, const QMetaMethod signal,

Re: [Interest] QObject::connect

2014-06-26 Thread Guido Seifert
Wow, this question is already more than a year old. I wasn't aware that this new connection syntax is already that old. So it was about time that I started to use it, and even updated some old code to use it. :-) Guido André Somers an...@familiesomers.nl wrote: igor.mironc...@gmail.com

Re: [Interest] Calling reject() on a QFileDialog on Macintosh

2014-06-26 Thread John Weeks
On Jun 25, 2014, at 11:03 PM, Rutledge Shawn shawn.rutle...@digia.com wrote: Thanks Shawn. That sounds like a bug. Perhaps I will build a sample application and file a bug. What do you mean about the modal state, the window is active but you can’t interact with anything in it? Or it’s

Re: [Interest] QObject::connect

2014-06-26 Thread Thiago Macieira
Em qui 26 jun 2014, às 19:11:31, Guido Seifert escreveu: Wow, this question is already more than a year old. I wasn't aware that this new connection syntax is already that old. So it was about time that I started to use it, and even updated some old code to use it. :-) I wrote the initial

Re: [Interest] QObject::connect

2014-06-26 Thread Thiago Macieira
Em qui 26 jun 2014, às 20:04:11, igor.mironc...@gmail.com escreveu: Thanks guys for your answers. I found what I was seeking. And what about parentheses and QMetaMethod that I wanted to concretize what I mean under new syntax of connection. As new connect method is:

Re: [Interest] QObject::connect

2014-06-26 Thread Guido Seifert
Ah, that's why he wrote so many blog posts about the new syntax. Helped me quite a lot to get started. Nevertheless: Good job, both of you. I really like the new syntax. :-) Guido On Thu, 26 Jun 2014 11:00:59 -0700 Thiago Macieira thiago.macie...@intel.com wrote: Olivier polished the

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

2014-06-26 Thread Railway Coder
Hi, since there was no reply yet, I've uploaded the example to bitbucket. A simple git import from qtcreator with following URL should make it very simple to test it: Clone URL: https://railwayco...@bitbucket.org/railwaycoder/qml_cpp_signal_slots.git Please try with Qt5.2 and Qt5.3. If you get

Re: [Interest] QObject::connect

2014-06-26 Thread andre
igor.mironc...@gmail.com schreef op 26.06.2014 22:05: I'm sorry. But what blog posts are you talking about? The blog you find here: http://woboq.com/blog/ André ___ Interest mailing list Interest@qt-project.org

Re: [Interest] QObject::connect

2014-06-26 Thread igor.mironchik
Very good blog. Thanks for the link. -Original Message- From: an...@familiesomers.nl Sent: Thursday, June 26, 2014 9:17 PM To: interest@qt-project.org Subject: Re: [Interest] QObject::connect igor.mironc...@gmail.com schreef op 26.06.2014 22:05: I'm sorry. But what blog posts are you

Re: [Interest] Creating a debug log with a stacktrace on Linux

2014-06-26 Thread Rogers Nate
Works great, thanks Thiago!! On 06/26/2014 12:11 PM, Thiago Macieira wrote: Em qui 26 jun 2014, às 08:45:34, Thiago Macieira escreveu: Em qui 26 jun 2014, às 14:29:15, Rogers Nate escreveu: I built it as a debug build. You need one extra flag: QMAKE_LFLAGS_APP += -Wl,-rdynamic Sorry,

[Interest] ADDING LIGHTING EFFECT TO AN EXISTING Qt PROJECT

2014-06-26 Thread Amey Patil
Hello Sir,Ma'am, I have a Qt project of a rotating cube using shaders. I want to add the light effect to it. How do I combine the two shader files into one mainWindow? also these fragment and vertex files are in .frag and .vs while, the one which I have are in .glsl (both). Is it a problem?

Re: [Interest] Creating a debug log with a stacktrace on Linux

2014-06-26 Thread Thiago Macieira
Em qui 26 jun 2014, às 19:50:28, Rogers Nate escreveu: Works great, thanks Thiago!! On 06/26/2014 12:11 PM, Thiago Macieira wrote: Em qui 26 jun 2014, às 08:45:34, Thiago Macieira escreveu: Em qui 26 jun 2014, às 14:29:15, Rogers Nate escreveu: I built it as a debug build. You need

[Interest] Is is possible to connect QML signals to C++ slot using new syntax?

2014-06-26 Thread 程梁
In the documents I read about Connecting to QML Signals. Connect QML signals to C++ slot still using old syntax. Is it possible to connect QML signals to C++ slot using new syntax? The problem is QML item type is dynamic so cannot get its signals pointers. Thank you. Best regards, Cheng Liang

Re: [Interest] Is is possible to connect QML signals to C++ slot using new syntax?

2014-06-26 Thread Thiago Macieira
Em sex 27 jun 2014, às 02:41:05, 程梁 escreveu: In the documents I read about Connecting to QML Signals. Connect QML signals to C++ slot still using old syntax. Is it possible to connect QML signals to C++ slot using new syntax? The problem is QML item type is dynamic so cannot get its signals