| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 2 | |
I suppose thar you installed Qt without psql support. I do not use Qt 4 but
3, but there you have to choose it when installing and before compiling Qt.
The directory for the sql driver is there, but is not used.
So maybe a reconfig can help you.
----------------------------------------------------------------------------
----
Von: Astan Chee [mailto:stanc@xxxxxxxxx]
Gesendet: Mittwoch, 6. Juni 2007 13:01
An: qt-interest@xxxxxxxxxxxxx
Betreff: Re: problem with PSQL in QT
Stephen Jackson wrote:
On Wed, 2007-06-06 at 13:40 +1000, Astan Chee wrote:
Hi,
Im having problems using PSQL with QT. Im using QT 4.2.3 with MinGW
5.1.3 in Windows XP and recently I've just downloaded and installed
PostgreSQL 8.2.4.
After this I've run the command :
cd %QTDIR%\src\plugins\sqldrivers\psql
qmake -o Makefile "INCLUDEPATH+=C:\psql\include"
"LIBS+=C:\psql\lib\ms\libpq.lib" psql.pro
make
And then I've tried to recompile the sqlbrowser in the demo using
'qmake' and 'make' commands and the PSQL driver is not listed.
What am I doing wrong here? or what have I missed?
Thanks for the help
Cheers
Astan
Probably "make install". qsqlpsql.dll needs to go in
%QTDIR%\plugins\sqldrivers
Thanks for the tip, but although the file is there, it still does not work
(sqlbrowser doesn't show "PSQL" as an option)
I don't _think_ you need to recompile sqlbrowser; it picks up installed
plugins at runtime from QSqlDatabase::drivers().
Thats what I thought at first as well, but to be on the safe side, I thought
I'd recompile. Oh well, any other ideas?
--
[ signature omitted ]
Hi, I have compiled sqlbrowser from the QT demo and am trying to run it on a similar windows XP machine that does not have QT. At first it asks for all sorts of missing .dlls which I've put into the .exe folder and finally it gave me an error that it couldn't find the QSqlDatabase::drivers() or that QSqlDatabase::drivers().isEmpty() = true. How do I get the sql drivers from my machine that has QT to another machine that doesnt have QT? Thanks for the help. Astan -- [ signature omitted ]
Astan Chee wrote: > Hi, > I have compiled sqlbrowser from the QT demo and am trying to run it on > a similar windows XP machine that does not have QT. > At first it asks for all sorts of missing .dlls which I've put into > the .exe folder and finally it gave me an error that it couldn't find > the QSqlDatabase::drivers() or that QSqlDatabase::drivers().isEmpty() > = true. How do I get the sql drivers from my machine that has QT to > another machine that doesnt have QT? > Thanks for the help. > Astan > > -- > 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/ I'm not exactly sure how to do exactly what you want, but I think the better thing to do in this case would be to compile Qt statically, then compile your program as a static build. In that case, everything would be packaged in the one executable (so you won't need all those .dlls and whatnot). -- [ signature omitted ]
I'm trying to use Cygwin to display to a winxp machine. I can't afford to buy any of the commercial Xwindows clients. The problem I'm having is that the mouse clicks seem to go through properly... But I can't type in the lineedit fields. It's as if nothing is happen. I have the qt program output logs on changes to the widget but nothing logs when I'm typing in winxp. If I point the application at a suse box it works fine. I'd prefer to fix the problem but I have no idea what it is. Anyone ever used Cygwin with QT before? Or know of a better free xwindows solution for Windows? -- [ signature omitted ]
I have never been that successful with cygwin as a Xwindows client... but I can say its NOT QT.. I have had similar problems with browsers and other apps.. You may want to try xwin32 from starnet, it's a lot cheaper then hummingbird, and I had no problems with it. Scott > -----Original Message----- > From: Allen, Matthew [mailto:allenm@xxxxxxxxxxxxxxxxxxxxxx] > Sent: Thursday, June 07, 2007 11:48 AM > To: qt-interest@xxxxxxxxxxxxx > Subject: QT and Cygwin XWindows can't type in lineedit boxes. > > > I'm trying to use Cygwin to display to a winxp machine. I can't afford > to buy any of the commercial Xwindows clients. > > The problem I'm having is that the mouse clicks seem to go through > properly... But I can't type in the lineedit fields. It's as if nothing > is happen. I have the qt program output logs on changes to the widget > but nothing logs when I'm typing in winxp. If I point the application at > a suse box it works fine. > > I'd prefer to fix the problem but I have no idea what it is. Anyone ever > used Cygwin with QT before? Or know of a better free xwindows solution > for Windows? > > -- > 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 ]
WHOA!!! 225$ a license. OUCH. Just trying to display a couple windows to a PC. I wonder if making it modal had anything to do with it not accepting keystrokes. -----Original Message----- From: Scott Aron Bloom [mailto:scott@xxxxxxxxxxxx] Sent: Thursday, June 07, 2007 2:58 PM To: Allen, Matthew; qt-interest@xxxxxxxxxxxxx Subject: RE: QT and Cygwin XWindows can't type in lineedit boxes. I have never been that successful with cygwin as a Xwindows client... but I can say its NOT QT.. I have had similar problems with browsers and other apps.. You may want to try xwin32 from starnet, it's a lot cheaper then hummingbird, and I had no problems with it. Scott > -----Original Message----- > From: Allen, Matthew [mailto:allenm@xxxxxxxxxxxxxxxxxxxxxx] > Sent: Thursday, June 07, 2007 11:48 AM > To: qt-interest@xxxxxxxxxxxxx > Subject: QT and Cygwin XWindows can't type in lineedit boxes. > > > I'm trying to use Cygwin to display to a winxp machine. I can't afford > to buy any of the commercial Xwindows clients. > > The problem I'm having is that the mouse clicks seem to go through > properly... But I can't type in the lineedit fields. It's as if nothing > is happen. I have the qt program output logs on changes to the widget > but nothing logs when I'm typing in winxp. If I point the application at > a suse box it works fine. > > I'd prefer to fix the problem but I have no idea what it is. Anyone ever > used Cygwin with QT before? Or know of a better free xwindows solution > for Windows? > > -- > 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 ]
On Thu, 2007-06-07 at 15:02 -0400, Allen, Matthew wrote: > WHOA!!! 225$ a license. OUCH. > > Just trying to display a couple windows to a PC. I wonder if making it > modal had anything to do with it not accepting keystrokes. > I don't know about that, but I do use Cygwin on XP to display Qt applications running on a Linux server, and I don't have this problem. (It doesn't look nice but the functionality is fine as far as I know.) [Qt 4.2.3 open source.] My Cygwin is quite old - I probably installed it nearly 3 years ago. I run X in rootless mode and I use "ssh -X" to connect to the Linux box. Do any of the examples/demos exhibit this behaviour for you? As an aside, the main X application I run in this way is evolution (not Qt) and this improved considerably when I changed the server from SUSE 9.x to Ubuntu 6.06 (especially drag and drop) without any change to my Cygwin client. Hope this helps, Stephen Jackson -- [ signature omitted ]
What are the startup options you use on the X client? I'm setting the display on the command line. "qtapp -display ip:0" etc. I wouldn't think this would cause an issue. I check the x connection using Xeyes but I'll try it with the various QT demos as well. Thanks. -----Original Message----- From: Stephen Jackson [mailto:spjackson42@xxxxxxxxx] Sent: Thursday, June 07, 2007 4:05 PM To: qt-interest@xxxxxxxxxxxxx Subject: RE: QT and Cygwin XWindows can't type in lineedit boxes. On Thu, 2007-06-07 at 15:02 -0400, Allen, Matthew wrote: > WHOA!!! 225$ a license. OUCH. > > Just trying to display a couple windows to a PC. I wonder if making it > modal had anything to do with it not accepting keystrokes. > I don't know about that, but I do use Cygwin on XP to display Qt applications running on a Linux server, and I don't have this problem. (It doesn't look nice but the functionality is fine as far as I know.) [Qt 4.2.3 open source.] My Cygwin is quite old - I probably installed it nearly 3 years ago. I run X in rootless mode and I use "ssh -X" to connect to the Linux box. Do any of the examples/demos exhibit this behaviour for you? As an aside, the main X application I run in this way is evolution (not Qt) and this improved considerably when I changed the server from SUSE 9.x to Ubuntu 6.06 (especially drag and drop) without any change to my Cygwin client. Hope this helps, Stephen Jackson -- [ signature omitted ]
Hi, On Thursday 07 June 2007, Allen, Matthew wrote: > I'm trying to use Cygwin to display to a winxp machine. I can't afford > to buy any of the commercial Xwindows clients. The commercial ones would probably not have less problems (eg. I have quite bad experiences with Exceed). > The problem I'm having is that the mouse clicks seem to go through > properly... But I can't type in the lineedit fields. It's as if nothing > is happen. I have the qt program output logs on changes to the widget > but nothing logs when I'm typing in winxp. If I point the application at > a suse box it works fine. Strange. Do other (non-Qt) applications get keyboard events? Try out xev(*) - does it show KeyPress and KeyRelease events when it has focus and you type something? (*)xev is a small test program for X events - it displays a small window in X and spills out information about every event it gets on the terminal you started it in. Do you have a window manager running? Maybe your application is simply not getting focus. Try the -grab and -nograb options to your Qt-application - they change how Qt handles keyboard and mouse. > I'd prefer to fix the problem but I have no idea what it is. Anyone ever > used Cygwin with QT before? I'm working with Cygwin plus xorg for over half a year now and never had input problems. I've got it running in full-screen mode with a full KDE 3.3 session(*) and my Qt 4.x application running inside - so far I've only had problems with XRENDER (which all X-servers I tested had and which was caused by bad Pixmaps). (*)I use a little script to set the DISPLAY variable and start KDE. What exact platform the applications are running on does not seem to have much of an influence on the setup (so far I've tested various older RedHat releases, Debian, and the occasional non-Qt program from HPUX). Type "man X" in a Cygwin shell - there are quite a few options that you can use for starting X. > Or know of a better free xwindows solution > for Windows? As far as I'm aware, there are only two free X implementations: XFree and X.org - X.org is a successor to XFree, so they share quite a bit of code. Konrad
Attachment:
Attachment:
pgp7I2Dbc243U.pgp
Description: PGP signature
Message 10 in thread
I found out what the problem was. I was using "setWindowFlags(Qt::Window
| Qt::Popup | Qt::WindowStaysOnTopHint)". Once I got rid of Qt::Popup,
everything worked fine. I noticed I didn't have a menubar on top of the
window and that seems to cause issues in windows. So now I've got it
coded that if the application is started a certain way it knows it's
going to a remote windows box and skips the Qt::Popup flag.
-----Original Message-----
From: Konrad Rosenbaum [mailto:konrad@xxxxxxxxx]
Sent: Saturday, June 09, 2007 4:46 AM
To: qt-interest@xxxxxxxxxxxxx
Subject: Re: QT and Cygwin XWindows can't type in lineedit boxes.
Hi,
On Thursday 07 June 2007, Allen, Matthew wrote:
> I'm trying to use Cygwin to display to a winxp machine. I can't afford
> to buy any of the commercial Xwindows clients.
The commercial ones would probably not have less problems (eg. I have
quite
bad experiences with Exceed).
> The problem I'm having is that the mouse clicks seem to go through
> properly... But I can't type in the lineedit fields. It's as if
nothing
> is happen. I have the qt program output logs on changes to the widget
> but nothing logs when I'm typing in winxp. If I point the application
at
> a suse box it works fine.
Strange. Do other (non-Qt) applications get keyboard events? Try out
xev(*) - does it show KeyPress and KeyRelease events when it has focus
and
you type something?
(*)xev is a small test program for X events - it displays a small window
in
X and spills out information about every event it gets on the terminal
you
started it in.
Do you have a window manager running? Maybe your application is simply
not
getting focus.
Try the -grab and -nograb options to your Qt-application - they change
how
Qt handles keyboard and mouse.
> I'd prefer to fix the problem but I have no idea what it is. Anyone
ever
> used Cygwin with QT before?
I'm working with Cygwin plus xorg for over half a year now and never had
input problems. I've got it running in full-screen mode with a full KDE
3.3
session(*) and my Qt 4.x application running inside - so far I've only
had
problems with XRENDER (which all X-servers I tested had and which was
caused by bad Pixmaps).
(*)I use a little script to set the DISPLAY variable and start KDE. What
exact platform the applications are running on does not seem to have
much
of an influence on the setup (so far I've tested various older RedHat
releases, Debian, and the occasional non-Qt program from HPUX).
Type "man X" in a Cygwin shell - there are quite a few options that you
can
use for starting X.
> Or know of a better free xwindows solution
> for Windows?
As far as I'm aware, there are only two free X implementations: XFree
and
X.org - X.org is a successor to XFree, so they share quite a bit of
code.
Konrad
--
[ signature omitted ]
Message 11 in thread
Hi,
> I have compiled sqlbrowser from the QT demo and am trying to run it on a
> similar windows XP machine that does not have QT.
> At first it asks for all sorts of missing .dlls which I've put into the
> .exe folder and finally it gave me an error that it couldn't find the
> QSqlDatabase::drivers() or that QSqlDatabase::drivers().isEmpty() =
> true. How do I get the sql drivers from my machine that has QT to
> another machine that doesnt have QT?
Have a look at the documentation on deploying Qt applications:
http://doc.trolltech.com/4.3/deployment-windows.html
--
[ signature omitted ]