Re: [Development] Proposal to deprecate the amazing QApplication::globalStrut

2019-12-06 Thread Volker Hilsheimer
> On 5 Dec 2019, at 20:05, André Pönitz wrote: > > On Thu, Dec 05, 2019 at 06:12:53PM +0100, Giuseppe D'Angelo via Development > wrote: >> Il 04/12/19 12:56, Volker Hilsheimer ha scritto: >>> IIRC, then I added that in the early Qt 2 days, anticipating that with >>> Qt/Embedded we might see our

Re: [Development] Proposal to deprecate the amazing QApplication::globalStrut

2019-12-05 Thread André Pönitz
On Thu, Dec 05, 2019 at 06:12:53PM +0100, Giuseppe D'Angelo via Development wrote: > Il 04/12/19 12:56, Volker Hilsheimer ha scritto: > > IIRC, then I added that in the early Qt 2 days, anticipating that with > > Qt/Embedded we might see our widgets landing on touch screens “any moment > > now”. T

Re: [Development] Proposal to deprecate the amazing QApplication::globalStrut

2019-12-05 Thread Giuseppe D'Angelo via Development
Il 05/12/19 19:10, Uwe Rathmann ha scritto: You could argue that a good style API allows to increase all sizes by overloading the virtual methods, but this is very tedious and I doubt, that you can do everything this way. Not necessarily; a style could have on itself the "equivalent" of global

Re: [Development] Proposal to deprecate the amazing QApplication::globalStrut

2019-12-05 Thread Uwe Rathmann
On 12/5/19 6:12 PM, Giuseppe D'Angelo via Development wrote: In this light, what's the idea of a global minimum size useful for? It is/was useful for widget applications running on devices with touch screens, where the default metrics from the styles are too small. You could argue that a go

Re: [Development] Proposal to deprecate the amazing QApplication::globalStrut

2019-12-05 Thread Uwe Rathmann
Hi Shawn, FWIW I did try to make that point during the session, since you weren’t there to do it yourself, that you would like to have something like a table of QVariants instead of only colors (to include things like icons and border line widths and radii), and also that the ColorRole enum sh

Re: [Development] Proposal to deprecate the amazing QApplication::globalStrut

2019-12-05 Thread Giuseppe D'Angelo via Development
Il 04/12/19 12:56, Volker Hilsheimer ha scritto: IIRC, then I added that in the early Qt 2 days, anticipating that with Qt/Embedded we might see our widgets landing on touch screens “any moment now”. The idea was to have a global setting that ensured that widgets and other interactables (such

Re: [Development] Proposal to deprecate the amazing QApplication::globalStrut

2019-12-05 Thread Kai Uwe Broulik
Hi, Am 05.12.19 um 14:25 schrieb Shawn Rutledge: So I’m tempted to think that we could try to extend QPalette to store other data types in addition to colors, but it doesn’t look possible to maintain existing API or implementation enough to be worthwhile; and it would tend to become too much

Re: [Development] Proposal to deprecate the amazing QApplication::globalStrut

2019-12-05 Thread Shawn Rutledge
> On 5 Dec 2019, at 09:14, Uwe Rathmann wrote: > > Unfortunately the session about styles at the QtCS ( > https://wiki.qt.io/Qt_Contributors_Summit_2019_Program#Future_of_QStyle_for_widgets_and_controls > ) had been moved to a time slot where I had already left. > > One thing I had planned to m

Re: [Development] Proposal to deprecate the amazing QApplication::globalStrut

2019-12-05 Thread Uwe Rathmann
On 12/4/19 4:07 PM, Volker Hilsheimer wrote: That’s cool! Sadly, many of our widgets (for instance, none of the item views), and none of our quick controls respect the globalStrut property. QApplication is about widgets, while Qt/Quick is usually QGuiApplication and should be no argument here

Re: [Development] Proposal to deprecate the amazing QApplication::globalStrut

2019-12-04 Thread Volker Hilsheimer
> On 4 Dec 2019, at 13:15, Christoph Feck wrote: > > On 12/04/19 12:56, Volker Hilsheimer wrote: >> Hi, >> >> QApplication::globalStrut is a property that has outlived its purpose. >> >> IIRC, then I added that in the early Qt 2 days, anticipating that with >> Qt/Embedded we might see our widg

Re: [Development] Proposal to deprecate the amazing QApplication::globalStrut

2019-12-04 Thread Christoph Feck
On 12/04/19 12:56, Volker Hilsheimer wrote: Hi, QApplication::globalStrut is a property that has outlived its purpose. IIRC, then I added that in the early Qt 2 days, anticipating that with Qt/Embedded we might see our widgets landing on touch screens “any moment now”. The idea was to have a