[Interest] QTableView - auto check item when row is selected

2016-01-20 Thread Frank Rueter | OHUfx
Hi all, I'm writing a simple table view to display a selection of files available in a repository for the user to select for download. Using the model/view approach I have set the item to isCheckable(True). The one tweak in behaviour I am trying to introduce is that I'd like the checkboxes to

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Hualet Wang
Hi Mironchik, your example is very helpful. It seems that QListView is just what I want. I'll take a deeper loop at it. Thank you. 2016-01-20 23:36 GMT+08:00 Igor Mironchik : > Just to clarification. > > Don't forget to setWrapping( true ) on QListView. With such settings list > view will be disp

Re: [Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols

2016-01-20 Thread Mike Jackson
> On Jan 20, 2016, at 4:26 PM, Thiago Macieira > wrote: > > On Wednesday 20 January 2016 09:50:51 Nils Jeisecke via Interest wrote: >> On Tue, Jan 19, 2016 at 5:29 PM, Thiago Macieira >> >> wrote: >>> Yes. Debug symbols in the pre-compiled builds do not work. >> >> Is this a known issue or s

[Interest] QML ListView not updating with ListModels

2016-01-20 Thread Jason H
I am implementing a model where items have a "check" property. The GUI calls it a Toggle. If the first item is checked, all other items should be unchecked, and vice versa. In my delegate I have: Toggle { id: toggle checked: check onCheckedChanged: { mod

Re: [Interest] Mac OS X Exit Dock Action

2016-01-20 Thread Jérôme Godbout
Hi, If you have a QCoreApplication or any derivated class, you could hook yourself on the following signal: QCoreApplication::aboutToQuit() or could use the following on QMainWindow: http://doc.qt.io/qt-5/qwidget.html#closeEvent The latter allow you to catch the event and interrupt it if needed (

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Thiago Macieira
On Wednesday 20 January 2016 12:34:33 Mojmír Svoboda wrote: > On 20.1.2016 11:26, Igor Mironchik wrote: > > Just looked a little at your code. And that what I can say: your code > > has nothing with QStringLiteral. > > QStringDataTable uses the same technique as QStringLiteral. There's no such cl

Re: [Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols

2016-01-20 Thread Thiago Macieira
On Wednesday 20 January 2016 09:50:51 Nils Jeisecke via Interest wrote: > On Tue, Jan 19, 2016 at 5:29 PM, Thiago Macieira > > wrote: > > Yes. Debug symbols in the pre-compiled builds do not work. > > Is this a known issue or shall I create a bug report? It's a known and, AFAIU, unfixable issue

[Interest] Mac OS X Exit Dock Action

2016-01-20 Thread Joey Kleingers
Hello all, Every Qt application on Mac OS X has a built-in “Quit" action item that is in the menu connected to the application’s icon in the dock.  Is there a way to hook up a slot to that action, so that when it’s triggered, it drops into my own Quit slot instead of Qt’s own Quit function??  I

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Igor Mironchik
Just to clarification. Don't forget to setWrapping( true ) on QListView. With such settings list view will be displayed as table. And you can play with scroll bars... On 20.01.2016 17:52, Hualet Wang wrote: Really ? That’s quite good enough for me if it’s true. Thank you for you suggestion,

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Igor Mironchik
Hi, sorry for noise, forgot to write to the list... #include #include #include #include #include class Delegate :public QStyledItemDelegate { public: Delegate() { } void paint( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & i

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Igor Mironchik
Look at this example: #include #include #include #include #include class Delegate :public QStyledItemDelegate { public: Delegate() { } void paint( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const { pain

Re: [Interest] Add margin spacing between QComboBox item icon and text ?

2016-01-20 Thread Edward Sutton
> On Jan 20, 2016, at 8:46 AM, william.croc...@analog.com wrote: > > >>> >>> I do not remember why I added a styleSheet. Perhaps to make it more >>> fat-finger >>> touch-friendly for Android or iOS. Anyway, I must re-think and re-test. >> >> I always tell my customers to stay away from style shee

Re: [Interest] Add margin spacing between QComboBox item icon and text ?

2016-01-20 Thread André Somers
Op 20/01/2016 om 15:46 schreef william.croc...@analog.com: I do not remember why I added a styleSheet. Perhaps to make it more fat-finger touch-friendly for Android or iOS. Anyway, I must re-think and re-test. I always tell my customers to stay away from style sheets. They are way more

Re: [Interest] Add margin spacing between QComboBox item icon and text ?

2016-01-20 Thread william.croc...@analog.com
I do not remember why I added a styleSheet. Perhaps to make it more fat-finger touch-friendly for Android or iOS. Anyway, I must re-think and re-test. I always tell my customers to stay away from style sheets. They are way more trouble than what they are worth. My complaint: Some things c

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Hualet Wang
Really ? That’s quite good enough for me if it’s true. Thank you for you suggestion, I’ll check it out. :D > 在 2016年1月20日,下午10:48,Igor Mironchik 写道: > > Hi, > > On 20.01.2016 17:09, Hualet Wang wrote: >>> And one more, what about QTableWidget with icons? And why you decided that >>> QTableVi

[Interest] QDirectFbWindow: performance issues due to alphachannel enabled

2016-01-20 Thread Boettger, Heiko
Hi, we have a very slow arm v5 device without hardware acceleration. When using QT5 and directfb we see a huge performance difference compared to qt4. After looking deeper into the code to find the reason for this, I saw that the QDirectFbWindow::createDirectFbWindow method always sets the capa

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Igor Mironchik
Hi, On 20.01.2016 17:09, Hualet Wang wrote: And one more, what about QTableWidget with icons? And why you decided that QTableView will not do the trick? Because I’m not sure if QTableView is capable of re-layouting the items after I delete one or more cells from it. And that’s the whole point

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Igor Mironchik
On 20.01.2016 17:09, Hualet Wang wrote: And one more, what about QTableWidget with icons? And why you decided that QTableView will not do the trick? Because I’m not sure if QTableView is capable of re-layouting the items after I delete one or more cells from it. And that’s the whole point of

Re: [Interest] Add margin spacing between QComboBox item icon and text ?

2016-01-20 Thread Bo Thorsen
Den 20-01-2016 kl. 15:23 skrev Edward Sutton: I don't know what you did, but that's not how it normally looks. Obviously not. You are correct. My mistake. I could not reproduce when I made a new app using both SVG and PNG image sources. The root cause was my icon sizes were too big for the Q

Re: [Interest] Add margin spacing between QComboBox item icon and text ?

2016-01-20 Thread Edward Sutton
> >I don't know what you did, but that's not how it normally looks. Obviously > >not. You are correct. My mistake. I could not reproduce when I made a new app using both SVG and PNG image sources. The root cause was my icon sizes were too big for the QComboBox::iconSize. I had also found som

Re: [Interest] Build a Photos(Mac) copy with Qt Widgets

2016-01-20 Thread Hualet Wang
> And one more, what about QTableWidget with icons? And why you decided > that QTableView will not do the trick? Because I’m not sure if QTableView is capable of re-layouting the items after I delete one or more cells from it. And that’s the whole point of my question. > And QtMWidgets is for t

Re: [Interest] Summary of Android 6.0 issues?

2016-01-20 Thread Nuno Santos
Hey, Just make sure you bundle openssl as additional libs if your application requires openssl So far so good. Regards, Nuno > On 20 Jan 2016, at 14:07, Jason H wrote: > > My phone finally got the OTA update for marshmallow - but I have not > installed it yet. > > I am developing with Qt

[Interest] Summary of Android 6.0 issues?

2016-01-20 Thread Jason H
My phone finally got the OTA update for marshmallow - but I have not installed it yet. I am developing with Qt on Android. Is there anyone else here that has 6.0? Any issues developing for Android? Not that it matters, but my host platform is OSX. Many thanks in advance ___

Re: [Interest] Deploy Qt on windows with relative paths

2016-01-20 Thread Denis Shienkov
> or simply put "deploy-qt-runtime" to the path for current console session, > or create a batch setting the path and starting the app. this does not work, see my first message! > On Windows you can try to set up working directory in the shortcut... it is not an option for me BR, Denis 2016-0

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Igor Mironchik
On 20.01.2016 14:34, Mojmír Svoboda wrote: On 20.1.2016 11:26, Igor Mironchik wrote: Just looked a little at your code. And that what I can say: your code has nothing with QStringLiteral. QStringDataTable uses the same technique as QStringLiteral. QStringLiteral uses static structs! You d

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Mojmír Svoboda
On 20.1.2016 11:26, Igor Mironchik wrote: Just looked a little at your code. And that what I can say: your code has nothing with QStringLiteral. QStringDataTable uses the same technique as QStringLiteral. And I don't understand why you need such a "crazy" :) code? May be would be much more b

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Igor Mironchik
On 20.01.2016 14:25, Mojmír Svoboda wrote: On 20.1.2016 11:38, Igor Mironchik wrote: Why are you deleting model? i am trying to remove everything i can so that there are no references to the underlying data (m_strings). Just implement clear() method and between beginResetModel(), endReset

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Mojmír Svoboda
On 20.1.2016 11:38, Igor Mironchik wrote: Why are you deleting model? i am trying to remove everything i can so that there are no references to the underlying data (m_strings). Just implement clear() method and between beginResetModel(), endResetModel() delete your data. And I guess that thi

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Igor Mironchik
On 20.01.2016 12:45, Mojmír Svoboda wrote: On 19.1.2016 10:37, Giuseppe D'Angelo wrote: Please trim down to a small testcase and submit a bug report. If your model is well-behaving the view can't cache the option that way. I managed to reproduce the behaviour with QStandardItemModel, so her

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Igor Mironchik
Hi, On 20.01.2016 12:45, Mojmír Svoboda wrote: On 19.1.2016 10:37, Giuseppe D'Angelo wrote: Please trim down to a small testcase and submit a bug report. If your model is well-behaving the view can't cache the option that way. I managed to reproduce the behaviour with QStandardItemModel, so

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-20 Thread Koehne Kai
> -Original Message- > [...] > Out of curiosity, have you ever considered building ICU with separate .dat > file so people could just replace it without any hassle? Yes. https://bugreports.qt.io/browse/QTBUG-29828 and https://codereview.qt-project.org/#/c/49840/ The trouble is that w

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-20 Thread Konstantin Tokarev
20.01.2016, 12:15, "Koehne Kai" : >>  -Original Message- >>  From: Interest [mailto:interest-boun...@qt-project.org] On Behalf Of Elvis >>  Stansvik >>  Sent: Tuesday, January 19, 2016 8:38 PM >>  To: John Layt >>  Cc: interest@qt-project.org Interest >>  Subject: Re: [Interest] Replaci

Re: [Interest] invalidated copies of QString in QCommonStyle::cachedOption

2016-01-20 Thread Mojmír Svoboda
On 19.1.2016 10:37, Giuseppe D'Angelo wrote: Please trim down to a small testcase and submit a bug report. If your model is well-behaving the view can't cache the option that way. I managed to reproduce the behaviour with QStandardItemModel, so here is the repro case: https://bugreports.qt.io/

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-20 Thread Koehne Kai
> -Original Message- > From: Interest [mailto:interest-boun...@qt-project.org] On Behalf Of Elvis > Stansvik > Sent: Tuesday, January 19, 2016 8:38 PM > To: John Layt > Cc: interest@qt-project.org Interest > Subject: Re: [Interest] Replacing icudtXX.dll without rebuilding Qt? > > 2016-

Re: [Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols

2016-01-20 Thread Nils Jeisecke via Interest
On Tue, Jan 19, 2016 at 5:29 PM, Thiago Macieira wrote: > Yes. Debug symbols in the pre-compiled builds do not work. Is this a known issue or shall I create a bug report? Nils ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org