Re: [Interest] making 'hole' in the rectangle

2014-07-24 Thread Bo Thorsen
Den 24-07-2014 22:55, Alexander Ivash skrev: > Is it possible to implement a 'hole' component which would make color of > its parent control transparent? For example: > > Rectangle { > width: 100 > height: 100 > > color: 'blue' > > Rectangle { > width: 50 > hei

Re: [Interest] QScrollBar shift-click on Windows

2014-07-24 Thread Bo Thorsen
Den 24-07-2014 23:59, John Weeks skrev: > One of our customers just pointed out that on Windows a shift-click on the > scroll bar track should jump to that location in the document. But our > application based on Qt doesn't do that. Does QScrollBar support this somehow > that I haven't found? >

Re: [Interest] OpenGL weirdness

2014-07-24 Thread Yves Bailly
On 24/07/2014 20:33, Till Oliver Knoll wrote: > Am 24.07.2014 um 14:13 schrieb Yves Bailly : [...] >>fmt.setVersion(2, 1); >> ...getGetString(GL_VERSION) gives "4.4.0" (unexpected), and no triangle >> displayed. > As already mentioned in a previous reply: maybe a bit "unexpected", but > total

[Interest] Input devices auto detection

2014-07-24 Thread Константин Уткин
Greetings! I’m using Qt 5.2.1 on embedded platform (based on TI DM3730, if it makes any sense). I can plug any usb input devices and use them in my Qt apps only when I know exact device name. For example, I can call app:  > . /myapp  -plugin EvdevMouse:/dev/input/event3 > EvdevKeyboard:/dev/i

[Interest] QScrollBar shift-click on Windows

2014-07-24 Thread John Weeks
One of our customers just pointed out that on Windows a shift-click on the scroll bar track should jump to that location in the document. But our application based on Qt doesn't do that. Does QScrollBar support this somehow that I haven't found? I've looked at the documentation for QScrollBar,

[Interest] making 'hole' in the rectangle

2014-07-24 Thread Alexander Ivash
Is it possible to implement a 'hole' component which would make color of its parent control transparent? For example: Rectangle { width: 100 height: 100 color: 'blue' Rectangle { width: 50 height: 50 color: 'green' Hole { anchors.fill:

Re: [Interest] qt_x11_wait_for_window_manager link error on CentOS 6.5

2014-07-24 Thread Thiago Macieira
On Thursday 24 July 2014 11:20:59 Michael Jackson wrote: > Thank you for the insight. I have adjusted my code accordingly and it now > compiles file. Thank you again for the help Note that there's a reason why QSplashScreen uses the other function. See this commit: https://qt.gitorious.org/qt/qt

Re: [Interest] OpenGL weirdness

2014-07-24 Thread Till Oliver Knoll
Am 24.07.2014 um 14:13 schrieb Yves Bailly : > > [Whenever a "Core Profile" is explicitly requested rendering stops workin] > > If I try using some other version: > fmt.setVersion(3, 3); > fmt.setProfile(QGLFormat::CoreProfile); > ...getGetString(GL_VERSION) gives "3.3.0" (as expected), Not

Re: [Interest] qt_x11_wait_for_window_manager link error on CentOS 6.5

2014-07-24 Thread Michael Jackson
On Jul 24, 2014, at 11:00 AM, Thiago Macieira wrote: > On Thursday 24 July 2014 08:47:14 Mike Jackson wrote: >> I am trying to compile some Qt code that is the following: >> >> #if defined(Q_WS_X11) >> extern void qt_x11_wait_for_window_manager(QWidget * mainWin, bool); >> qt_x11_wait_for_w

Re: [Interest] qt_x11_wait_for_window_manager link error on CentOS 6.5

2014-07-24 Thread Thiago Macieira
On Thursday 24 July 2014 08:47:14 Mike Jackson wrote: > I am trying to compile some Qt code that is the following: > > #if defined(Q_WS_X11) >extern void qt_x11_wait_for_window_manager(QWidget * mainWin, bool); >qt_x11_wait_for_window_manager(mainWin, false); > #endif > > I am trying to r

Re: [Interest] Is QML globalCompositeOperation incorrect?

2014-07-24 Thread 程梁
Sorry, I think QML globalCompositeOperation behavior is incorrect even according to QPianter::CompositionMode. Best regards, Cheng Liang Nanjing, China http://www.devbean.net > From: thiago.macie...@intel.com > To: interest@qt-project.org > Date: Tue, 22 Jul 2014 12:45:46 -0700 > Subject: Re: [I

Re: [Interest] Tabbed Dock Widgets

2014-07-24 Thread Paul Miller
On 7/24/2014 5:29 AM, Graham Labdon wrote: > Hi > In my application I have a set of docked widgets that are all tabbed. > I have a menu to which I have added the action associated with the docked > widget that enables me to toggle the viability of the widgets. This all works > fine except for one

Re: [Interest] Tabbed Dock Widgets

2014-07-24 Thread Graham Labdon
Hi I realise that but I cannot get a handle for the docked widget -Original Message- From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Ben Swerts Sent: 24 July 2014 14:17 To: inter

Re: [Interest] Tabbed Dock Widgets

2014-07-24 Thread Ben Swerts
Hi Graham, Calling raise() on the QDockWidget should do it. Greets, Ben > -Original Message- > From: interest-bounces+benswerts=telenet...@qt-project.org > [mailto:interest-bounces+benswerts=telenet...@qt-project.org] On Behalf > Of Graham Labdon > Sent: Thursday, July 24, 2014

Re: [Interest] OpenGL weirdness

2014-07-24 Thread Agocs Laszlo
Hello, Yes, check the profile too. Additionally, starting from 5.3, we have a useful example in qtbase/examples/opengl/contextinfo that can be used to check what kind of context is returned for a given version, profile and options combination. Gl_Widget glw; glw.show(); Here you are ask

Re: [Interest] OpenGL weirdness

2014-07-24 Thread Giuseppe D'Angelo
Hello, Il 24/07/2014 14:13, Yves Bailly ha scritto: Any idea about what's going on? The same thing occures on both MinGW (32bits) and Visual C++ 2012 (64bits). Can you also dump the context profile? Maybe unless you're requesting both a version >= 3.2 *and* a Core profile, then you're gettin

[Interest] qt_x11_wait_for_window_manager link error on CentOS 6.5

2014-07-24 Thread Mike Jackson
I am trying to compile some Qt code that is the following: #if defined(Q_WS_X11) extern void qt_x11_wait_for_window_manager(QWidget * mainWin, bool); qt_x11_wait_for_window_manager(mainWin, false); #endif I am trying to reimplement some of the QSplashScreen with some additional functionalit

[Interest] OpenGL weirdness

2014-07-24 Thread Yves Bailly
Greetings all, I'm trying to build a very basic OpenGL program, just displaying a red triangle. Context: - Windows 7 64bits - Qt 5.3.1 (tested with the official MinGW build and a Visual 2012 build) - I will need OpenGL 3.3 "core" and have to use GLEW - using QGLWidget, overriding the usual initia

[Interest] Tabbed Dock Widgets

2014-07-24 Thread Graham Labdon
Hi In my application I have a set of docked widgets that are all tabbed. I have a menu to which I have added the action associated with the docked widget that enables me to toggle the viability of the widgets. This all works fine except for one niggle. Say I have 2 out of 3 of my widgets on displ

Re: [Interest] How to use serveral textures in a QSGSimpleMaterialShader

2014-07-24 Thread Till Oliver Knoll
Am 24.07.2014 um 11:25 schrieb Martin Ertl : > ... > -> define 'which texture unit a given "uniform sampler2D tex" refers to' by > calling > program()->setUniformValue("uTex0", 0); > program()->setUniformValue("uTex1", 1); > ... Or use the "layout syntax" in the shader it

Re: [Interest] How to use serveral textures in a QSGSimpleMaterialShader

2014-07-24 Thread Martin Ertl
Hello Till, thank you for your hints. That gave me some input for further search and I found this nice little piece of code which shows nearly everything I'd like to do :-) https://qt.gitorious.org/qt/qtdeclarative/source/4f69825c5bfd93b63f890a8188ece93af1283f1f:src/particles/qquickimageparticle.c

Re: [Interest] Qt DevDays 2014 - Call for Papers

2014-07-24 Thread Giuseppe D'Angelo
Hello, Il 19/06/2014 12:23, Giuseppe D'Angelo ha scritto: >http://www.qtdeveloperdays.com/call-papers-information The deadlines are July 24th for Europe and August 15th for US. There's an update: the Call for Papers' deadline for the Europe event has been extended to July 31st at midnight

Re: [Interest] How to use serveral textures in a QSGSimpleMaterialShader

2014-07-24 Thread Till Oliver Knoll
Am 24.07.2014 um 09:28 schrieb Till Oliver Knoll : > ... > In recent (OpenGL >= 4.1?) shader versions there is also a "layout" (or > "location") qualifier, so you can save the call to glUniform1i - but the > exact syntax escapes me right now. >From the "OpenGL SuperBible": layout (binding = 0)

Re: [Interest] How to use serveral textures in a QSGSimpleMaterialShader

2014-07-24 Thread Till Oliver Knoll
Am 23.07.2014 um 19:06 schrieb Martin Ertl : > ... > > Question: > Where is my mistake? > Does the call of "bind()" on the second texture overwrite the "bind()" from > the first texture? Yes :) > ... which has a method "glActiveTexture()" This. I can only speak for "raw OpenGL" right now, but