Re: [Interest] Problem compiling boost::python code in Qt

2016-09-28 Thread Thiago Macieira
On quinta-feira, 29 de setembro de 2016 09:24:41 PDT Kapil Gupta wrote: > /usr/include/python3.5m/object.h:445:23: error: expected unqualified-id > before ‘;’ token > PyType_Slot *slots; /* terminated by slot==0. */ Hint: when the error message from the compiler makes no sense, check the pre

Re: [Interest] Problem compiling boost::python code in Qt

2016-09-28 Thread Richard Öhlinger
On 09/29/2016 05:54 AM, Kapil Gupta wrote: I am using Boost::python for access to python code from c++. When I included the `PythonLibs` and Boost::Python into my code, I started having this error: ``` /usr/include/python3.5m/object.h:445:23: error: expected unqualified-id before ‘;’ token P

Re: [Interest] Problem compiling boost::python code in Qt

2016-09-28 Thread Mike Chinander
On Sep 28, 2016 10:54 PM, "Kapil Gupta" wrote: > > Hi, > > I am using Boost::python for access to python code from c++. > When I included the `PythonLibs` and Boost::Python into my code, I started having this error: > > ``` > /usr/include/python3.5m/object.h:445:23: error: expected unqualified-id

[Interest] Problem compiling boost::python code in Qt

2016-09-28 Thread Kapil Gupta
Hi, I am using Boost::python for access to python code from c++. When I included the `PythonLibs` and Boost::Python into my code, I started having this error: ``` /usr/include/python3.5m/object.h:445:23: error: expected unqualified-id before ‘;’ token PyType_Slot *slots; /* terminated by slo

Re: [Interest] QGraphicsScene and writing to file

2016-09-28 Thread Ch'Gans
On 29 September 2016 at 10:31, Petric Frank wrote: > Hello, > > > > i have a QGraphicsScenewhich i want to write to a file (*.png, ...). > > > > As documrmtation states i use the following: > > --- cut --- > > QGraphicsScene scene; // previously filled > >

[Interest] QGraphicsScene and writing to file

2016-09-28 Thread Petric Frank
Hello, i have a QGraphicsScenewhich i want to write to a file (*.png, ...). As documrmtation states i use the following: --- cut --- QGraphicsScene[1] scene; // previously filled QRectF rect = scene->sceneRect (); QImage img (rect.width () + 1, rect.height

Re: [Interest] What don't you like about Qt?

2016-09-28 Thread André Pönitz
On Wed, Sep 28, 2016 at 12:43:37AM +0300, Konstantin Tokarev wrote: > > I quite like QML as a declarative markup language, but am less enthused > > about > > JavaScript. It seems like kind of a toy programming language. I'm a bit > > shocked that you can write "code" where you can happily call fun

Re: [Interest] [ Android ] How pass argument to QtActivity::runOnUiThread ?

2016-09-28 Thread Eddie Sutton
Hi Jason, Thanks for wakeLock recommendation. I may end up using wakeLock. Especially if it gives me a wider range of supported Android devices and versions. I ended up using a “final boolean” : http://stackoverflow.com/questions/7761723/android-howto-pass-data-to-the-runnable-in-runonuit

Re: [Interest] [ Android ] How pass argument to QtActivity::runOnUiThread ?

2016-09-28 Thread Jason H
Why not have two runnables? One that sets the flag and one that does not?   m_activity.runOnUiThread( ikeepScreenOn ? new Runnable() { ... keep screen on code... } : new Runnable { ...don't keep screen on... } It might boove you to put the common code in one function though.     I personally

[Interest] [ Android ] How pass argument to QtActivity::runOnUiThread ?

2016-09-28 Thread Eddie Sutton
How can you pass an argument to QtActivity runOnUiThread ? Example with no argument: public void hide() { m_activity.runOnUiThread( new Runnable() { @Override public void run() { if (m_dialog != null && m_dialog.isShowing())

Re: [Interest] Issue with qmake

2016-09-28 Thread Thiago Macieira
On quarta-feira, 28 de setembro de 2016 11:02:36 PDT Etienne Sandré-Chardonnal wrote: > Dear all, > > I have a reproducible issue with qmake and headers dependency. > > A class header (myclassimp.h) is properly listed in the .pro HEADERS list, > and its path is in DEPENDPATH (this is a relative

[Interest] ScrollViewStyle: How can I have a transparent ScrollBar for my table?

2016-09-28 Thread Richard Öhlinger
Hi! I'm using Qt 5.6 with Quick Controls 1 on Linux. I'm trying to get a special kind of scrollbar for my TableView. Therefore I created my custom TableViewStyle which is a ScrollAreaStyle. I'd want my scrollbar to behave almost like the default one when ScrollAreaStyle::transientScrollBars is t

Re: [Interest] What don't you like about Qt?

2016-09-28 Thread Jason H
Konrad: > Also: Javascript is not an OO language: you are supposed to have classes, not > prototypes, for OO. ES6 has proper classes. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes Rob: > I quite like QML as a declarative markup language, but am less enthused about >

Re: [Interest] TextField_QMLTYPE_16 QVariant(Invalid) QRect(0, 0 0x0)

2016-09-28 Thread Alexandru Croitor
You don't have to do anything with accessibility. It happens in qt internals, if Qt was compiled with accessibility support. > On 28 Sep 2016, at 16:38, Jason H wrote: > > > Thanks for the pointer, but I'm not doing anything with accessibility. :-/ > >> Previously when I have seen these mess

Re: [Interest] TextField_QMLTYPE_16 QVariant(Invalid) QRect(0, 0 0x0)

2016-09-28 Thread Jason H
Thanks for the pointer, but I'm not doing anything with accessibility. :-/ > Previously when I have seen these messages, it had to do with some > accessibility property on the quick item, might be the case for you as well. > I can't recall from the top of my head which one it was, but you can >

Re: [Interest] What don't you like about Qt?

2016-09-28 Thread Konrad Rosenbaum
On Wednesday, September 28, 2016 10:57:01 Rob Allan wrote: > But even > then, in most OO languages, this is implemented through strongly-typed > interfaces - so that if you tried to "publish" a message that wasn't > defined, you would get a compile error. Most OO languages - Smalltalk, C++ > C#, et

[Interest] Issue with qmake

2016-09-28 Thread Etienne Sandré-Chardonnal
Dear all, I have a reproducible issue with qmake and headers dependency. A class header (myclassimp.h) is properly listed in the .pro HEADERS list, and its path is in DEPENDPATH (this is a relative subfolder of the project file) The abstract class (defined in abstractclass.cpp) directly includes

Re: [Interest] TextField_QMLTYPE_16 QVariant(Invalid) QRect(0, 0 0x0)

2016-09-28 Thread Alexandru Croitor
Hi. Previously when I have seen these messages, it had to do with some accessibility property on the quick item, might be the case for you as well. I can't recall from the top of my head which one it was, but you can iteratively go through the TextField and ancestors QML files, and try to comme