Re: [Interest] Are slots even needed these days?

2016-05-07 Thread d3fault
On Sat, May 7, 2016 at 2:29 AM, Nye wrote: > I don't see any multiple inheritance that forms a diamond. And although I > like the older syntax better, I don't see what's the problem with the new > syntax here. This: > You're right, my example didn't suffer from the diamond

[Interest] Questions regarding Scene Graph (QSGClipNode, QSGTexture, QSGOpacityNode)

2016-05-07 Thread Artem Fedoskin
1. Could you tell me please how one can set custom geometry for QSGClipNode (not the rectangular one)? Should I just create QSGeometry with QSGGeometry::defaultAttributes_Point2D() attribute and add vertices? Will Scene Graph recognize that polygon is closed (I need clipping to have a form of

Re: [Interest] QStateMachine as C++ (or Python) backbone of QML app

2016-05-07 Thread Elvis Stansvik
2016-05-07 22:12 GMT+02:00 Elvis Stansvik : > 2016-05-07 21:39 GMT+02:00 Elvis Stansvik : >> Hi all, >> >> Back in 2010 there were a couple of interesting threads on this list >> regarding the use of state machines: >> >>

Re: [Interest] QStateMachine as C++ (or Python) backbone of QML app

2016-05-07 Thread Elvis Stansvik
2016-05-07 21:39 GMT+02:00 Elvis Stansvik : > Hi all, > > Back in 2010 there were a couple of interesting threads on this list > regarding the use of state machines: > > http://comments.gmane.org/gmane.comp.lib.qt.general/29861 >

[Interest] QStateMachine as C++ (or Python) backbone of QML app

2016-05-07 Thread Elvis Stansvik
Hi all, Back in 2010 there were a couple of interesting threads on this list regarding the use of state machines: http://comments.gmane.org/gmane.comp.lib.qt.general/29861 http://comments.gmane.org/gmane.comp.lib.qt.general/36760 In the second one, which was about using a C++

Re: [Interest] QPushButton shortcut works on Qt 4 but not 5

2016-05-07 Thread Elvis Stansvik
2016-05-07 18:43 GMT+02:00 Elvis Stansvik : > 2016-05-07 16:56 GMT+02:00 Mark Gaiser : >> On Sat, May 7, 2016 at 3:44 PM, Elvis Stansvik wrote: >>> >>> 2016-05-07 15:27 GMT+02:00 Elvis Stansvik : >>> > Hi all, >>> >

Re: [Interest] QPushButton shortcut works on Qt 4 but not 5

2016-05-07 Thread Elvis Stansvik
2016-05-07 16:56 GMT+02:00 Mark Gaiser : > On Sat, May 7, 2016 at 3:44 PM, Elvis Stansvik wrote: >> >> 2016-05-07 15:27 GMT+02:00 Elvis Stansvik : >> > Hi all, >> > >> > Maybe I'm doing something completely wrong, but on Qt 4.8.7, this >>

Re: [Interest] QPushButton shortcut works on Qt 4 but not 5

2016-05-07 Thread Mark Gaiser
On Sat, May 7, 2016 at 3:44 PM, Elvis Stansvik wrote: > 2016-05-07 15:27 GMT+02:00 Elvis Stansvik : > > Hi all, > > > > Maybe I'm doing something completely wrong, but on Qt 4.8.7, this > > works (pressing Ctrl+O prints "clicked"): > > > > test.cpp: > > >

[Interest] .pc file generation

2016-05-07 Thread René J . V . Bertin
Hi, Re: https://codereview.qt-project.org/#/c/140954/ Is the justification for omitting .pc files still relevant that "frameworks are currently broken anyway"? They don't appear to be, but omitting pkg-config files for them makes it impossible to build all dependent software that uses

Re: [Interest] QPushButton shortcut works on Qt 4 but not 5

2016-05-07 Thread Elvis Stansvik
2016-05-07 15:27 GMT+02:00 Elvis Stansvik : > Hi all, > > Maybe I'm doing something completely wrong, but on Qt 4.8.7, this > works (pressing Ctrl+O prints "clicked"): > > test.cpp: > > #include > #include > #include > #include > #include > > class MainWindow : public

Re: [Interest] QPushButton shortcut works on Qt 4 but not 5

2016-05-07 Thread Elvis Stansvik
2016-05-07 15:27 GMT+02:00 Elvis Stansvik : > Hi all, > > Maybe I'm doing something completely wrong, but on Qt 4.8.7, this > works (pressing Ctrl+O prints "clicked"): > > test.cpp: > > #include > #include > #include > #include > #include > > class MainWindow : public

[Interest] QPushButton shortcut works on Qt 4 but not 5

2016-05-07 Thread Elvis Stansvik
Hi all, Maybe I'm doing something completely wrong, but on Qt 4.8.7, this works (pressing Ctrl+O prints "clicked"): test.cpp: #include #include #include #include #include class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = 0) :

Re: [Interest] How to set Android Version and App Name

2016-05-07 Thread NoRulez
Ok I solved an other problem. So, if somebody has the same problem: Use add_library($PROJECT_NAME} SHARED...) instead of add_executable($PROJECT_NAME} SHARED...) since on the android it is only a shared library and not an executable. > Am 06.05.2016 um 17:56 schrieb NoRulez

Re: [Interest] qt.labs.controls / QtQuickControls2: ToolBar, Label / Image Colors, tinting...

2016-05-07 Thread Xavier Bigand
To make it work with black images the formule should be that : gl_FragColor = (tex + color) * qt_Opacity; But your color must have alpha at 0 else you'll loose the alpha of the texture. Here is the bug of graphical rendering issue when using graphical effects :

Re: [Interest] qt.labs.controls / QtQuickControls2: ToolBar, Label / Image Colors, tinting...

2016-05-07 Thread ekke
Am 07.05.16 um 11:48 schrieb Xavier Bigand: > Your image is black because the shader is multiplying the color. You > should do your image sources in white to get the correct result. for Google's Material Icons it's no problem: they're provided in black and white, but iOS icons from other sources

Re: [Interest] Disabling signal connections for an item and its children

2016-05-07 Thread Elvis Stansvik
2016-05-07 11:32 GMT+02:00 Elvis Stansvik : > Hi all, > > In a fullscreen page-based embedded QML app (HMI), I find myself often > wanting to disable all signal connections when the page is not active > (on top of stack). > > I found this 5 year old bug: > >

Re: [Interest] qt.labs.controls / QtQuickControls2: ToolBar, Label / Image Colors, tinting...

2016-05-07 Thread Xavier Bigand
Your image is black because the shader is multiplying the color. You should do your image sources in white to get the correct result. You can also change the operation in the line : gl_FragColor = tex * color * qt_Opacity; As I know if you are using a GraphicalEffect by image you'll have the

[Interest] Disabling signal connections for an item and its children

2016-05-07 Thread Elvis Stansvik
Hi all, In a fullscreen page-based embedded QML app (HMI), I find myself often wanting to disable all signal connections when the page is not active (on top of stack). I found this 5 year old bug: https://bugreports.qt.io/browse/QTBUG-18245 I think Daniel's analysis in the comments is very

Re: [Interest] Are slots even needed these days?

2016-05-07 Thread Nye
PS. I just realized you're worried that the functions are virtual. Well this is of no consequence, the vtable is respected (if I remember correctly that's specified in the standard). So the following should also be working without any problem: QObject::connect(a, Interface::someSignal, b,

Re: [Interest] Are slots even needed these days?

2016-05-07 Thread Nye
On Sat, May 7, 2016 at 10:34 AM, d3fault wrote: > Nobody's mentioned that Qt4-style connect syntax is required to solve the > diamond inheritance problem that frequently appears when using a > signals/slots interface. > [snippet] > I don't see any multiple inheritance

Re: [Interest] qt.labs.controls / QtQuickControls2: ToolBar, Label / Image Colors, tinting...

2016-05-07 Thread ekke
@ Xavier: the ToolButton Image still is black, but perhaps I did something wrong. It's the first time I used a ShaderEffect Do you really think it could cause problems on Android / iOS apps ? Images are small images @ J-P: ColorOverlay works well and also looks easier to understand for mobile

Re: [Interest] React to signal only when at top of StackView

2016-05-07 Thread Elvis Stansvik
2016-05-07 10:20 GMT+02:00 J-P Nurmi : >> On 06 May 2016, at 23:27, Elvis Stansvik wrote: >> >> 2016-05-06 22:41 GMT+02:00 J-P Nurmi : >>> >>> >>> The Stack.status property must be attached to an item that is in a >>> StackView. In the snippet

Re: [Interest] React to signal only when at top of StackView

2016-05-07 Thread J-P Nurmi
> On 06 May 2016, at 23:27, Elvis Stansvik wrote: > > 2016-05-06 22:41 GMT+02:00 J-P Nurmi : >> >> >> The Stack.status property must be attached to an item that is in a >> StackView. In the snippet above, it is attached to the Connections element. >> You

Re: [Interest] Are slots even needed these days?

2016-05-07 Thread d3fault
Nobody's mentioned that Qt4-style connect syntax is required to solve the diamond inheritance problem that frequently appears when using a signals/slots interface. Ex: class Interface { public: virtual QObject* asQObject()=0; protected: //signals virtual void someSignal()=0; public: