[Interest] Qt5 QML TouchPoint pressure always return -1, but QWidget tabletEvent works well

2014-07-15 Thread Leslie Zhai
Hi Qt developers, In Qt5.3.1 qtdeclarative/examples/quick/touchinteraction, There is MultiPointTouchArea and TouchPoint example, but TouchPoint touch1.pressure, it always print out -1 Why?! because Qt5 removed X11 and Xi relatived part? https://github.com/krre/AprilBrush-Desktop/blob/master/cp

[Interest] How to pass key-press/mouse-wheel events to underlying window after QWidget::createWindowContainer()

2014-07-15 Thread Sze Howe Koh
Hello, I'm on Windows 8.1 ×64. I got a HWND from an external process (Notepad.exe, in this case) and embedded it inside a QWidget: // Get the HWND using Windows API WId id = (WId)FindWindow(NULL, L"Untitled - Notepad"); // Embed the window in a widget QWindow* window = QWindow::fromWinId(id); QW

[Interest] Checking QML property against null

2014-07-15 Thread Alex Montgomery
Hello, Sorry for what seems like an incredibly simple question, but how do I check a QML property against null without triggering the Qt warning, "TypeError: Cannot read property of null"? I have a type that has a custom property declared like this: property MyType myProp: null My program then w

[Interest] Qt5 QFileDialog Directory Only behavior different on Xp and Windows7

2014-07-15 Thread Duane
I'm using this : QFileDialog fd(this,"Select folder",targetFolder); fd.setFileMode(QFileDialog::Directory); fd.setOption(QFileDialog::ShowDirsOnly); if(fd.exec() == QDialog::Accepted) { ... } On windows7 (and linux) this works as expected. It opens with only directories displayed and the "

Re: [Interest] Qt5, XCB and X11

2014-07-15 Thread Till Oliver Knoll
Am 15.07.2014 um 18:54 schrieb Ian Monroe : ... > Shipping all dependencies of a > Qt GUI application is just not a big deal, as apparently X servers > don't mind newer client libraries as far as I can tell. I think the most recent twist of this thread was more about conserving resources such as

[Interest] QTextLayout::isValidCursorPosition() gives different result in Qt 5.3.0 vs Qt 4.8.6?

2014-07-15 Thread John Weeks
I don't know very much about QTextLayout... With this code copied from our very large application, when qtext contains "A": QTextLayout qLayout(qtext, f); qLayout.beginLayout(); QTextLine qLine= qLayout.createLine(); // If there is no text left to be inserted into the la

[Interest] Using custom event dispatcher breaks on OS X

2014-07-15 Thread Šarūnas Valaškevičius
Hi, In my project (qtjs-generator) I'm using a custom event dispatcher which works great on Linux. The problem is that once I use it on a mac the app breaks as cocoa is not initialised. I've tried creating the platform specific event dispatcher and proxy the initialisation to it but it didn't wo

Re: [Interest] Qt5, XCB and X11

2014-07-15 Thread Ian Monroe
On Tue, Jul 15, 2014 at 9:29 AM, Thiago Macieira wrote: > On Tuesday 15 July 2014 15:40:52 Rutledge Shawn wrote: >> Sounds like a good start, but with some limitations: it's done by periodic >> scanning; and Linux Documentation/vm/ksm.txt says >> >> KSM only operates on those areas of address spa

Re: [Interest] Qt5, XCB and X11

2014-07-15 Thread Thiago Macieira
On Tuesday 15 July 2014 15:40:52 Rutledge Shawn wrote: > Sounds like a good start, but with some limitations: it's done by periodic > scanning; and Linux Documentation/vm/ksm.txt says > > KSM only operates on those areas of address space which an application > has advised to be likely candidates

Re: [Interest] Qt5, XCB and X11

2014-07-15 Thread Rutledge Shawn
On 15 Jul 2014, at 5:04 PM, Thiago Macieira wrote: > On Tuesday 15 July 2014 10:07:18 Rutledge Shawn wrote: >> I was thinking the solution to both problems might be some sort of >> deduplication by hashing, both in storage and in memory. It could be done >> at a block level or at the level of in

Re: [Interest] Data Distribution Service as a new Qt IPC?

2014-07-15 Thread Miller, Doug
I've seen two proprietary Qt wrappers for DDS, but the one I saw online before I can't seem to find now. The proprietary wrappers were achieved with modest effort. The point is that there is interest in such a wrapper and that an open sourced version could be easily obtained. DDS has a spec

Re: [Interest] Qt5, XCB and X11

2014-07-15 Thread Thiago Macieira
On Tuesday 15 July 2014 10:07:18 Rutledge Shawn wrote: > I was thinking the solution to both problems might be some sort of > deduplication by hashing, both in storage and in memory. It could be done > at a block level or at the level of individual functions. It's probably a > research project s

Re: [Interest] Data Distribution Service as a new Qt IPC?

2014-07-15 Thread Jereme Lamothe
I'd be very interested to see this as well, and to contribute when possible. I'm currently working on a project with multiple processes communicating lots & lots of data over a network via DDS. Doug, you mentioned having seen Qt wrappers for DDS in past. Are these internal to where you work, or co

Re: [Interest] Q_ENUMS with foreign enum ?

2014-07-15 Thread Martin Koller
On Monday 14 July 2014 21:47:00 Konstantin Tokarev wrote: > > 14.07.2014, 13:39, "Martin Koller" : > > On Monday 14 July 2014 09:11:06 Rutledge Shawn wrote: > >> On 12 Jul 2014, at 10:03 AM, Martin Koller wrote: > >>> Hi, > >>> > >>> is there any possibility to use an enum in the Q_ENUMS macro

Re: [Interest] Qt5, XCB and X11

2014-07-15 Thread Rutledge Shawn
On 15 Jul 2014, at 12:42 PM, Till Oliver Knoll wrote: > Otherwise the dynamic runtime linker would have to compare every bit of a > newly to be linked library with any other library being currently in memory, > in order to verify the identity of those libs. That would be done in advance: the fil

Re: [Interest] Qt5, XCB and X11

2014-07-15 Thread Roger Leigh
On Tue, Jul 15, 2014 at 10:07:18AM +, Rutledge Shawn wrote: > > On 12 Jul 2014, at 3:03 PM, Till Oliver Knoll wrote: > > > Am 11.07.2014 um 20:52 schrieb Andreas Pakulat : > > > >> ... > >> > >> Its true that it makes it harder, but it also means having to carry around > >> more duplicated

Re: [Interest] Qt5, XCB and X11

2014-07-15 Thread Till Oliver Knoll
Am 15.07.2014 um 12:07 schrieb Rutledge Shawn : > ... >> >> Yes, that's the downside of BYOL ("Bring Your Own Libraries") ;) [...] >> >> But with spinning hard disks the size of terrabytes and SSDs the size of >> Hey! Wait a minute! ;) > > But you probably don't have terabytes of RAM, We'

Re: [Interest] Qt5, XCB and X11

2014-07-15 Thread Rutledge Shawn
On 12 Jul 2014, at 3:03 PM, Till Oliver Knoll wrote: > Am 11.07.2014 um 20:52 schrieb Andreas Pakulat : > >> ... >> >> Its true that it makes it harder, but it also means having to carry around >> more duplicated code. Recently had to add Qt5 libs for a dozen example apps >> we ship and that

[Interest] ActiveQt: exposing QObject* as Q_PROPERTY

2014-07-15 Thread Julien Maille
Dear All, I know it is quite hard to get support on ActiveQt, probably because only a few people use this module. Here is my problem. I have an application that is composed of different QtPlugin. I already have added a COM compoment to the main application. Now I would like to give access to so