Re: [Interest] Custom QSGGeometryNode Scene blending issue

2016-06-07 Thread Gunnar Sletta
Hi Roberto, The opacity of any geometry node is decided by the opacity that comes out of the fragment shader of its material. Depending on how the alpha logic exists in your custom GL renderer, there are two ways to do this. Option 1: If most of the FBO is partially transparent, or if there

Re: [Interest] Qt ownership model

2016-06-07 Thread Till Oliver Knoll
> Am 05.06.2016 um 14:49 schrieb Thiago Macieira : > >> Em sábado, 4 de junho de 2016, às 15:55:47 BRT, Антон Жилин escreveu: >> 3. Widgets without a parent are usually used with QSharedPointer: >> auto obj = QSharedPointer::create(...); >> -- Not so great, it is

[Interest] Adjust rows to content in QML TableView

2016-06-07 Thread Elvis Stansvik
Is it possible? Seems there's only resizeColumnsToContents, no resizeRowsToContents like in QTableView :/ If I really must create my own rowDelegate to do this, is there some way of getting access to the default row delegate, so that I can selectively override just the height property? Thanks in

[Interest] Painting fonts without GUI

2016-06-07 Thread Etienne Sandré-Chardonnal
Hi, When I try painting text over a QImage in a console only application with QPainter::drawText, the program crashes. Is there any way to enable font painting in a non GUI application? It should work without any X server, so in that case Qt should have a fallback font? This does not need to be

Re: [Interest] Adjust rows to content in QML TableView

2016-06-07 Thread Elvis Stansvik
2016-06-07 13:08 GMT+02:00 Elvis Stansvik : > Is it possible? Seems there's only resizeColumnsToContents, no > resizeRowsToContents like in QTableView :/ > > If I really must create my own rowDelegate to do this, is there some In fact, I'm not even sure how I would solve this

Re: [Interest] "Proper" Date Locale support?

2016-06-07 Thread Ulf Hermann
I'm working with localization of dates. There is a standard JS API: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString#Using_options But QML defines it's own Date: http://doc.qt.io/qt-5/qml-qtqml-date.html The difference being the MDN refers

Re: [Interest] Blind binding crash on Qml instantiation

2016-06-07 Thread Jason H
  You'll have to be more specific. I'm not seeing how "each property can have more than one property." We're talking Q_PROPERTY, too right?       Sent: Tuesday, June 07, 2016 at 2:36 PM From: "Nuno Santos" To: "Qt Project MailingList"

Re: [Interest] adapting a QMenu's width in a QStyle?

2016-06-07 Thread Sergio Martins
On Tuesday, 7 June 2016 19:27:18 WEST René J.V. Bertin wrote: > Hi, > > I'm modifying a QStyle so that it uses the Unicode "check mark" glyph for > checked menu items, because that I think should give a nice visual unity > between the item text and the mark, both in style and in size (= when

Re: [Interest] adapting a QMenu's width in a QStyle?

2016-06-07 Thread René J . V . Bertin
On Tuesday June 07 2016 20:21:58 Sergio Martins wrote: > How are you setting this bounding rectangle ? Ahem :) I hadn't discovered that yet when I (finally) posted this question. I'm not writing a QStyle from scratch, but making some changes to QtCurve. > Have you tried reimplementing

Re: [Interest] QDockWidgets and ambiguous QShortcuts

2016-06-07 Thread Konstantin Shegunov
Hello, Perhaps this very recent thread ( http://forum.qt.io/topic/67981/qshortcut-multiple-widget-instances) on the forums will be of help. Kind regards. ___ Interest mailing list Interest@qt-project.org

Re: [Interest] QDockWidgets and ambiguous QShortcuts

2016-06-07 Thread Sergio Martins
On Sunday, 29 May 2016 10:21:36 WEST Felix morack wrote: > Hi, > > I'm facing the following problem with Shotcuts (QShortcut) and docking > widgets (QDockWidget). > > I have a custom widget that is contained in a QDockWidget, in its ctor I > register some keyboard shortcuts. As long as I have

Re: [Interest] Qt ownership model

2016-06-07 Thread Bernhard Lindner
> > All those class names and function names with capital letters don't line > > up with the standard library, so the argument is not accepted. > > And that's why I /love/ Qt so much and would choose it anytime again over an > API that_looks &*like_this(); +1 -- Regards, Bernhard

[Interest] [Qml][Item][Node] Determine if Item is rendered

2016-06-07 Thread Jérôme Godbout
Hi, I looking for a way to know if an Qml Item is rendered, we are reparenting some Item to display or not some Item Tree. Concret we swap between parent null and by parent of the rendering scene container. This allow to know only the part we are currently displaying, the others parentless Item

Re: [Interest] [Qml][Item][Node] Determine if Item is rendered

2016-06-07 Thread Liang Jian
I have encountered nearly the same problem as yours. I have contact qt support and finnaly I realized that right now this is not possible. The only workaround is to let the Qml item's user to tell you which part is visible and then your quick item change its nodes dynamically. On Wed,

Re: [Interest] Blind binding crash on Qml instantiation

2016-06-07 Thread Thiago Macieira
Em terça-feira, 7 de junho de 2016, às 19:36:15 PDT, Nuno Santos escreveu: > That’s the question! Completely blind > > I have a complex C+ structure with property. Each property can have more > than one property. > > I have a few guesses but couldn’t confirm any of them. Do a binary search of

[Interest] Translating to chinese

2016-06-07 Thread Jason H
I'm trying to translate a date, while respecting the locale, but I'm having some issues. This is all in QML "June 8, 2016" // en desired output (locale date without dow) "2016年6月7日" // zh ideal desired output (locale date without dow) "7.6.2016" // zh acceptable output (dd.mm. without dow)

[Interest] Keyboard navigation into, out of and within TableView in QML

2016-06-07 Thread Elvis Stansvik
Hi all, I'm working with a device that has only a pushwheel button as input. Turning the button gives keyboard Up/Down presses. Given: import QtQuick 2.4 import QtQuick.Window 2.2 import QtQuick.Controls 1.3 Window { visible: true width: 400 height: 400 ListModel { id:

Re: [Interest] Painting fonts without GUI

2016-06-07 Thread Federico Buti
Hi, you need a QGuiApplication for that. See e.g. this stackoverflow question . Cheers, F. On 7 June 2016 at 11:04, Etienne Sandré-Chardonnal wrote: > Hi, > > When I try

Re: [Interest] Keyboard navigation into, out of and within TableView in QML

2016-06-07 Thread Elvis Stansvik
Another solution is this (showing a button both above and below): import QtQuick 2.4 import QtQuick.Window 2.2 import QtQuick.Controls 1.3 Window { visible: true width: 400 height: 400 ListModel { id: libraryModel ListElement { title: "A Masterpiece"

Re: [Interest] Painting fonts without GUI

2016-06-07 Thread Federico Buti
Indeed. I remember having issues such as black blocks in place of actual text while the rest of the PDF was fine. Anyhow, thanks for the datails. Bests, F. On 7 June 2016 at 15:57, Jason H wrote: > Yea, so I didn't read the stack overflow but it said what I said, though I >

Re: [Interest] Painting fonts without GUI

2016-06-07 Thread Jason H
"minimal" or "offscreen" - one of those fixed the text issue for me.   Sent: Tuesday, June 07, 2016 at 10:00 AM From: "Federico Buti" To: "Jason H" Cc: "interest@qt-project.org" Subject: Re: [Interest] Painting fonts without GUI

Re: [Interest] Painting fonts without GUI

2016-06-07 Thread Jason H
While true, that is not the complete truth.   You can use a platform (-platform XXX) to specify an non-X server, and use that for rendering. That's how I generated PDFs on a headless server. "offscreen" is one, but there is a better one that escapes me at the moment.       Sent: Tuesday,

Re: [Interest] Painting fonts without GUI

2016-06-07 Thread Jason H
Yea, so I didn't read the stack overflow but it said what I said, though I take issue with "QPA won't work" assertion. QPA works just fine. I think what lead them to that was some package issues they were having. FWIW, I didn't have them.         Sent: Tuesday, June 07, 2016 at 9:52 AM From: 

[Interest] Android N changes

2016-06-07 Thread Jason H
I saw this in the SQLite group, mentioning it here: """It is my understanding that Android N will no longer allow apps to use the system-installed SQLite library (unless they go through the Android Java API, android.database.sqlite). [1] This is unfortunate, as many existing Android apps do

[Interest] Blind binding crash on Qml instantiation

2016-06-07 Thread Nuno Santos
Hi, I’m having a blind qml crash. I have been commenting the code on/off all day long and I can’t seem to find a pattern, something I know exactly what it is. What is the procedure to find such problems? When I manage to catch a crash with the debugger this is what I can find: Thread 0

[Interest] adapting a QMenu's width in a QStyle?

2016-06-07 Thread René J . V . Bertin
Hi, I'm modifying a QStyle so that it uses the Unicode "check mark" glyph for checked menu items, because that I think should give a nice visual unity between the item text and the mark, both in style and in size (= when users select a really large font). The problem is that when I make

Re: [Interest] Blind binding crash on Qml instantiation

2016-06-07 Thread Nuno Santos
That’s the question! Completely blind I have a complex C+ structure with property. Each property can have more than one property. I have a few guesses but couldn’t confirm any of them. > On 07 Jun 2016, at 18:37, Jason H wrote: > > >> >> Thread 0 Crashed:: Dispatch queue: