[Interest] jpeg

2013-03-22 Thread tang ke
hello, everybody Now I found a problem with JPEG, when I use the QPixmap(X.JPEG),but get width and height is 0, and I read the JPEG file, the headers is FF D8 FF E1,but the QPixmap is read the FF D8 FF E0 is ok. how can i solve this problem. Thanks very much -- 应用部 唐科 TEL : 0512-52308661

Re: [Interest] webkit v8 4.8

2013-03-17 Thread tang ke
On 03/16/2013 11:24 PM, Thiago Macieira wrote: > On sábado, 16 de março de 2013 21.41.29, tang ke wrote: >>> Really. WebKit can only support JavaScriptCore. >> why? nobody to port the v8 to qt webkit ? > Because it's not easy. Now the QtScript use the v8 core with qt5, t

Re: [Interest] webkit v8 4.8

2013-03-16 Thread tang ke
On 03/12/2013 05:23 PM, Thiago Macieira wrote: > On terça-feira, 12 de março de 2013 13.47.10, tang ke wrote: >> hi everybody. >> I want to build the qt webkit module with v8 in 4.8 version, OS is windows. >> >> I search the web, and get the reponse that in windows OS,

Re: [Interest] qmake -query

2013-03-15 Thread tang ke
Now, I do it. I can edit the qt.conf file located in qmake.exe directory with [Paths] Prefix=c:/qt-sdk/ On 03/15/2013 10:34 AM, tang ke wrote: > Thanks very much. > > but I found the system registry, I find that the > HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefault

Re: [Interest] qmake -query

2013-03-14 Thread tang ke
AM, Thiago Macieira wrote: > On sexta-feira, 15 de março de 2013 10.06.46, tang ke wrote: >> hi everybody! >> Now I download the qt-opensource-mingw32-4.8.2.zip from the web. and >> install it. >> >> but after I use the qmake -unset QT_VERSION commands, then I use qm

[Interest] qmake -query

2013-03-14 Thread tang ke
hi everybody! Now I download the qt-opensource-mingw32-4.8.2.zip from the web. and install it. but after I use the qmake -unset QT_VERSION commands, then I use qmake -query, It can display the QT_VERSION . who can tell me where the qmake -set prop value is stored with windows? thanks in advanc

[Interest] webkit v8 4.8

2013-03-11 Thread tang ke
hi everybody. I want to build the qt webkit module with v8 in 4.8 version, OS is windows. I search the web, and get the reponse that in windows OS, qt-webkit is not support v8. really? If I can do it, who can give the build step with web url? Thanks in advance. -- 应用部 唐科 TEL : 0512-52308661

Re: [Interest] qdoc link error

2013-02-28 Thread tang ke
.pasion=digia@qt-project.org > [interest-bounces+jerome.pasion=digia@qt-project.org] på vegne av > tang ke [ta...@lemote.com] > Sendt: 26. februar 2013 04:44 > To: interest@qt-project.org > Emne: [Interest] qdoc link error > > Hey everybody! > > Now I use the

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

2013-02-26 Thread tang ke
Thanks very much. On 02/27/2013 02:58 PM, Carel Combrink wrote: > > My defined macro such as Q_OBJECT, the macro will define the common > member function. > > > I have the same function, but instead of a macro I make use of > templates. This can be done since the metaObject can be obtaine

Re: [Interest] how to remove QGraphicsEllipseItem from parent

2013-02-26 Thread tang ke
ing or resizing) ? > If not it means that scene was not updated and you can fix it calling > QGraphicsScene::update yourself. > > Alex > > On Sun, Feb 24, 2013 at 5:00 AM, tang ke wrote: >> On 02/24/2013 07:56 PM, Vincent Cai wrote: >>> Dear All, >>> >

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. Yo

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. > > Th

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 i

[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 :

Re: [Interest] how to remove QGraphicsEllipseItem from parent

2013-02-24 Thread tang ke
On 02/24/2013 07:56 PM, Vincent Cai wrote: > > Dear All, > > I have a QGraphicsEllipseItem whose parent is a QGraphicsRectItem > which is shown on a scene. > > When I delete the QGraphicsEllipseItem, why it is still shown on the > scene? > > How can I remove it from the scene? > > Thanks, > > Vin

Re: [Interest] Is it possible to use QPixmap from non guy thread in Qt5?

2013-02-14 Thread tang ke
yes, you can use the api code of platform. with windows platform: int nScreenWidth = GetSystemMetrics(SM_CXSCREEN); int nScreenHeight = GetSystemMetrics(SM_CYSCREEN); HWND hDesktopWnd = GetDesktopWindow(); HDC hDesktopDC = GetDC(hDesktopWnd); HDC hCaptureDC = C

Re: [Interest] about QSettings

2012-07-18 Thread tang ke
Service Pack 3 于 2012年07月19日 01:47, Jason H 写道: > The registry can be locked down as part of domain policy. And later > versions of XP has it secured by default. What service pack are you > running? > > > ----

Re: [Interest] about QSettings

2012-07-17 Thread tang ke
gt; protected by UAC, and you need to escalate to write to it. Try running > the program by "Run as Administrator" and I bet it will work... > > -------- > *From:* tang ke > *To:* interest@qt-project.org > *Sen

[Interest] about QSettings

2012-07-17 Thread tang ke
hi, when i use the qt 4.7.4 with windows xp, i found that when i use the QSettings to write sub key of HKEY_LOCAL_MACHINE, it fails. but when i write the sub key of HKEY_CURRENT_USER, it success. i know that QSettings use the windows api (eg RegCreateKey) to do it, so I use the RegCreateKey to