[Interest] Fwd: Embedding excel file into QAxWidget

2013-11-20 Thread Michele Ciampichetti
Hello to all, I'm a newbie of Qt and I'd like to embed an excel file into QDialog by QAxWidget. I search by documentation and internet and I got some example, so I try to got it but... I reach two ways: 1) If I use *QAxWidget->setControl("C:\file.xls")* I see the sheet into my control (as I like)

Re: [Interest] Showing Icon and tooltip into QSqlQueryModel index

2012-02-20 Thread Michele Ciampichetti
e the schema. > 2) Example code > 3) A picture that shows the result (The example adds a warning icon and > a tooltip message on the first column). > > The example uses the MySQL Driver. > > Best Regards, > Thales Lange. > > > On 20-02-2012 10:55, Michele Ciampichetti

Re: [Interest] Showing Icon and tooltip into QSqlQueryModel index

2012-02-20 Thread Michele Ciampichetti
odelIndex &item, int role = > Qt::DisplayRole ) const > > When "item" is your table index and role == Qt::DecorationRole, you can > return the desirable icon. > > I hope this solution might be useful! > > Best Regards, > Thales Lange. > > > On 19-02-

[Interest] Showing Icon and tooltip into QSqlQueryModel index

2012-02-19 Thread Michele Ciampichetti
Dear to all, I need to insert an icon into every index of a QSqlQueryModel (so I can retrieve them from DB but mark them with the icon). I need something like QStandardItem (const QIcon &icon, const QString &text) constructor, but I don't know how can I subclass It. I need also to activate the tool

Re: [Interest] Depending QCombobox

2012-01-10 Thread Michele Ciampichetti
TableModel::setFilter(const QString&)' discards qualifiers Any ideas of how resolve it? thanks a lot for your time! Michele 2012/1/9 Michele Ciampichetti > > Good morning to all, > How can I create 3 depending QCombobox, for example Country, City and Zip Code, so that when

[Interest] Fwd: [Qt-interest] Store/Retrive Image (or file) into/from QSqlite BLOB field

2012-01-09 Thread Michele Ciampichetti
-- Forwarded message -- From: Michele Ciampichetti Date: 2012/1/9 Subject: Re: [Qt-interest] Store/Retrive Image (or file) into/from QSqlite BLOB field To: Esdras Beleza Dear Esdras, thanks for your answer but... how I can do it? :) I need to subclass the QSqlRelationDelegate

[Interest] Depending QCombobox

2012-01-09 Thread Michele Ciampichetti
Good morning to all, How can I create 3 depending QCombobox, for example Country, City and Zip Code, so that when I select one, the other ones are filtered by the value of the first one? I'm use a QSqlRelationalTableModel and 3 relations (so also 3 QSqlTableModel). I know that I can use QComboBox s

[Interest] Store/Retrive Image (or file) into/from QSqlite BLOB field

2012-01-08 Thread Michele Ciampichetti
Good morning to all, How I can store/retreive Image (or file) into/from QSqlite BLOB field using QDataWidgetMapper and QLabel (to show the picture) and QSqlRelationalTableModel? Could you send my any example? Thanks a lot for your time Michele ___ Inte

[Interest] Depending QCombobox

2012-01-08 Thread Michele Ciampichetti
Good morning to all, How can I create 3 depending QCombobox, for example Country, City and Zip Code, so that when I select one, the other ones are filtered by the value of the first one? I'm use a QSqlRelationalTableModel and 3 relations (so also 3 QSqlTableModel). I know that I can use signal to f