Re: [Interest] How to produce a cluster of radio buttons?

2012-08-30 Thread David Boosalis
Another way is to use QToolButton instead of QCheckBox. For each button do something like this: QIcon Icon; QPixmap pm(":/images/off.png"); QPixmap pmSelected(":/images/on.png"); Icon.addPixmap(pm,QIcon::Normal,QIcon::Off); Icon.addPixmap(pmSelected,QIcon::Normal,QIcon::On); QToolButton

Re: [Interest] QSound

2012-07-26 Thread David Boosalis
Rocks !!! On Wed, Jul 25, 2012 at 1:46 PM, Thiago Macieira wrote: > On quarta-feira, 25 de julho de 2012 13.31.31, David Boosalis wrote: > > Does there exist a sound file format that works across all platforms, And > > which way is the recommended way to play simple sounds, QSound or

[Interest] QSound

2012-07-25 Thread David Boosalis
I was trying to implement a few sounds in my Qt Application. I tried QSound but found that I could only get it to work on Windows. On Kubuntu the wav files do play from the command line with mplayer, as do ogg files. I then tried to use QAudioOutput which is part of the multimedia module. This di

Re: [Interest] Why does Assistant link to debug dll's on windows

2012-07-21 Thread David Boosalis
gt; > Regards, > > Peter Lee > > > On 21/07/2012 1:09 AM, David Boosalis wrote: > > In the process of packaging Qt's Assistant application on Windows I found > that it linked to the debug libs of Qt (Gui,Core,Webkit, Network). For my > development I installed Qt ont

[Interest] Why does Assistant link to debug dll's on windows

2012-07-20 Thread David Boosalis
In the process of packaging Qt's Assistant application on Windows I found that it linked to the debug libs of Qt (Gui,Core,Webkit, Network). For my development I installed Qt onto my Windows computer using the package installer for it. I guess I will have to download the source code for Qt and

Re: [Interest] QLIneEdit Bug still valid ?

2012-07-15 Thread David Boosalis
Hi Petric. SInce your changing the text in your code, as a work around why not disconnect the signal, change the text, then reconnect the signal On Sun, Jul 15, 2012 at 5:45 AM, Petric Frank wrote: > Hello, > > developing an application using Qt 4.8.2 (Linux) i stumbled over a bug with > QLin

Re: [Interest] Has anyone heard about Jolla?

2012-07-11 Thread David Boosalis
There was this article in the Wall Street Journal (Dated July 9) By SVEN GRUNDBERG Finnish start-up Jolla Ltd. is in talks with hardware makers, aiming to release a smartphone that runs on Nokia

Re: [Interest] ICS Announces Qt-Based Google APIs

2012-06-19 Thread David Boosalis
Very nice and userful. Thank you ICS On Tue, Jun 19, 2012 at 11:21 AM, Lynn Gray wrote: > New Qt Clients Allow Easy Integration with Google Services Through Qt > > ICS has published almost 20 Qt and QML clients for popular Google APIs > making it easy to integrate the Google services users wa

Re: [Interest] Is Nokia officially done with Qt?

2012-06-15 Thread David Boosalis
A nice name for a fork of Qt would be QTHE (Pronounced Cutie) The HE being the first name of original founders of Trolltech - Haarvard and Eirik. Fork the code, lets throw out the Crayons and let Qt thrive on the Desktop, Server, and Enterprise space. Leave the mobile space to Html and Java. Jus

Re: [Interest] Semi-OT: Pre-Compiled SQLite vs. building from source

2012-05-18 Thread David Boosalis
Qt comes with SQLite, so unless you explicitly build it out you get it for free. I use Qt and SQLite on Windows using Visual Studio 2008, and have had no problem implementing SQLlite. Just make sure you ship the SQL DLL as part of your code On Fri, May 18, 2012 at 5:13 PM, K. Frank wrote: > Hel

Re: [Interest] Problem with QTcpSocket and Windows 7

2012-05-10 Thread David Boosalis
Hi Lucas. I just tried to replicate the problem on my laptop here running Windows 7 Home. The Qt app was built against version 4.8.1. My app's tcp connection(s) were resumed after I unplugged the network connection and then replugged it in after ten seconds. I don't think I do anything special

Re: [Interest] Issue with QSortFilterProxyModel and Delegate

2012-05-10 Thread David Boosalis
André, your a rock star !!! I did as you suggested and "wahhla, bingo, bango" - it all works. Thanks a lot for taking the time to answer my question. -David On Thu, May 10, 2012 at 4:52 AM, André Somers wrote: > Op 10-5-2012 13:45, David Boosalis schreef: > > Hope someo

[Interest] Issue with QSortFilterProxyModel and Delegate

2012-05-10 Thread David Boosalis
Hope someone can help me here. I have a QTableView for which I use my own QSortFilterProxyModel and own Delegate which is based on QStyledItemDelegate. My issue is in the Delegates::paintEvent() I get core dumps if I have the following (Not using a proxy filter it works by the way): void DataDel

Re: [Interest] Layout problem

2012-05-08 Thread David Boosalis
grid->addWidget(compass,0,0,1,2); grid->addWidget(leftLabelArea,1,0); grid->addWidget(rightLabelArea,1,1); grid->setRowStretch(0,1); grid->setRowStretch(1,0); if you want the compass to always keep the same size so it does not get distorted, you might try grid->addWidget(compass,0,0,1,2,Qt::Align

Re: [Interest] QwtPlot in QGridLayout

2012-05-04 Thread David Boosalis
Issues with your code that I see: 1) It will not compile as is 2) you do not have and connect for addChartPB::clicked() and your slot addChart(). I would advise you not use QWT to debug your code, but just use labels instead. On Thu, May 3, 2012 at 2:24 AM, Sujan Dasmahapatra wrote: > I want

Re: [Interest] QSortFilterProxyModel slow updating sql model attached

2012-05-01 Thread David Boosalis
I've not put much stock in the QSqlQueryModel, but instead done my models derived from QStandardModel. This requires you to write more code for the SQL transactions using QT's SQL module (or your own). Granted you have to write more code and you don't get notices from outside changes to the data

Re: [Interest] Tool tip for a QTableView column heading?

2012-04-25 Thread David Boosalis
Here is an example with a QTreeView, it should work for QTableView. _model = new ModelItemModel(this); setModel(_model); for(int i=0;isetHorizontalHeaderItem(i,headerItem[i]); headerItem[i]->setToolTip(headerToolTips[i]); } The above code is not complete, but I think you get the pictu