Re: [Interest] how to add comments of member function defined with macro?

2013-02-25 Thread tang ke
On 02/26/2013 02:52 PM, tang ke wrote: > On 02/26/2013 01:11 PM, Thiago Macieira wrote: >> On terça-feira, 26 de fevereiro de 2013 11.54.43, tang ke wrote: >>> #define _DECLARE_INT2ENUMSTRING(Enum) \ >> Note that underscore + capital letter is reserved to the compiler. You should >> not use that co

Re: [Interest] how to add comments of member function defined with macro?

2013-02-25 Thread tang ke
On 02/26/2013 01:11 PM, Thiago Macieira wrote: > On terça-feira, 26 de fevereiro de 2013 11.54.43, tang ke wrote: >> #define _DECLARE_INT2ENUMSTRING(Enum) \ > Note that underscore + capital letter is reserved to the compiler. You should > not use that combinations. > > The compilers have been activ

Re: [Interest] how to add comments of member function defined with macro?

2013-02-25 Thread Thiago Macieira
On terça-feira, 26 de fevereiro de 2013 11.54.43, tang ke wrote: > #define _DECLARE_INT2ENUMSTRING(Enum) \ Note that underscore + capital letter is reserved to the compiler. You should not use that combinations. The compilers have been actively using those, like the new C11 _Atomic and _Bool and

Re: [Interest] how to add comments of member function defined with macro?

2013-02-25 Thread tang ke
On 02/26/2013 12:32 PM, Sze Howe Koh wrote: > On 26 February 2013 11:54, tang ke wrote: >> Hey everybody! >> How can I use the macro with qdoc? >> Such as: >> I defined a macro with macro-def.h >> >> #define _DECLARE_INT2ENUMSTRING(Enum) \ >> QString int2string(int value) { \ >> const QMetaObject*

Re: [Interest] how to add comments of member function defined with macro?

2013-02-25 Thread Sze Howe Koh
On 26 February 2013 11:54, tang ke wrote: > Hey everybody! > How can I use the macro with qdoc? > Such as: > I defined a macro with macro-def.h > > #define _DECLARE_INT2ENUMSTRING(Enum) \ > QString int2string(int value) { \ > const QMetaObject* meta = this->metaObject(); \ > for (int j = 0; j < me

[Interest] how to add comments of member function defined with macro?

2013-02-25 Thread tang ke
Hey everybody! How can I use the macro with qdoc? Such as: I defined a macro with macro-def.h #define _DECLARE_INT2ENUMSTRING(Enum) \ QString int2string(int value) { \ const QMetaObject* meta = this->metaObject(); \ for (int j = 0; j < meta->enumeratorCount(); ++j) { \ QMetaEnum m = meta->enumerat

[Interest] qdoc link error

2013-02-25 Thread tang ke
Hey everybody! Now I use the qdoc to get the develop doc file, and I found the url error when I use the qt.index to link the qt online doc. Such as : I use the QObject::deleteLater, It will link to http://qt.digia.com/#deleteLater. -- 应用部 唐科 TEL : 0512-52308661-88686 FAX: 0512-52308688 MP :

[Interest] Using QtQuick 2.0 Screen.orientation

2013-02-25 Thread Jim Hodapp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm attempting to be notified in my QML application of when the underlying QScreen instance (one that I've implemented for my platform as a QPA plugin) changes the orientation property. In my QPA plugin, I am calling QWindowSystemInterface::handleScree

Re: [Interest] Namespace on Custom C++ property in QML?

2013-02-25 Thread Charley Bay
> > charley sayeth: > > I'm sure this is a silly question, but why are these different: > > > > // FILE: MyItem0.qml > > import QtQuick 2.0 > > import my.custom.cpp 1.0//<==NOTE NO "as" > > > > Item { > > property MyCppType myCppType // WORKS > > } > > > > // FILE: MyItem1.qml > > import QtQu

Re: [Interest] Namespace on Custom C++ property in QML?

2013-02-25 Thread Alan Alpert
On Mon, Feb 25, 2013 at 5:56 AM, Charley Bay wrote: > I'm sure this is a silly question, but why are these different: > > // FILE: MyItem0.qml > import QtQuick 2.0 > import my.custom.cpp 1.0//<==NOTE NO "as" > > Item { > property MyCppType myCppType // WORKS > } > > // FILE: MyItem1.qml > im

Re: [Interest] Windows application's main window does not have standard Windows' main-window's features

2013-02-25 Thread Jason H
It sounds like you have an "owner-drawn" window titlebar which is all the latest rage in browsers (chrome and FF do it). It's been _years_ since I dealt with one.  I would expect someone to set it to "no titlebar" and just plopped in buttons where the controls should be. Your first step would be

Re: [Interest] Windows application's main window does not have standard Windows' main-window's features

2013-02-25 Thread Scott Aron Bloom
On 2/24/2013 6:41 PM, Thiago Macieira wrote: > On domingo, 24 de fevereiro de 2013 18.29.57, Suresh Govindachar wrote: >> Hello, >> >> Currently, the main window of an application written in QT on and for >> 64 bit Windows 7 does not have the usual Windows title bar -- I mean >> the bar that has

[Interest] Namespace on Custom C++ property in QML?

2013-02-25 Thread Charley Bay
I'm sure this is a silly question, but why are these different: // FILE: MyItem0.qml import QtQuick 2.0 import my.custom.cpp 1.0//<==NOTE NO "as" Item { property MyCppType myCppType // WORKS } // FILE: MyItem1.qml import QtQuick 2.0 import my.custom.cpp 1.0 as MyCpp //<==NOTE "as" Item

Re: [Interest] Debugging on Mac OS X

2013-02-25 Thread Rutledge Shawn
On 23 Feb 2013, at 6:29 PM, Paul Floyd wrote: > Hi > > I'm trying to build and run an app that a colleague wrote, without too much > success. It works OK on Linux (and Windows, but I'm not certain of that). > > I have > Mac OS X 10.6.8 > XCode 4.0 > clang 3.2 > Qt 4.8.4 built with whatever com

Re: [Interest] Qt5.1+, custom QQuickItem with text, not using QPainter?

2013-02-25 Thread Bache-Wiig Jens
On Feb 24, 2013, at 4:57 PM, Charley Bay wrote: > I'm deriving from QQuickItem (in C++) to implement custom controls in > Qt5.0.1, and I'd like to render text. > > I don't want to use QQuickPaintedItem (a very simple solution)-- I understand > and endorse the OpenGL API of the new QML Scene G