[Interest] QSqlRelationalModel and QDataWidgetMapper: can items in QComboBox be filtered?

2012-02-23 Thread Dmitry Teslenko
Hello! There's nice qt docs example here: http://doc.qt.nokia.com/4.7-snapshot/sql-sqlwidgetmapper.html demonstrating QSqlRelationalTable, QDataWidgetMapper and QComboBox. They setup model: ... query.exec("create table person (id int primary key, " "name varchar(20

Re: [Interest] StyleSheets in children QWidgets

2012-02-23 Thread joseph . w . crowell
You can set a style sheet for a specific widget only. Look in examples. On 2/23/12 6:34 AM Pritam wrote: On Thursday 23 February 2012 05:46 PM, Николай Шатохин wrote: So, If I change StyleSheet of CentralWidget then I must change StyleSheets of all children Widgets? So, is it possible to see de

[Interest] QXmlQuery

2012-02-23 Thread Miller, Doug
Does Qt's QXmlQuery have implementation specific (extension) functions that can be used within the XQuery scripts? Saxon, Mark Logic, XQilla, and other implementations of XQuery engines have extension functions. Where can I find QXmlQuery's? Or are we supposed to use something like EXSLT

Re: [Interest] Enabling Harfbuzz on Mac

2012-02-23 Thread Joshua Grauman
Thanks. I found out that the issue is that Harfbuzz is only used on Mac (even when enabled) for fonts that have GSUB and GPOS tables. I assumed that it was used for all TTF fonts (which Harfbuzz can shape). But apparently Qt can't/doesn't distinguish between AAT fonts and TTF fonts except for n

Re: [Interest] Installing Qt SDK Problem Summary

2012-02-23 Thread Szalata, Zenon M.
Thank you Thiago, If the "Pixmap is not an X11 ..." bug has been fixed, why then, the creator installed with the SDK installer prints these messages? Is there a patch that could be installed? Zen > -Original Message- > From: interest-bounces+zms=slac.stanford@qt-project.org > [mail

Re: [Interest] Proper use of SharedPointer/WeakPointer

2012-02-23 Thread Jason H
Thanks everyone! This would have taken me ages to figure out. #4 it is. From: Thiago Macieira To: interest@qt-project.org Sent: Thursday, February 23, 2012 10:49 AM Subject: Re: [Interest] Proper use of SharedPointer/WeakPointer On quinta-feira, 23 de fevere

Re: [Interest] Proper use of SharedPointer/WeakPointer

2012-02-23 Thread Thiago Macieira
On quinta-feira, 23 de fevereiro de 2012 06.40.29, Jason H wrote: > Hrm, my objects do have parents, and when the parent goes, the children need > to go too. How is that resolved? It isn't. You must resolve this on your own. Suggestions: 1) don't set a parent 2) don't put them in a QSharedPointe

Re: [Interest] Proper use of SharedPointer/WeakPointer

2012-02-23 Thread Jason H
Hrm, my objects *do* have parents, and when the parent goes, the children need to go too. How is that resolved? From: André Somers To: interest@qt-project.org Sent: Thursday, February 23, 2012 9:37 AM Subject: Re: [Interest] Proper use of SharedPointer/WeakP

Re: [Interest] Proper use of SharedPointer/WeakPointer

2012-02-23 Thread André Somers
Op 23-2-2012 15:29, Thiago Macieira schreef: > On quinta-feira, 23 de fevereiro de 2012 06.26.19, Jason H wrote: >> So in a return-everything query function, it would look like: >> >> QList > ObjectDatabase::returnAll() >> { >> QList > results; >> foreach (const obj, m_pObjects) >>

Re: [Interest] Proper use of SharedPointer/WeakPointer

2012-02-23 Thread Thiago Macieira
On quinta-feira, 23 de fevereiro de 2012 06.26.19, Jason H wrote: > So in a return-everything query function, it would look like: > > QList > ObjectDatabase::returnAll() > { > QList > results; > foreach (const obj, m_pObjects) > { > > results << QSharedPointer(obj); > } >

Re: [Interest] Proper use of SharedPointer/WeakPointer

2012-02-23 Thread Pritam
On Thursday 23 February 2012 07:40 PM, Jason H wrote: I have an object database (objects inherit QObject) which is queryable. The result of the query is a list of zero or more objects. I don't want to give pointers themselves, as people could call delete on them and destroy the database. In t

Re: [Interest] Qt and QML applications for NaCl

2012-02-23 Thread Thiago Macieira
On quinta-feira, 23 de fevereiro de 2012 16.11.31, Николай Шатохин wrote: > Hello. > > Is it possible to develop Google NaCl applications by Qt and with interface > by QML? Yes. See http://labs.qt.nokia.com/2010/06/25/qt-for-google-native-client-preview/ There's some work going on to bring this

[Interest] Qt and QML applications for NaCl

2012-02-23 Thread Николай Шатохин
Hello. Is it possible to develop Google NaCl applications by Qt and with interface by QML? Is it possible to port NaCl to other browsers, not only Google Chrome and Chromium? Best regards, Nick ___ Interest mailing list Interest@qt-project.org http://li

[Interest] Proper use of SharedPointer/WeakPointer

2012-02-23 Thread Jason H
I have an object database (objects inherit QObject) which is queryable. The result of the query is a list of zero or more objects. I don't want to give pointers themselves, as people could call delete on them and destroy the database. In this example: QList results = objDb.query(); I want res

Re: [Interest] StyleSheets in children QWidgets

2012-02-23 Thread Pritam
On Thursday 23 February 2012 05:46 PM, Николай Шатохин wrote: So, If I change StyleSheet of CentralWidget then I must change StyleSheets of all children Widgets? So, is it possible to see default stylesheets of widgets? What stylesheet do I must to set to create button with rounded corners and

Re: [Interest] StyleSheets in children QWidgets

2012-02-23 Thread norulez
You can use something like the following for only the button with the object name (mybutton): QPushButton#mybutton { border: 2px solid gray; border-radius: 3px; } In the code you must use: pButton->setObjectName("mybutton"); But I recommend that you have a look on QStyle. Best Regards

Re: [Interest] StyleSheets in children QWidgets

2012-02-23 Thread André Somers
Op 23-2-2012 13:16, Николай Шатохин schreef: > So, If I change StyleSheet of CentralWidget then I must change > StyleSheets of all children Widgets? So, is it possible to see default > stylesheets of widgets? What stylesheet do I must to set to create > button with rounded corners and different

Re: [Interest] StyleSheets in children QWidgets

2012-02-23 Thread Николай Шатохин
So, If I change StyleSheet of CentralWidget then I must change StyleSheets of all children Widgets? So, is it possible to see default stylesheets of widgets? What stylesheet do I must to set to create button with rounded corners and different pictures on click, mouse over, selection, normal and dis

Re: [Interest] StyleSheets in children QWidgets

2012-02-23 Thread norulez
This isn't possible. I know there where a hack/workaround but this doesn't work either. Best Regards Am 23.02.2012 um 12:14 schrieb Николай Шатохин : > Hello. > > When I set custom StyleSheet in CentralWidget or MainWindow, all children > widgets and elements lost their default StyleSheets. H

[Interest] StyleSheets in children QWidgets

2012-02-23 Thread Николай Шатохин
Hello. When I set custom StyleSheet in CentralWidget or MainWindow, all children widgets and elements lost their default StyleSheets. How to keep default StyleSheets in cheldren elements? And how to disable ugly pink selection in buttons when I change it StyleSheets? Best regards, Nick __

Re: [Interest] Enabling Harfbuzz on Mac

2012-02-23 Thread James Larcombe
Joshua Grauman wrote: > According to this page, it is now possible to enable Harfbuzz on Mac by > setting > an environment variable: > https://bugreports.qt-project.org/browse/QTBUG-17728 > > However, unless I'm missing something I haven't been able to enable > Harfbuzz on Mac. I'm using Qt 4.8,

Re: [Interest] Installing Qt SDK Problem Summary

2012-02-23 Thread Thiago Macieira
On quarta-feira, 22 de fevereiro de 2012 21.11.34, Szalata, Zenon M. wrote: > I suppose if I deleted ~/.config/Nokia from my home directory, then the > installation would succeed. However, it is very likely that the > installation would break next time RedHat upgraded some component in its qt > in