
原文链接:DDENIS - Touching the X11
到目前为止,还没有容易的方式让Qt在Linux上使用触摸输入设备。近期在X.org开发者峰会和Ubuntu开发者峰会(很棒!)上,和其他一些对在Linux/X11上支持触摸(这里我们也在讨论有关支持多个点的触摸)感兴趣的朋友一起,已经决定来填补这个鸿沟。新的传送触摸数据的X11协议是基于XInput协议——XInput 2.1发展而成的,并且实验性的服务器端实现还在开发中。这里在Qt中,我们已经决定来试试,并且最近我已经添加了一个Qt分支,在其中支持了这个规范的某些部分。
你不能在炫耀你的视频之前讨论触摸 :p
(译者注:下面视频放在YouTube,也许某些朋友访问不了。)
现在上述工作仍在进行中,一个是因为规范还没有最终定稿,另一个是因为服务器端实现还有很多工作要做(例如抓取的支持和修复很多已知的BUG)。目前的Qt补丁实现仅对XI2.1事件提供了基本支持,例如。但是对于那写喜欢挑战自我的朋友们,下面是一些链接:
实验性地支持XInput 2.1的Qt分支:
http://qt.gitorious.org/+qt-developers/qt/multipoint-touch branch 4.7-with-xinput2.1
带有实验性的补丁的X.org:Ubuntu的二进制发布和源代码
所有实现了内核MT协议的设备都应该可以工作(这里是Ubuntu项目中的一个列表)。
欢迎随时在这里对Qt中的实现以及对Ubuntu多触摸开发进行反馈!
译者注:请用英文在这里参与讨论。
Download the latest release here: www.qt.io/download.
Qt 6 was created to be the productivity platform for the future, with next-gen 2D & 3D UX and limitless scalability.
Find webinars, use cases, tutorials, videos & more at resources.qt.io
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Näytä tämä julkaisu Instagramissa.Henkilön Qt (@theqtcompany) jakama julkaisu
Awesome!
Thanks!
There are various spelling mistakes - can you run some sort of script to check for spelling mistakes in code and documentation?
For example, for a unit test doing --help you get:
-flush : Flushes the resutls
Oh Yeah!!! I was waiting it for months!!! Thanks!
GREAT!!!
Wow !
Thanks for the Visual Studio package too !
Thanks !
Good news! and it's cool to have VS2008 binaries!
Awesomazing !
Why is the Phonon support not available on the Qt 4.6 RC Package on Linux x86?
Is the only way to have Phonon working there is to manually compile Qt from scratch?
Thanks
Would it be possible to do a Mac OS X release with 32bit as well as 64bit binaries? Or just 64bit binaries, if the former is too big?
@detro: Not shipping Phonon sounds unintentional, we'll look into it.
Stephan: The Mac Cocoa packages should be 32- and 64-bit. See the download link in http://qt.nokia.com/develop....
Sorry,
I'm confused.. Goind round in the blog and searching for on the web, I still don't understand if finally Qt 4.6 will support phonon..
Is there anyone who can tell us about that?
Does MSVC version come with 64bit libraries? If not, do you plan to release it (I'm not quite happy that I had to compile it by myself from source code what is very time consuming)? And what about to release QtCreator x64 for Windows - it compiles and it works and you can compile it.
Qt even compiles with 64bit mingw available from mingw-w64 project on sourceforge, but it requires some patching stuff as there are some (stupid) typecasts from pointer to long in Qt code (where ptrdifft or sizet would be much better choice, preventing unwanted errors).
Also, there are lots of errors in ".pro" files for configuring Qt preventing to build Qt with dynamic linkage to external libraries like zlib, libpng, etc. on windows when using mingw. You just do
!contains(QTCONFIG, zlib):!contains(QTCONFIG, no-zlib) {
unix:LIBS += -lz
win32:LIBS += libz.lib
}
which is wrong as on windows one can have gcc/mingw and there should be -lz switch instead of libz.lib one, so further tests on mingw/MSVC are required.
Some patches making Qt compile with mingw-w64 (fixing Qt code errors (present with MSVC x64 build too, but silencely supressed), not mingw's ones) are to be found at http://svn.clazzes.org/svn/.... They are really few lines patches and it would be great to have them in Qt 4.6 so 64bit libraries are really safe and don't crash when they get >4GB pointers.
I can see a -declarative option in the configure, does that means QML will be in Qt 4.6.0, even if not officially supported?
Pity that I have an error when doing:
./configure -declarative
...
Error: Unable to locate the qt-declarative package. Refer to the documentation on how to build the package.
Tested on Linux 64 bits.
Also, that would be nice to have 64bits librairies for Windows.
@Jaroslav: Thanks for the info, feel free to use qt.gitorious.org to submit your patches :)
@Stefano: Qt 4.6 supports Phonon, of course. Phonon is supported since Qt 4.4 (Windows CE support in 4.5).
QGLWidget::renderText is completely broken even in precompiled examples. Tested on X1650 and GF9600, both on Windows 7, both with latest drivers...
I'm getting a build error when building rc1 from source - the error is:
dialogs/qcolordialog_mac.mm:329: error: stray '@' in program
dialogs/qcolordialog_mac.mm:332: error: stray '@' in program
The colordialog_mac.mm file uses "@try" and "@catch" - never seen those before? Is that a Qt thing, or a mistake?
(didn't see this error building 4.5.* nor 4.6.0 beta1).
pc.
I guess there's documentation somewhere, but 2 things I'd like to know:
1. Does VS2008 version work with express version too? What are the pro/con compared to QT creator?
2. Can Symbian binary package be installed "on top of" windows/VS2008 package?
@Paul: "@try" - that's objective-c code. From the looks of the error message it seems that Qt is trying to compile qcolordialog_mac.mm as a plain c++ file. This error escaped our testing here so I have the standard questions for you: On which version of OS X are you building, and what does your configure line look like?
@nicolas: Declarative UI will be a separate package to Qt 4.6, but needed a couple of enablers added to Qt 4.6, one of which is the configure flag.
@KimmoT:
1. The VS2008 package is intended to work with the Express Edition.
2. You should install them in separate directories, as they are stand-alone packages.
@mono2k: Please submit a bug report at http://bugreports.qt.nokia.com. In the bug report, please indicate which pre-compiled windows package you were using (there are five to choose from), and which examples weren't working for you.
Concerning Windows x64 binaries, the situation is somehow paradoxal: Windows is the most popular platform (quantitavely speaking, I guess), and will the smallest binaries, and this is the sole (desktop) platform where only 32 bit binaries are provided. Speaking as a commercial licensee.
Thiago: Sorry for replying so late. I tried both the Qt + Qt Creator SDK download as well as "Qt 4.6.0 RC for Mac OS X Cocoa Debug libs". Check this out:
$ file /Library/Frameworks/QtCore.framework/QtCore
/Library/Frameworks/QtCore.framework/QtCore: Mach-O universal binary with 2 architectures
/Library/Frameworks/QtCore.framework/QtCore (for architecture i386):Mach-O dynamically linked shared library i386
/Library/Frameworks/QtCore.framework/QtCore (for architecture ppc):Mach-O dynamically linked shared library ppc
No 64 bit goodness in there, which is a hassle when compiling Qt applications (need to specify -arch i386 in every project). On the other hand, I couldn't care less about all that PPC code in there. :)
I'm getting the strangest bug viewing the Qt documentation sets, both in Assistant and Creator. See: http://www1.chapman.edu/~do...
My build system is a combination of ICC and LLVM GCC; I'm guessing somewhere in QtHelp there's some macro-included code that's gone awry?
Oh, also re: Paul Colby / Morten, this is a bug (maybe?) with Apple's GCC misidentifying an Objective-C++ file's type. Either use the G++ front end, or possibly try the -ObjC++ flag.
Noticed a strange bug when viewing the Qt documentation sets, both in Assistant and Creator.
See: http://www1.chapman.edu/~do...
My build system is a combination of ICC and LLVM-GCC; I'm guessing the problem lies with a macro-included code block or some such in QtHelp?
Doesn't compile with VS2008.
QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
rtual struct QMetaObject const * __thiscall WebCore::FormDataIODevice::metaObjec
t(void)const " (?metaObject@FormDataIODevice@WebCore@@UBEPBUQMetaObject@@XZ)
QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
rtual void * _thiscall WebCore::FormDataIODevice::qtmetacast(char const *)" (?
qt_metacast@FormDataIODevice@WebCore@@UAEPAXPBD@Z)
QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
rtual int _thiscall WebCore::FormDataIODevice::qtmetacall(enum QMetaObject::Ca
ll,int,void * *)" (?qt_metacall@FormDataIODevice@WebCore@@UAEHW4Call@QMetaObject
@@HPAPAX@Z)
QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
rtual struct QMetaObject const * __thiscall WebCore::QNetworkReplyHandler::metaO
bject(void)const " (?metaObject@QNetworkReplyHandler@WebCore@@UBEPBUQMetaObject@
@XZ)
QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
rtual void * _thiscall WebCore::QNetworkReplyHandler::qtmetacast(char const *)
" (?qt_metacast@QNetworkReplyHandler@WebCore@@UAEPAXPBD@Z)
QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: vi
rtual int _thiscall WebCore::QNetworkReplyHandler::qtmetacall(enum QMetaObject
::Call,int,void * *)" (?qt_metacall@QNetworkReplyHandler@WebCore@@UAEHW4Call@QMe
taObject@@HPAPAX@Z)
QNetworkReplyHandler.obj : error LNK2019: unresolved external symbol "protected:
void __thiscall WebCore::QNetworkReplyHandler::processQueuedItems(void)" (?proc
essQueuedItems@QNetworkReplyHandler@WebCore@@IAEXXZ) referenced in function "pub
lic: void __thiscall WebCore::QNetworkReplyHandler::setLoadMode(enum WebCore::QN
etworkReplyHandler::LoadMode)" (?setLoadMode@QNetworkReplyHandler@WebCore@@QAEXW
4LoadMode@12@@Z)
FrameLoaderClientQt.obj : error LNK2019: unresolved external symbol "protected:
void __thiscall QWebPage::unsupportedContent(class QNetworkReply *)" (?unsupport
edContent@QWebPage@@IAEXPAVQNetworkReply@@@Z) referenced in function "public: vi
rtual void __thiscall WebCore::FrameLoaderClientQt::download(class WebCore::Reso
urceHandle *,struct WebCore::ResourceRequest const &,struct WebCore::ResourceReq
uest const &,class WebCore::ResourceResponse const &)" (?download@FrameLoaderCli
entQt@WebCore@@UAEXPAVResourceHandle@2@ABUResourceRequest@2@1ABVResourceResponse
@2@@Z)
FrameLoaderClientQt.obj : error LNK2019: unresolved external symbol "protected:
void __thiscall QWebPage::downloadRequested(class QNetworkRequest const &)" (?do
wnloadRequested@QWebPage@@IAEXABVQNetworkRequest@@@Z) referenced in function "pu
blic: virtual void __thiscall WebCore::FrameLoaderClientQt::startDownload(struct
WebCore::ResourceRequest const &)" (?startDownload@FrameLoaderClientQt@WebCore@
@UAEXABUResourceRequest@2@@Z)
........libQtWebKitd4.dll : fatal error LNK1120: 9 unresolved externals
NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 9.0
VCBINlink.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 9.0
VCBINnmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
I get it - it's a RC. But it would be real nice to have a working VS version in the future. Even the final 4.5 doesn't compile on VS2008 without errors.
Thomas: I've compiled 4.5/4.6rc1, including WebKit, recently with both MSVC9 and ICC 11.1. Admittedly I don't use the vanilla build system / mkspecs, but WebKit is easily the largest and most complex component of the distribution. It looks like the source files defining the FormDataIODevice and QNetworkReplyHandler classes, possibly one or two others, aren't included in the build when they should be. I'd take a look through the various .pro and .pri files as a first step, or just skip configure with -no-webkit if you don't need it.
@ Thomas Friedl: I haven't been able to reproduce the build failure you describe. Please submit a bug report to http://bugreports.qt.nokia.com, including the complete configure line you used, OS version/patches, VS version/patches and a dump of your environment variables.
Does this means that from now on, we can expect Visual Studio binary packages to be always released, like MinGW ones?
@egarcia: Yes, we intend to release both mingw and vs2008 binary packages for as long as those compilers are in our list of "Tier 1" platforms.
I confirm that the linker errors QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol... are there. Happened to me too.
Fantastic. I'm using Qt 4.6.0 rc for Symbian to implement PhoneGap for Symbian(www.phonegap.com).
Here's a blog about my progress.
http://blogs.nitobi.com/rya...
Also, I'm having a couple of issues, and would love some assistance on these issues:
Cross domain security for local resource: http://discussion.forum.nok...
Adding a QObject as Q_PROPERTY: http://discussion.forum.nok...
Its open source! Helping me is helping the community :)
mysql sqldrivers arent included in visual studio binary edition. Will it be int the 4.6 final, or can somebody explain, if possible, how can i complile it without compiling whole Qt source