Re: [Interest] What for does qt5gui need OpenGL?

2013-11-08 Thread Joseph Crowell

On 11/07/2013 07:33 PM, André Pönitz wrote:
 On Thu, Nov 07, 2013 at 07:51:16AM +0100, Tomasz Olszak wrote:
 2013/11/7 Uwe Rathmann uwe.rathm...@tigertal.de

  On Wed, 06 Nov 2013 08:03:47 -0800, Thiago Macieira wrote:

   Shouldn't they be in Qt5OpenGL.dll?
  
   No, they are where they were supposed to be. That's by design.

  With some nasty consequences for us users:

  Our applications run on several pieces of embedded hardware, where one 
 of
  them had been designed 7 years ago with a graphic chip, where only 
 OpenGL
  ES 1.1 is supported. This board needs to be supported and updated for
  many, many years - no way to exchange it by something more recent.

  Even if we don't need OpenGL ( using widgets only ) we are stuck with Qt
  4 forever, because Qt5 has this unnecessary OpenGL dependency. So far
  this had been no big problem - Qt4 is pretty fine - and there are some
  backports of new Qt5 features ( by the way: it would be nice to add the
  json classes to Qt 4.9 ), but sooner or later this will become an issue.


 AFAIK you can build Qt5 with no-opengl switch and you should be able to run
 QtWidgets applications without having libQt5OpenGl dependency in libQt5Gui.
 The problem is that this won't scale. One cannot provide custom builds of
 Qt for each realistic user configuration, let alone proactively package
 such stuff in large quantities. Requiring the users to run one, or one out
 of a few blessed configurations is likewise infeasible.

 Runtime detection of capabilities and selecting features _then_ is
 the only viable appraoch.

 Andre'

The platform developers can and should provide custom builds of Qt 5 for 
their embedded platform. The fact that embedded platform developers 
didn't know enough about Qt to know that they could compile Qt 5 without 
Open GL worrys me.

Also note he wants this support because of a 7 year old embedded graphic 
chip. What functionality did embedded devices have 7 years ago? How far 
can you expect to push a 7 year old embedded graphics chip? I say stay 
in the past with the old Qt for that ancient device and let the rest of 
us move in to the future.


 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Quick2 ShaderEffect: source or provider missing when binding textures

2013-11-08 Thread Ola Røer Thorsen
Hi Gunnar,

thanks for the reply!

Well why am I drawing without data.. There's lots of things to learn to get
the most out of Quick2. :-)

Your suggestion there solved it for me, i'm testing on Image.Ready now
and it also fixed my next issue of to prevent showing black textures before
the image was loaded. The message is gone from the log too :-)

Best regards,
Ola



2013/11/7 Sletta Gunnar gunnar.sle...@digia.com

  The error message has been quite helpful with tracking down errors in
 the past, but I guess we can at least remove it from release builds and
 limit it a bit :) Added
 https://bugreports.qt-project.org/browse/QTBUG-34676 to track this.

  But why are you showing ShaderEffects which lack their image data? That
 is just wasting GPU resources

  ShaderEffect {
 property variant source;
 visible: typeof source != 'undefined'  source.status == Ready
 ...
 }

  Should keep it hidden and also remove the warning...

  cheers,
 Gunnar

  --
 *Fra:* 
 interest-bounces+gunnar.sletta=digia@qt-project.org[interest-bounces+gunnar.sletta=
 digia@qt-project.org] på vegne av Ola Røer Thorsen [o...@silentwings.no
 ]
 *Sendt:* 7. november 2013 16:43
 *To:* interest@qt-project.org
 *Emne:* [Interest] Quick2 ShaderEffect: source or provider missing when
 binding textures

   Hi all,

  if I use a ShaderEffect on an image that is loaded asynchronously, I get
 the error/debug message on the console:

  ShaderEffect: source or provider missing when binding textures

  for every frame rendered until the image is completely loaded and the
 texture is complete.

  This means our system logs on the target system (embedded linux device)
 gets flooded whenever we load new images (a photo viewer). Would it be
 possible to at least limit the number of times this is written (once
 instead of every frame)? Or could the message be removed completely? It's
 not useful at all when ShaderEffect is used this way.

  Best regards,
 Ola


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QTreeView / QTableView row change

2013-11-08 Thread Joseph W. Joshua
Hi All,

Is it possible to detect when a QTreeView / QTableView row is changed? 
An example is when the user changes the current row using keyboard 
navigation.

Josh.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTreeView / QTableView row change

2013-11-08 Thread Scott Aron Bloom
Connect to the selectionChanged signale

If you need more advanced monitoring, look into the QSelectionmanager (every 
view has one)

Scott

-Original Message-
From: interest-bounces+scott=onshorecs@qt-project.org 
[mailto:interest-bounces+scott=onshorecs@qt-project.org] On Behalf Of 
Joseph W. Joshua
Sent: Friday, November 8, 2013 2:21 AM
To: interest@qt-project.org
Subject: [Interest] QTreeView / QTableView row change

Hi All,

Is it possible to detect when a QTreeView / QTableView row is changed? 
An example is when the user changes the current row using keyboard navigation.

Josh.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTreeView / QTableView row change

2013-11-08 Thread Clément Geiger
Hi,

So you mean, detect when the current row in a view is changed, not when the
row content in the model is changed.

Then you're looking for the currentChanged signal in QItemSelectionModel
(you can get the selection model from the view via
QAbstractItemView::selectionModel())

Cheers,

Clément


2013/11/8 Joseph W. Joshua jos...@megvel.me.ke

 Hi All,

 Is it possible to detect when a QTreeView / QTableView row is changed?
 An example is when the user changes the current row using keyboard
 navigation.

 Josh.
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTreeView / QTableView row change

2013-11-08 Thread Joseph W. Joshua
On 11/8/2013 1:26 PM, Clément Geiger wrote:
 Hi,

 So you mean, detect when the current row in a view is changed, not when
 the row content in the model is changed.

 Then you're looking for the currentChanged signal in QItemSelectionModel
 (you can get the selection model from the view via
 QAbstractItemView::selectionModel())

 Cheers,

 Clément

Thank you, I will try your suggestion.

Yes,

For example, when the user uses the keyboard to move through the items, 
I would like to respond to such events.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] What for does qt5gui need OpenGL?

2013-11-08 Thread Bo Thorsen
Den 07-11-2013 07:40, Uwe Rathmann skrev:
 On Wed, 06 Nov 2013 08:03:47 -0800, Thiago Macieira wrote:

 Shouldn't they be in Qt5OpenGL.dll?

 No, they are where they were supposed to be. That's by design.

 With some nasty consequences for us users:

 Our applications run on several pieces of embedded hardware, where one of
 them had been designed 7 years ago with a graphic chip, where only OpenGL
 ES 1.1 is supported. This board needs to be supported and updated for
 many, many years - no way to exchange it by something more recent.

 Even if we don't need OpenGL ( using widgets only ) we are stuck with Qt
 4 forever, because Qt5 has this unnecessary OpenGL dependency. So far
 this had been no big problem - Qt4 is pretty fine - and there are some
 backports of new Qt5 features ( by the way: it would be nice to add the
 json classes to Qt 4.9 ), but sooner or later this will become an issue.

 There are reasons why Qt 4.8 is still the platform, where most users are,
 and one of them is because of such a design decision.

After the switch from Qt 3 to 4, there were a bunch of companies that 
had to stay on Qt 3. A few even use it today.

The reason is that Qt progressed into something that didn't work well 
for their platform. For whatever reason.

With a 7 year old board, this is what you can expect to start hitting. 
It's so old, that you just can't expect brand new software to run on it. 
It's nice if it does, and recompiling Qt without GL might be your 
solution. But in general, there are some who will be hit when software 
moves on.

This sucks for those who get hit. But there's no way the community can 
support every piece of legacy hardware used with Qt 3 or 4. Of course, 
the trick is to annoy as few as possible. But annoying some is inevitable.

I don't think you will see a Qt 4.9. I might be wrong, but I doubt it. 
What you could do instead is to start a backport library for 4.8 where 
you put stuff like the JSON class in. Make it public in github, you're 
not going to be the only one stuck on Qt 4. There might be others who 
will contribute other classes to this.

For Qt4 JSON support, I've used Eeli Reilins QtJSON and been very happy 
with it: https://github.com/da4c30ff/qt-json. I recommend it.

Bo.

-- 
Bo Thorsen, European Engineering Manager, ICS
Integrated Computer Solutions. Delivering World-Class Applications
http://ics.com/services
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Use Oracle 11g with Qt5.1 on MacOS

2013-11-08 Thread Emmanuel Bourgerie
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I am having an issue compiling the Qt Oracle plugin on MacOS. I
downloaded the Instant Client, copied the .h files in /usr/include and
the .dylib in /usr/lib (I know it's dirty, but I wanted to make sure
they were available).

Here is what I do to compile it:

  qmake-5.1 INCLUDEPATH+=/usr/include LIBS+=-L/usr/lib -lclntsh
  make

And I get:

  ld: library not found for -lclntsh

I guess there is something obvious that I miss here...

- -- 
Emmanuel Bourgerie
Web developer
Dublin, Ireland
(+353) 8 144 5278
http://bourgerie.fr/

Confus avec BEGIN PGP SIGNED MESSAGE ? http://weusepgp.info/fr
Confused with BEGIN PGP SIGNED MESSAGE? http://weusepgp.info/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (Darwin)

iQEcBAEBAgAGBQJSfMRfAAoJEKKGwafy1e1+CqkH/0bn4OtgJ9C2hjKPOVJJmixk
KjHJVSBwwSrjVHKKDk5LnmYRMG20Q/tW35a1ChkasLX+wjX7EpdI1p8vyTf/vNI7
IZqRspRaSoA+GyTP5Gr0ggoV8MpeYfvaC7P7KxghQRUovsXZ3Sb4e8yHcNaw5WjE
A8E1o8j2eFM5BHMEV2d1zBhJhoP9bQde7gSAWp0fooh5FZtFAXyVD9/PFvHWWhsC
mIMrMUVxYvA0bSmv6OTGCKBec/TA53vQM1DNupZZ/sbWLc8RZueXDwKdslZvHv8d
BRA8GiNHOIxszxJPIxcHHbqBM7ZZSuujA5bTyyrV7sOSs8fFtBLXBTv8UMyDVBg=
=669d
-END PGP SIGNATURE-
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] What for does qt5gui need OpenGL?

2013-11-08 Thread Mandeep Sandhu

 For Qt4 JSON support, I've used Eeli Reilins QtJSON and been very happy
 with it: https://github.com/da4c30ff/qt-json. I recommend it.

We've been using Flavio Castelli's QJson in our embedded project with
Qt4 and it's worked out well.
http://qjson.sourceforge.net/

HTH,
-mandeep



 Bo.

 --
 Bo Thorsen, European Engineering Manager, ICS
 Integrated Computer Solutions. Delivering World-Class Applications
 http://ics.com/services
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] What for does qt5gui need OpenGL?

2013-11-08 Thread Uwe Rathmann
On Fri, 08 Nov 2013 11:47:36 +0100, Bo Thorsen wrote:

 With a 7 year old board, this is what you can expect to start hitting.
 It's so old, that you just can't expect brand new software to run on it.

The strategy of Qt5 is to introduce a new graphic stack but also to keep 
the old old one alive. Of course I can't expect to run something new on 
an outdated board, but it doesn't necessarily has to mean regression when 
using the old graphic stack.

Almost all embedded applications with some history are running QWS/
widgets where is no comparable replacement in Qt5 ( I know nobody wants 
to work on QWS code for understandable reasons ). In fact this is the 
point where our Qt5 consideration failed - sorry for my ignorance about 
the no-opengl flag, but we never got so far.

--

If someone is interested: we are also writing a new application on a 
brand new type of hardware - so no legacy issues here:

Our main problem is/was, that our test department is using a VNC based 
test tool and beside X11 there is no easy way to get it running with Qt5 
( Qt4/QWS supports it out of the box ). For a QML application Qt5/X11 is 
o.k., but when using widgets only the combination Qt4/X11 offers hardware 
acceleration.

Finally we decided to go with Qt5/X11 ( hoping for some VNC support in 
Wayland later ) - and for no strong reason with QML.


 I don't think you will see a Qt 4.9. I might be wrong, but I doubt it.
 What you could do instead is to start a backport library for 4.8 where
 you put stuff like the JSON class in.

Such a backport already exists - that's why I mentioned it.

Being the maintainer of the Qwt project I'm in contact with many 
developers of Qt applications and as far as I can see almost nobody did a 
Qt5 migration - even if it would be pretty easy for average desktop 
application code.

Maybe you have a good explanation for this ?

Uwe


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] The Qt-components ML has been closed

2013-11-08 Thread Nurmi J-P
Hi all,

As previously discussed here and there, we have decided to shut down the 
obsolete Qt-components mailing list. The mailing list no longer served a 
purpose, but mainly caused confusion especially amongst new Qt users.

The substituting lists are:

* Interest - List for developers who _use_ Qt
  http://lists.qt-project.org/mailman/listinfo/interest

* Development - List for developers _of_ Qt
  http://lists.qt-project.org/mailman/listinfo/development

PS. The Qt-components archives remain accessible at 
http://lists.qt-project.org/pipermail/qt-components.

--
J-P Nurmi

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Performance of Qt 5.2 much slower than Qt 5.1?

2013-11-08 Thread David V-Play
Is there any change to get QSG_RENDER_TIMING=1 working on mobiles, because
it works only on Desktop when set in the Projects System Environment
settings.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Performance of Qt 5.2 much slower than Qt 5.1?

2013-11-08 Thread Koehne Kai
 -Original Message-
 From: interest-bounces+kai.koehne=digia@qt-project.org
 [mailto:interest-bounces+kai.koehne=digia@qt-project.org] On Behalf Of
 David V-Play
 Sent: Friday, November 08, 2013 4:11 PM
 To: interest@qt-project.org
 Subject: Re: [Interest] Performance of Qt 5.2 much slower than Qt 5.1?
 
 Is there any change to get QSG_RENDER_TIMING=1 working on mobiles,
 because it works only on Desktop when set in the Projects System
 Environment settings.

Which mobile OS are you using? As long as it supports environment variables and 
stderr setting QSG_RENDER_TIMING should work, too.

Regards

Kai
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Performance of Qt 5.2 much slower than Qt 5.1?

2013-11-08 Thread David V-Play
Well, I tried it with Android (Nexus 7 and Huawai) and iOS 7 (iPad/Phone)
with Qt 5.2 and the option only works on desktops.

But it also does not work on desktops when I set the env manually with


qputenv(QSG_RENDER_TIMING,1);


Cheers,


David



On Fri, Nov 8, 2013 at 4:20 PM, Koehne Kai kai.koe...@digia.com wrote:

  -Original Message-
  From: interest-bounces+kai.koehne=digia@qt-project.org
  [mailto:interest-bounces+kai.koehne=digia@qt-project.org] On Behalf
 Of
  David V-Play
  Sent: Friday, November 08, 2013 4:11 PM
  To: interest@qt-project.org
  Subject: Re: [Interest] Performance of Qt 5.2 much slower than Qt 5.1?
 
  Is there any change to get QSG_RENDER_TIMING=1 working on mobiles,
  because it works only on Desktop when set in the Projects System
  Environment settings.

 Which mobile OS are you using? As long as it supports environment
 variables and stderr setting QSG_RENDER_TIMING should work, too.

 Regards

 Kai

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Performance of Qt 5.2 much slower than Qt 5.1?

2013-11-08 Thread Koehne Kai

 -Original Message-
 From: David V-Play [mailto:david.ber...@v-play.net]
 Sent: Friday, November 08, 2013 5:02 PM
 To: Koehne Kai
 Cc: interest@qt-project.org
 Subject: Re: [Interest] Performance of Qt 5.2 much slower than Qt 5.1?
 
 Well, I tried it with Android (Nexus 7 and Huawai) and iOS 7 (iPad/Phone) with
 Qt 5.2 and the option only works on desktops.

Sounds like a bug to me. Did the environment not get applied when lauched from 
Qt Creator?
 
 But it also does not work on desktops when I set the env manually with
 
 
 qputenv(QSG_RENDER_TIMING,1);

That ain't work, because the environment is only checked once at startup:

static bool qsg_render_timing = !qgetenv(QSG_RENDER_TIMING).isEmpty();

Regards

Kai
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] compilation error in qdatetime

2013-11-08 Thread Graham Labdon
Hi
I amusing Qt5 with Visual Studio and one of my projects is giving the following 
error

c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error C2589: '(' 
: illegal token on right side of '::'
1c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error C2059: 
syntax error : '::'
1  moc_EventSimulator.cpp

I can get a successful compilation by adding 'NOMINMAX' to the list of pre 
processor macros

I would be grateful if someone could explain why this error occurs

Thanks


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Use Oracle 11g with Qt5.1 on MacOS

2013-11-08 Thread Thiago Macieira
On sexta-feira, 8 de novembro de 2013 11:00:47, Emmanuel Bourgerie wrote:
   ld: library not found for -lclntsh

What's the full path to libclntsh.dylib?
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] bad behavior using window flags

2013-11-08 Thread Ing. Rayner Pupo Gomez
Hello, I'm having some issues on setting window flags on a custom widget. I 
want to toggle in/out a widget from its parent using Qt::Window and Qt::Widget 
flags but it doesnt work on 100 percent of cases, sometimes (random actually) 
setting the Qt::Widget flag to restore the widget as its parent content, this 
child continue on a sepparate window and strange contents are draw on parent. 
After this odd cases myWidget-isWindow() returns false but it still on its own 
window. 
BTW I start a fresh project that only contains attaching-dettaching of a 
widget code and responds ok 100% of cases, but I dont know why my Widget 
sometimes fails. 
TIP: MyWidget is just a QWidget subclass that contains a QVideoWidget 


III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 
2014. Ver www.uci.cu--=_facf3d84-a8f5-41ca-9930-d1d40f836292
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

htmlheadstyle type='text/css'p { margin: 0; }/style/headbodydiv 
style='font-family: Times New Roman; font-size: 12pt; color: #00'Hello, 
I'm having some issues on setting window flags on a custom widget. I want to 
toggle in/out a widget from its parent using Qt::Window and Qt::Widget flags 
but it doesnt work on 100 percent of cases, sometimes (random actually) setting 
the Qt::Widget flag to restore the widget as its parent content, this child 
continue on a sepparate window and strange contents are draw on parent. After 
this odd cases myWidget-gt;isWindow() returns false but it still on its own 
window. brBTW I start a fresh project that only contains 
attaching-dettaching of a widget code and responds ok 100% of cases, but I 
dont know why my Widget sometimes fails.brTIP: MyWidget is just a QWidget 
subclass that contains a QVideoWidgetbr/div
br
html
body
hr align=LEFT size=1 width=630 color=Black noshade
pIII Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 
2014. Ver a href=http://www.uci.cu/; www.uci.cu /a
!--img src=http://universidad.uci.cu/cinta.png/--
/body
/html
br
/body/html___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] compilation error in qdatetime

2013-11-08 Thread Thiago Macieira
On sexta-feira, 8 de novembro de 2013 16:36:14, Graham Labdon wrote:
 Hi
 I amusing Qt5 with Visual Studio and one of my projects is giving the
 following error
 
 c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error C2589:
 '(' : illegal token on right side of '::'
 1c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error
 C2059: syntax error : '::' 1  moc_EventSimulator.cpp
 
 I can get a successful compilation by adding 'NOMINMAX' to the list of pre
 processor macros
 
 I would be grateful if someone could explain why this error occurs

The error occurs because that line is:
  static inline qint64 nullJd() { return std::numeric_limitsqint64::min(); }

If you have a macro called min, it will wreak havoc with the source code. 
Please stop defining macros called min. We're in 2013.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] What for does qt5gui need OpenGL?

2013-11-08 Thread Thiago Macieira
On sexta-feira, 8 de novembro de 2013 16:31:37, Mandeep Sandhu wrote:
 We've been using Flavio Castelli's QJson in our embedded project with
 Qt4 and it's worked out well.
 http://qjson.sourceforge.net/

I've played with it too. I would recommend using Girish's parser instead.

Compared to QJsonDocument, Girish's parser is only about 10x slower. Flavio's 
is 30x.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] compilation error in qdatetime

2013-11-08 Thread Graham Labdon
I have defined a macro named min in my code!

-Original Message-
From: interest-bounces+graham.labdon=avalonsciences@qt-project.org 
[mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On 
Behalf Of Thiago Macieira
Sent: 08 November 2013 16:40
To: interest@qt-project.org
Subject: Re: [Interest] compilation error in qdatetime

On sexta-feira, 8 de novembro de 2013 16:36:14, Graham Labdon wrote:
 Hi
 I amusing Qt5 with Visual Studio and one of my projects is giving the 
 following error
 
 c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error C2589:
 '(' : illegal token on right side of '::'
 1c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error
 C2059: syntax error : '::' 1  moc_EventSimulator.cpp
 
 I can get a successful compilation by adding 'NOMINMAX' to the list of 
 pre processor macros
 
 I would be grateful if someone could explain why this error occurs

The error occurs because that line is:
  static inline qint64 nullJd() { return std::numeric_limitsqint64::min(); }

If you have a macro called min, it will wreak havoc with the source code. 
Please stop defining macros called min. We're in 2013.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Use Oracle 11g with Qt5.1 on MacOS

2013-11-08 Thread Emmanuel Bourgerie
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

/usr/lib/libclntsh.dylib.11.1
/usr/lib/libclntsh.dylib

The second is a symlink to the first.

- --
Emmanuel Bourgerie
Web developer
Dublin, Ireland
(+353) 8 144 5278
http://bourgerie.fr/

Confus avec BEGIN PGP SIGNED MESSAGE ? http://weusepgp.info/fr
Confused with BEGIN PGP SIGNED MESSAGE? http://weusepgp.info/

On 08/11/2013 16:38, Thiago Macieira wrote:
 On sexta-feira, 8 de novembro de 2013 11:00:47, Emmanuel Bourgerie
 wrote:
 ld: library not found for -lclntsh
 
 What's the full path to libclntsh.dylib?
 
 
 
 ___ Interest mailing
 list Interest@qt-project.org 
 http://lists.qt-project.org/mailman/listinfo/interest
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (Darwin)

iQEcBAEBAgAGBQJSfRnyAAoJEKKGwafy1e1+XCoIAKZI5k/1HT9Secz5YOt4UWRT
DIat1l1NSmFFfQHYYHFlGYTLyXhLzvui8+x0Y897yM+lTUtaObh/vDOIMFXkHo95
gVpkPV4WPLzlQzmieJfMBm1nj3NZJp9A5vu9clhflnsyd1A/50rHOZftVh0clHg1
b0ejXtzbBLGnduahxDM+sbStz9cHCY7p/rS4qqSn75UTILY5NKWmN1qWtbW4tsDY
0ZC/7lvzWwz5+bUU2YlpWZV2UA0Rlcv/nb8pyLK8Y9pjAdbsi9QtOYg8ypwk1CX5
f5ljMQDBvYBmUdWIaoWed0trSwLBdEcFfdmH2xxlQwSKKb9jO8/UD4Iapej1EV4=
=JKqw
-END PGP SIGNATURE-
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QtDBus interface design question

2013-11-08 Thread Roland Winklmeier
Hi mandeep,

thanks for the answer. I was a little bit concerned, since I also want
to have the possibility to sort the table, but with transfering only
strings, I  would loose the operator () implementation. But I think I
can workaround that, by passing an enum with the sort order and let the
sender to the sorting already.

I'm going to do some benchmarks, how fast each of the solutions are
and choose the quickest.

Maybe some DBus interface design expert can suggest something else
meanwhile.

BR,
Roland

Am 08.11.2013 08:53, schrieb Mandeep Sandhu:
 The only solution I can imagine is to pass the entire table in one DBus
 message, but how. I cannot pass the objects itself, because I cannot
 
 How about returning an array of strings in the method call? Both
 are valid DBus types and you could probably concatenate the various
 properties using a delimiter and tokenize them at the receiver end.
 
 I'm no dbus expert and have mostly used QtDbus to communicate with
 existing services, like NetworkManager etc, so CMIIW! :)
 
 HTH,
 -mandeep
 
 transfer an QObject via DBus. Creating plain structs and pass them is an
 option but is rather dirty to me.

 How are DBus experts handling this? I know our DBus interface is quite
 complex and most others are far easier, but there must be a solution.
 I'm still a DBus noob, so any hint how to change the design would be
 very very welcome.

 Thanks very much
 Roland





 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Context2D::createConicalGradient broken?

2013-11-08 Thread Guido Seifert
Hi,
I just tried top use:

QtQuick 2.1:

var gradient = ctx.createConicalGradient(20.0, 10.0, 2.0);  
gradient.addColorStop(0.3, Qt.rgba(1, 0, 0, 1));

I get an exception:

Property 'addColorStop' of object [object Object] is not a function

Latest beta1 snapshot.

My bug? Your bug? Known bug?

Guido

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] What for does qt5gui need OpenGL?

2013-11-08 Thread André Pönitz
On Fri, Nov 08, 2013 at 07:15:29PM +, Joseph Crowell wrote:
  AFAIK you can build Qt5 with no-opengl switch and you should be able to run
  QtWidgets applications without having libQt5OpenGl dependency in libQt5Gui.
  The problem is that this won't scale. One cannot provide custom builds of
  Qt for each realistic user configuration, let alone proactively package
  such stuff in large quantities. Requiring the users to run one, or one out
  of a few blessed configurations is likewise infeasible.
 
  Runtime detection of capabilities and selecting features _then_ is
  the only viable appraoch.
 
 The platform developers can and should provide custom builds of Qt 5 for 
 their embedded platform. The fact that embedded platform developers 
 didn't know enough about Qt to know that they could compile Qt 5 without 
 Open GL worrys me.

The platform case is not the problem as such.

The worrying case are the people who need to build Qt for an unknown set
of target configuration, like the typical pre-build Windows application
that bundles their libraries, or even Linux distributions themselves.

Andre'
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Use Oracle 11g with Qt5.1 on MacOS

2013-11-08 Thread Thiago Macieira
On sexta-feira, 8 de novembro de 2013 17:05:54, Emmanuel Bourgerie wrote:
 /usr/lib/libclntsh.dylib.11.1
 /usr/lib/libclntsh.dylib

Looks right.

Check that the libraries are of the right architecture (x86, x86-64, ppc or 
ppc32).
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Use Oracle 11g with Qt5.1 on MacOS

2013-11-08 Thread Emmanuel Bourgerie
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

They are fine AFAIK. Is there a command to double-check?

Emmanuel Bourgerie
Web developer
Dublin, Ireland
(+353) 8 144 5278
http://bourgerie.fr/

Confus avec BEGIN PGP SIGNED MESSAGE ? http://weusepgp.info/fr
Confused with BEGIN PGP SIGNED MESSAGE? http://weusepgp.info/

On 08/11/13 21:42, Thiago Macieira wrote:
 On sexta-feira, 8 de novembro de 2013 17:05:54, Emmanuel Bourgerie
 wrote:
 /usr/lib/libclntsh.dylib.11.1 /usr/lib/libclntsh.dylib
 
 Looks right.
 
 Check that the libraries are of the right architecture (x86,
 x86-64, ppc or ppc32).
 
 
 
 ___ Interest mailing
 list Interest@qt-project.org 
 http://lists.qt-project.org/mailman/listinfo/interest
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSfVs3AAoJEKKGwafy1e1+gTAH/iUHTXg2A62pH5Sd7eUmfe0P
poODb7lOuvtwdnuc5vx5gE7DC6JAT6A5bEmjCwNqZ3p2bsJUvW9r6d7xYAVpCln4
24e1ViPHO9xRwDnmwiVT97zhvOIE9xzSphlgv8xaFiECkzXxaALCOVSp5NKdJldi
4DncGxaQf5Q2JvS/2e+wJeJrFCD6VFKHN0YVJxjgdA1KrfsOawnCVj+yO85iKSHC
tPv7AVYcCnnFdpbWhiwwCE8oVfRUfr3I+wXxWhq54EZWuCBECFzrVQU8eXFRW6RR
5v7q3cdh9LAx5kk7h/xiM4pVG7SPaY42HHhPf8DwuJWzOiwjNMcF6PojzgtyDWA=
=XZk2
-END PGP SIGNATURE-
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] compilation error in qdatetime

2013-11-08 Thread Thiago Macieira
On sexta-feira, 8 de novembro de 2013 17:03:32, Graham Labdon wrote:
 I have defined a macro named min in my code!

You probably meant I have *not* defined [...]

I understand. But you included a header that does define one: windows.h.

Stop doing that. windows.h has a facility to ask it not to define dangerous 
macros. You should use it.

You should also only include windows.h in .cpp sources, never in headers, and 
always as the last thing you include (similarly for X11/Xlib.h).
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Use Oracle 11g with Qt5.1 on MacOS

2013-11-08 Thread Thiago Macieira
On sexta-feira, 8 de novembro de 2013 21:44:23, Emmanuel Bourgerie wrote:
 They are fine AFAIK. Is there a command to double-check?

otool should be able to print the headers, but the file command should be 
enough. If file says that it's a Mach-O fat binary, check which architectures 
are contained inside.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QCamera and QCameraViewFinder

2013-11-08 Thread Joshua Grauman
Thanks so much.

I may be missing something, but is there an easy way to convert 
QVideoFrame to QImage? I can't see one.

Also note that the Qt example code also has this problem:
http://qt-project.org/doc/qt-5.0/qtmultimedia/multimediawidgets-camera.html

also note that the basic code I posted was example code from Qt 
Documentation...

Thanks!

Josh

 Oh, I overlooked the code sample you provided.

 You should listen to the imageAvailable() signal instead of 
 imageCaptured(). What you get from imageCaptured() is just a preview, 
 it's emitted right after the camera sensor captured the image but at 
 this point the final image is not processed yet. That final image is 
 provided by imageAvailable(). You'll notice it's a QVideoFrame and 
 you'll have to convert it to a QImage if that's what you need.

 Yoann Lopes
 Senior Software Engineer - Digia, Qt
 Visit us on: http://qt.digia.com

 On Nov 5, 2013, at 7:09 PM, Joshua Grauman wrote:

 Sorry, I'm using Qt5.2beta under Linux.

 Josh

 Which platform are you on?

 Yoann Lopes
 Senior Software Engineer - Digia, Qt
 Visit us on: http://qt.digia.com

 On Nov 5, 2013, at 7:14 AM, Joshua Grauman wrote:

 Hello all,

 I setup a basic use of QCamera and QCameraViewFinder that work fine. I
 just used the basic example in the docs to capture an image like this:

 camera-searchAndLock();  //on half pressed shutter button
 imageCapture-capture();  //on shutter button pressed
 camera-unlock(); //on shutter button released

 and had setup the viewfinder and camera like this:

 camera = new QCamera;
 viewFinder = new QCameraViewfinder(picture1);
 viewFinder-setSizePolicy(QSizePolicy::Maximum,QSizePolicy::Maximum);
 viewFinder-setGeometry(picture1-geometry());
 imageCapture = new QCameraImageCapture(camera);
 connect(imageCapture, SIGNAL(imageCaptured(int, const QImage )), this, 
 SLOT(gotImage(int, const QImage )));
 camera-setViewfinder(viewFinder);
 imageCapture-setCaptureDestination(QCameraImageCapture::CaptureToBuffer);
 camera-setCaptureMode(QCamera::CaptureStillImage);

 Everything works as expected. The problem is with the exposure settings.
 The viewfinder looks how I want it to (properly exposed). But when I
 capture the image, it is under-exposed (very dark). I was hoping to get
 the picture that is taken to have the same exposure settings as the
 viewfinder since it looks fine. Does anyone know why the default settings
 for QCamera would be under-exposed in comparison to the viewfinder?
 Thanks!

 Josh
 ___
 Interest mailing list
 Interest@qt-project.orgmailto:Interest@qt-project.orgmailto:Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest




___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest