Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, February 2007
Using MySql with Qt


Message 1 in thread

I'm trying out the Sql examples from "C++ GUI programming with Qt".
When using the first example in the chapter 13, with appropriate  
settings,
I get the message that the Toolkit could not find the MySql driver,
and the list of available drivers are empty. How do I fix this?
(Mac OS X Tiger, Qt 4.1.1, boot drive Formatted as Case-sensitive HFS+ )
------
What is a woman that you forsake her, and the hearth fire and the  
home acre,
to go with the old grey Widow Maker.  --Kipling, harp song of the  
Dane women
Tommy Nordgren
tommy.nordgren@xxxxxxxxx



--
 [ signature omitted ] 

Message 2 in thread

Did you build Qt with MySQL support ?

On Feb 5, 2007, at 6:24 PM, Tommy Nordgren wrote:

> I'm trying out the Sql examples from "C++ GUI programming with Qt".
> When using the first example in the chapter 13, with appropriate 
> settings,
> I get the message that the Toolkit could not find the MySql driver,
> and the list of available drivers are empty. How do I fix this?
> (Mac OS X Tiger, Qt 4.1.1, boot drive Formatted as Case-sensitive HFS+ 
> )
> ------
> What is a woman that you forsake her, and the hearth fire and the home 
> acre,
> to go with the old grey Widow Maker.  --Kipling, harp song of the Dane 
> women
> Tommy Nordgren
> tommy.nordgren@xxxxxxxxx
>
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>

--
 [ signature omitted ] 

Message 3 in thread

On 6 feb 2007, at 03.19, Dan White wrote:

> Did you build Qt with MySQL support ?
>
	I'm using the Binary build on the book cd. It includes a mySql driver.
However, I've found that the driver links against a dynamic MySql client
library, and all thats available with the MySql binary builds are  
static libraries.
I'l have to rebuild at least Qt from source, and maybe MySql also.
Any info on rebuilding Qt, with frameworks would be appreciated.

> On Feb 5, 2007, at 6:24 PM, Tommy Nordgren wrote:
>
>> I'm trying out the Sql examples from "C++ GUI programming with Qt".
>> When using the first example in the chapter 13, with appropriate  
>> settings,
>> I get the message that the Toolkit could not find the MySql driver,
>> and the list of available drivers are empty. How do I fix this?
>> (Mac OS X Tiger, Qt 4.1.1, boot drive Formatted as Case-sensitive  
>> HFS+ )
>> ------
>> What is a woman that you forsake her, and the hearth fire and the  
>> home acre,
>> to go with the old grey Widow Maker.  --Kipling, harp song of the  
>> Dane women
>> Tommy Nordgren
>> tommy.nordgren@xxxxxxxxx
>>
>>
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
>> with "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>

------
What is a woman that you forsake her, and the hearth fire and the  
home acre,
to go with the old grey Widow Maker.  --Kipling, harp song of the  
Dane women
Tommy Nordgren
tommy.nordgren@xxxxxxxxx



--
 [ signature omitted ] 

Message 4 in thread

There is lots of information at http://doc.trolltech.com/4.2

Specifically, these might be of use:

http://doc.trolltech.com/4.1/install-mac.html
http://doc.trolltech.com/4.1/qtsql.html#details
http://doc.trolltech.com/4.1/sql-driver.html#building-the-drivers-using-configure
http://doc.trolltech.com/4.1/sql-driver.html#how-to-build-the-plugin-on-unix-and-mac-os-x

 -------------- Original message ----------------------
From: Tommy Nordgren <tommy.nordgren@xxxxxxxxx>
> 
> On 6 feb 2007, at 03.19, Dan White wrote:
> 
> > Did you build Qt with MySQL support ?
> >
> 	I'm using the Binary build on the book cd. It includes a mySql driver.
> However, I've found that the driver links against a dynamic MySql client
> library, and all thats available with the MySql binary builds are  
> static libraries.
> I'l have to rebuild at least Qt from source, and maybe MySql also.
> Any info on rebuilding Qt, with frameworks would be appreciated.
> 
> > On Feb 5, 2007, at 6:24 PM, Tommy Nordgren wrote:
> >
> >> I'm trying out the Sql examples from "C++ GUI programming with Qt".
> >> When using the first example in the chapter 13, with appropriate  
> >> settings,
> >> I get the message that the Toolkit could not find the MySql driver,
> >> and the list of available drivers are empty. How do I fix this?
> >> (Mac OS X Tiger, Qt 4.1.1, boot drive Formatted as Case-sensitive  
> >> HFS+ )

--
 [ signature omitted ] 

Message 5 in thread

On 6 feb 2007, at 14.00, ygor@xxxxxxxxxxx wrote:

> There is lots of information at http://doc.trolltech.com/4.2
>
> Specifically, these might be of use:
>
> http://doc.trolltech.com/4.1/install-mac.html
	These building instructions don't work for me.
Depending on parmeters to configure, I either end up with Frameworks  
inside a subdirectory of /usr/local/
or ends up with those modules build as straight shared libraries  
inside /Library/Frameworks.
> http://doc.trolltech.com/4.1/qtsql.html#details
> http://doc.trolltech.com/4.1/sql-driver.html#building-the-drivers- 
> using-configure
> http://doc.trolltech.com/4.1/sql-driver.html#how-to-build-the- 
> plugin-on-unix-and-mac-os-x
>
>  -------------- Original message ----------------------
> From: Tommy Nordgren <tommy.nordgren@xxxxxxxxx>
>>
>> On 6 feb 2007, at 03.19, Dan White wrote:
>>
>>> Did you build Qt with MySQL support ?
>>>
>> 	I'm using the Binary build on the book cd. It includes a mySql  
>> driver.
>> However, I've found that the driver links against a dynamic MySql  
>> client
>> library, and all thats available with the MySql binary builds are
>> static libraries.
>> I'l have to rebuild at least Qt from source, and maybe MySql also.
>> Any info on rebuilding Qt, with frameworks would be appreciated.
>>
>>> On Feb 5, 2007, at 6:24 PM, Tommy Nordgren wrote:
>>>
>>>> I'm trying out the Sql examples from "C++ GUI programming with Qt".
>>>> When using the first example in the chapter 13, with appropriate
>>>> settings,
>>>> I get the message that the Toolkit could not find the MySql driver,
>>>> and the list of available drivers are empty. How do I fix this?
>>>> (Mac OS X Tiger, Qt 4.1.1, boot drive Formatted as Case-sensitive
>>>> HFS+ )
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>

----
Kine dies, Kinfolk dies, and thus at last yourself
This I know that never dies, how a dead mans deeds are deemed. --  
Elder edda
Tommy Nordgren
tommy.nordgren@xxxxxxxxx



--
 [ signature omitted ] 

Message 6 in thread

Hello,

in my current application I need to signal the GUI thread a changed
QMap<QString,QString> from an other (non-GUI-)thread.

But Qt cannot enqueue QMap - which brings me a little bit into trouble.

Has anyone an idea how this problem can be solved, without calling
some mutex locked getter setter methods each time?

Any hints are appreciated.

Best Regards,
Christian


--
 [ signature omitted ] 

Message 7 in thread

Christian Dähn schrieb:
> in my current application I need to signal the GUI thread a changed
> QMap<QString,QString> from an other (non-GUI-)thread.
> 
> But Qt cannot enqueue QMap - which brings me a little bit into trouble.
> 
> Has anyone an idea how this problem can be solved, without calling
> some mutex locked getter setter methods each time?


Maybe I don't understand your problem completely, but wouldn't it 
suffice to pass a pointer or reference from signal to slot?

Martin
-- 
 [ signature omitted ] 

Message 8 in thread

Hi,

a signal with a QMap is needed for data, which changes very
fast in the sender thread - even while signals are emitted.
So I need a copy of the data.

A pointer could be a solution, but needs a lot of care concerning
memory management and thread safety.

Best Regards,
Christian



--
 [ signature omitted ]