Re: [Interest] autosave on OSX

2012-10-25 Thread Daniel Price
That's a very old project that relies on Qt extensions that I couldn't find (QSingleApplication). It's not too hard to implement a classic Cocoa-Doc style app with Qt although it's still harder than it should be. For example, I found this sample document-based app using Qt. It does not use NS

[Interest] autosave on OSX

2012-10-24 Thread Daniel Price
Is it possible to implement autosave in Qt/mac applications as was introduced in OSX Lion (and refined in Mountain Lion)? Has anyone done this? This email is confidential. It may also be privileged or otherwise protected by work product immunity or other legal ru

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-22 Thread Daniel Price
>Could you elaborate? One of the reasons I prefer QThread is that the >SIGNAL/SLOT provides a thread-safe signalling/communication bridge across >threads. There is that. I've not had a case in my own code however where I needed that. I use invokables (std::function or boost::function) for cal

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-22 Thread Daniel Price
The problem with the subclassing pattern is that you end up with an object spanning two threads. You class is instantiated in the main thread (along with it's member data) but run(), when called, is operating in a different thread. It's all too easy to get into a mess doing this. You should loo

Re: [Interest] Qt 5 and Mac App Store

2012-10-19 Thread Daniel Price
>Ah, okay then, but still: if your application *wanted* to be malicious and, >say, delete the file the user has such selected via file dialog, or maybe even >at some later point by "security-scoping" that file and only delete it >"silently" much much later, then the sandbox would not prevent su

Re: [Interest] Qt 5 and Mac App Store

2012-10-19 Thread Daniel Price
> (I for my part have still Snow Leopard on my work iMac - Mountain Lion is > just for toying around on the MacBook Pro. However to be fair Apple corrected > many issues they completely did wrong in their "Vista" release of Lion: it is almost as good as Snow Leopard again ;) But I am getting OT

Re: [Interest] Qt 5 and Mac App Store

2012-10-19 Thread Daniel Price
lto:interest-bounces+daniel.price=fxhome@qt-project.org] On Behalf Of Till Oliver Knoll Sent: 19 October 2012 10:55 To: Qt Interest Subject: Re: [Interest] Qt 5 and Mac App Store 2012/10/19 Daniel Price : > What's the solution to the file-link issue in Qt? Sandboxing prevents an app

Re: [Interest] Qt 5 and Mac App Store

2012-10-19 Thread Daniel Price
What's the solution to the file-link issue in Qt? Sandboxing prevents an app from reading or writing to any file other than those chosen specifically by a user via powerbox (the native dialogs). So if you app has a 'recent file' list or some other way to access files programmatically, it won't w

Re: [Interest] Is Qt Library for OS X frameworks only?

2012-10-19 Thread Daniel Price
e-signed .app, with the receipt copied to the bundle. If you're doing what I think you're doing, then you're doing it wrong. -Original Message- From: Michael Jackson [mailto:imikejack...@gmail.com] Sent: 18 October 2012 19:43 To: Daniel Price Cc: Qt Project Subject: Re: [I

Re: [Interest] Is Qt Library for OS X frameworks only?

2012-10-18 Thread Daniel Price
>The mac_deploy_qt script *should* be used and any bugs with it should be >reported and fixed. >Ignoring it because of some past issues is pointless. Everytime I've tried to use it, I've hit one show stopper or another. The biggest issues were with Webkit and it was simpler just to write a scri

Re: [Interest] Is Qt Library for OS X frameworks only?

2012-10-18 Thread Daniel Price
works offer no benefit? > > > -Original Message- > From: interest-bounces+daniel.price=fxhome@qt-project.org > [mailto:interest-bounces+daniel.price=fxhome@qt-project.org] On > Behalf Of Andrea Franceschini > Sent: 17 October 2012 16:17 > Cc: interest@qt-proj

Re: [Interest] Is Qt Library for OS X frameworks only?

2012-10-17 Thread Daniel Price
7 October 2012 16:17 Cc: interest@qt-project.org Subject: Re: [Interest] Is Qt Library for OS X frameworks only? 2012/10/17 Daniel Price : > I always build Qt on the Mac without frameworks. I have no idea why > Qt/mac defaults to using fraweworks as they add no value (with one > exceptio

Re: [Interest] Is Qt Library for OS X frameworks only?

2012-10-17 Thread Daniel Price
I always build Qt on the Mac without frameworks. I have no idea why Qt/mac defaults to using fraweworks as they add no value (with one exception - the dummy menu nib) and just make deployment 1000x harder. I just get the impression that someone at Qt read an Apple document that implied that you

[Interest] Prevent drag-selection in QTreeView

2012-10-04 Thread Daniel Price
I have a QTreeView (actually a QTreeWidget) with multiple selection and drag and drop but I want to disable the 'drag and select' behaviour (i.e. if you click and drag an item which is not itself draggable, the selection is extended to include the items that you mouse over). I still want the shi

Re: [Interest] QCombobox - resize list view to horizontal contents

2012-10-04 Thread Daniel Price
e Qt source code to figure out what was going on. The solution is to set the size policy of the custom view AFTER passing it to setView(). From: interest-bounces+daniel.price=fxhome@qt-project.org [mailto:interest-bounces+daniel.price=fxhome@qt-project.org] On Behalf Of Daniel Price Sen

Re: [Interest] My experience porting to Qt5 (on OS X)

2012-09-14 Thread Daniel Price
Yes I've seen all of these problems too and they've been present since Qt 4.6 (a bad release which introduced numerous regressions on OSX). QDesigner is full of glitches and is in need of some attention; the one where the control panel controls 'float' above the panel comes to mind. The QPushBu

Re: [Interest] My experience porting to Qt5 (on OS X)

2012-09-13 Thread Daniel Price
What are the issues with Apples version of Clang? The biggest problem I have with Qt + clang on the mac is the dismal debugging. I can't get LLDB to work with Creator and Apple's ancient GDB is worse than useless. -Original Message- From: interest-bounces+daniel.price=fxhome@qt-pro

Re: [Interest] QML 3D animations using png files

2012-09-05 Thread Daniel Price
I think the OP means PLY files, which are 3D mesh formats. -Original Message- From: interest-bounces+daniel.price=fxhome@qt-project.org [mailto:interest-bounces+daniel.price=fxhome@qt-project.org] On Behalf Of Till Oliver Knoll Sent: 05 September 2012 09:12 To: Qt Interest Subjec

Re: [Interest] QCombobox - resize list view to horizontal contents

2012-09-05 Thread Daniel Price
*bump* Anyone? There must be a way to do this. From: interest-bounces+daniel.price=fxhome@qt-project.org [mailto:interest-bounces+daniel.price=fxhome@qt-project.org] On Behalf Of Daniel Price Sent: 03 September 2012 17:21 To: interest@qt-project.org Subject: [Interest] QCombobox

Re: [Interest] My experience porting to Qt5 (on OS X)

2012-09-04 Thread Daniel Price
Perhaps I'm missing something but a toolbar is a toolbar, no matter if it's under linux, windows or OSX. The MacUnifiedToolbar is just style. I don't see why an API that has worked since 4.x (albeit poorly) should be removed in Qt5. And I have no intention of re-writing my app in QML just to m

[Interest] QCombobox - resize list view to horizontal contents

2012-09-03 Thread Daniel Price
I have a Qt-Windows applicastion. I have a non-editable QComboBox subclass with a custom QAbstractListModel driving it. I have a simple QListView subclass acting as the view for the combobox. I need the list view (NOT the combo) to resize horizontally to fit the widest string in the list inste

[Interest] ItemModel persitantEditors and QSortFilterProxy

2012-08-31 Thread Daniel Price
I have a QAbstractItemModel-based tree view which uses persistentEditors exclusively (supplied by an attached styled item delegate). I intercept the expand and collapse signals in the QTreeView to call openPersistantEditor/closePersistantEditor and this works fines. I've added a QSortFilterProx