Qt-interest Archive, January 2007
Re: QT4: Single Application without GUI
Message 1 in thread
I'd like to know if anyone's tried to build a subset of Qt4 without
the GUI components, and if there is an easy way to do that. How nice
it would be if there was a -no-gui option to the configure script!
On 9/13/05, Volz, Bill (WRVO) (Bill.Volz) <Bill.Volz@xxxxxxxxxxx> wrote:
>
>
>
> First I'm using QT 4.0 on Linux 7.3 and higher.
>
> I have an application that needs to have only one instance running. It has
> no GUI component, just a network and core components. Therefore I cannot use
> the QT Solutions SingleApplication since it relies on Qapplication.
>
> Does anyone have any other ideas on how to do this?
--
[ signature omitted ]
Message 2 in thread
I could be misunderstanding the problem, but I run several single instance
applications with no GUI components. I simply use the QCoreApplication and
a single class. I use a QSetting that tells me if the application is
running or not.
I then drive all the necessary events using QTimers from within the single
class.
I have one Timer that checks to see if there is a "stop" file present. When
the file is present, I delete the "stop" file and exit the application.
(This allows me to turn the application on and off with a script.)
Is this not what you have in mind?
Pepsiman
-----Original Message-----
From: Alan Ezust [mailto:alan.ezust@xxxxxxxxx]
Sent: Wednesday, January 10, 2007 1:27 PM
To: Volz, Bill (WRVO) (Bill.Volz)
Cc: qt-interest@xxxxxxxxxxxxx
Subject: Re: QT4: Single Application without GUI
I'd like to know if anyone's tried to build a subset of Qt4 without
the GUI components, and if there is an easy way to do that. How nice
it would be if there was a -no-gui option to the configure script!
On 9/13/05, Volz, Bill (WRVO) (Bill.Volz) <Bill.Volz@xxxxxxxxxxx> wrote:
>
>
>
> First I'm using QT 4.0 on Linux 7.3 and higher.
>
> I have an application that needs to have only one instance running. It has
> no GUI component, just a network and core components. Therefore I cannot
use
> the QT Solutions SingleApplication since it relies on Qapplication.
>
> Does anyone have any other ideas on how to do this?
--
[ signature omitted ]
Message 3 in thread
You should be able to use QCoreApplication in the solution.
Scott
> -----Original Message-----
> From: Alan Ezust [mailto:alan.ezust@xxxxxxxxx]
> Sent: Wednesday, January 10, 2007 11:27 AM
> To: Volz, Bill (WRVO) (Bill.Volz)
> Cc: qt-interest@xxxxxxxxxxxxx
> Subject: Re: QT4: Single Application without GUI
>
> I'd like to know if anyone's tried to build a subset of Qt4 without
> the GUI components, and if there is an easy way to do that. How nice
> it would be if there was a -no-gui option to the configure script!
>
>
>
> On 9/13/05, Volz, Bill (WRVO) (Bill.Volz) <Bill.Volz@xxxxxxxxxxx>
wrote:
> >
> >
> >
> > First I'm using QT 4.0 on Linux 7.3 and higher.
> >
> > I have an application that needs to have only one instance running.
It
> has
> > no GUI component, just a network and core components. Therefore I
cannot
> use
> > the QT Solutions SingleApplication since it relies on Qapplication.
> >
> > Does anyone have any other ideas on how to do this?
>
> --
> 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 4 in thread
Thanks, I plan to... I was just saying that in order to build Qt
without gui, I had to edit the src.pro file after doing a configure,
removing the svg and gui references. Which I suppose is no big
deal... but it would be nice if there was a -no-gui option for
configure that would switch off those subdirs before I started
building it.
On 1/10/07, Scott Aron Bloom <scott@xxxxxxxxxxxx> wrote:
> You should be able to use QCoreApplication in the solution.
>
> Scott
>
> > -----Original Message-----
> > From: Alan Ezust [mailto:alan.ezust@xxxxxxxxx]
> > Sent: Wednesday, January 10, 2007 11:27 AM
> > To: Volz, Bill (WRVO) (Bill.Volz)
> > Cc: qt-interest@xxxxxxxxxxxxx
> > Subject: Re: QT4: Single Application without GUI
> >
> > I'd like to know if anyone's tried to build a subset of Qt4 without
> > the GUI components, and if there is an easy way to do that. How nice
> > it would be if there was a -no-gui option to the configure script!
> >
> >
> >
> > On 9/13/05, Volz, Bill (WRVO) (Bill.Volz) <Bill.Volz@xxxxxxxxxxx>
> wrote:
> > >
> > >
> > >
> > > First I'm using QT 4.0 on Linux 7.3 and higher.
> > >
> > > I have an application that needs to have only one instance running.
> It
> > has
> > > no GUI component, just a network and core components. Therefore I
> cannot
> > use
> > > the QT Solutions SingleApplication since it relies on Qapplication.
> > >
> > > Does anyone have any other ideas on how to do this?
> >
> > --
> > 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 5 in thread
I don't think youll have a problem with building it with the GUI, and
only using the non-gui portion in your project.
Scott
> -----Original Message-----
> From: Alan Ezust [mailto:alan.ezust@xxxxxxxxx]
> Sent: Wednesday, January 10, 2007 11:54 AM
> To: Scott Aron Bloom
> Cc: Volz, Bill (WRVO) (Bill.Volz); qt-interest@xxxxxxxxxxxxx
> Subject: Re: QT4: Single Application without GUI
>
> Thanks, I plan to... I was just saying that in order to build Qt
> without gui, I had to edit the src.pro file after doing a configure,
> removing the svg and gui references. Which I suppose is no big
> deal... but it would be nice if there was a -no-gui option for
> configure that would switch off those subdirs before I started
> building it.
>
>
> On 1/10/07, Scott Aron Bloom <scott@xxxxxxxxxxxx> wrote:
> > You should be able to use QCoreApplication in the solution.
> >
> > Scott
> >
> > > -----Original Message-----
> > > From: Alan Ezust [mailto:alan.ezust@xxxxxxxxx]
> > > Sent: Wednesday, January 10, 2007 11:27 AM
> > > To: Volz, Bill (WRVO) (Bill.Volz)
> > > Cc: qt-interest@xxxxxxxxxxxxx
> > > Subject: Re: QT4: Single Application without GUI
> > >
> > > I'd like to know if anyone's tried to build a subset of Qt4
without
> > > the GUI components, and if there is an easy way to do that. How
nice
> > > it would be if there was a -no-gui option to the configure script!
> > >
> > >
> > >
> > > On 9/13/05, Volz, Bill (WRVO) (Bill.Volz) <Bill.Volz@xxxxxxxxxxx>
> > wrote:
> > > >
> > > >
> > > >
> > > > First I'm using QT 4.0 on Linux 7.3 and higher.
> > > >
> > > > I have an application that needs to have only one instance
running.
> > It
> > > has
> > > > no GUI component, just a network and core components. Therefore
I
> > cannot
> > > use
> > > > the QT Solutions SingleApplication since it relies on
Qapplication.
> > > >
> > > > Does anyone have any other ideas on how to do this?
> > >
> > > --
> > > 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 6 in thread
You're assuming I'm building qt in an environment that contains all
the x11 libs and headers. Which I am not.
On 1/10/07, Scott Aron Bloom <scott@xxxxxxxxxxxx> wrote:
> I don't think youll have a problem with building it with the GUI, and
> only using the non-gui portion in your project.
>
> Scott
>
> > -----Original Message-----
> > From: Alan Ezust [mailto:alan.ezust@xxxxxxxxx]
> > Sent: Wednesday, January 10, 2007 11:54 AM
> > To: Scott Aron Bloom
> > Cc: Volz, Bill (WRVO) (Bill.Volz); qt-interest@xxxxxxxxxxxxx
> > Subject: Re: QT4: Single Application without GUI
> >
> > Thanks, I plan to... I was just saying that in order to build Qt
> > without gui, I had to edit the src.pro file after doing a configure,
> > removing the svg and gui references. Which I suppose is no big
> > deal... but it would be nice if there was a -no-gui option for
> > configure that would switch off those subdirs before I started
> > building it.
> >
> >
> > On 1/10/07, Scott Aron Bloom <scott@xxxxxxxxxxxx> wrote:
> > > You should be able to use QCoreApplication in the solution.
> > >
> > > Scott
> > >
> > > > -----Original Message-----
> > > > From: Alan Ezust [mailto:alan.ezust@xxxxxxxxx]
> > > > Sent: Wednesday, January 10, 2007 11:27 AM
> > > > To: Volz, Bill (WRVO) (Bill.Volz)
> > > > Cc: qt-interest@xxxxxxxxxxxxx
> > > > Subject: Re: QT4: Single Application without GUI
> > > >
> > > > I'd like to know if anyone's tried to build a subset of Qt4
> without
> > > > the GUI components, and if there is an easy way to do that. How
> nice
> > > > it would be if there was a -no-gui option to the configure script!
> > > >
> > > >
> > > >
> > > > On 9/13/05, Volz, Bill (WRVO) (Bill.Volz) <Bill.Volz@xxxxxxxxxxx>
> > > wrote:
> > > > >
> > > > >
> > > > >
> > > > > First I'm using QT 4.0 on Linux 7.3 and higher.
> > > > >
> > > > > I have an application that needs to have only one instance
> running.
> > > It
> > > > has
> > > > > no GUI component, just a network and core components. Therefore
> I
> > > cannot
> > > > use
> > > > > the QT Solutions SingleApplication since it relies on
> Qapplication.
> > > > >
> > > > > Does anyone have any other ideas on how to do this?
> > > >
> > > > --
> > > > 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 7 in thread
Ahh... well you know what they say when you ass-u-me :)
Scott
> -----Original Message-----
> From: Alan Ezust [mailto:alan.ezust@xxxxxxxxx]
> Sent: Wednesday, January 10, 2007 1:31 PM
> To: Scott Aron Bloom
> Cc: qt-interest@xxxxxxxxxxxxx
> Subject: Re: QT4: Single Application without GUI
>
> You're assuming I'm building qt in an environment that contains all
> the x11 libs and headers. Which I am not.
>
>
> On 1/10/07, Scott Aron Bloom <scott@xxxxxxxxxxxx> wrote:
> > I don't think youll have a problem with building it with the GUI,
and
> > only using the non-gui portion in your project.
> >
> > Scott
> >
> > > -----Original Message-----
> > > From: Alan Ezust [mailto:alan.ezust@xxxxxxxxx]
> > > Sent: Wednesday, January 10, 2007 11:54 AM
> > > To: Scott Aron Bloom
> > > Cc: Volz, Bill (WRVO) (Bill.Volz); qt-interest@xxxxxxxxxxxxx
> > > Subject: Re: QT4: Single Application without GUI
> > >
> > > Thanks, I plan to... I was just saying that in order to build Qt
> > > without gui, I had to edit the src.pro file after doing a
configure,
> > > removing the svg and gui references. Which I suppose is no big
> > > deal... but it would be nice if there was a -no-gui option for
> > > configure that would switch off those subdirs before I started
> > > building it.
> > >
> > >
> > > On 1/10/07, Scott Aron Bloom <scott@xxxxxxxxxxxx> wrote:
> > > > You should be able to use QCoreApplication in the solution.
> > > >
> > > > Scott
> > > >
> > > > > -----Original Message-----
> > > > > From: Alan Ezust [mailto:alan.ezust@xxxxxxxxx]
> > > > > Sent: Wednesday, January 10, 2007 11:27 AM
> > > > > To: Volz, Bill (WRVO) (Bill.Volz)
> > > > > Cc: qt-interest@xxxxxxxxxxxxx
> > > > > Subject: Re: QT4: Single Application without GUI
> > > > >
> > > > > I'd like to know if anyone's tried to build a subset of Qt4
> > without
> > > > > the GUI components, and if there is an easy way to do that.
How
> > nice
> > > > > it would be if there was a -no-gui option to the configure
script!
> > > > >
> > > > >
> > > > >
> > > > > On 9/13/05, Volz, Bill (WRVO) (Bill.Volz)
<Bill.Volz@xxxxxxxxxxx>
> > > > wrote:
> > > > > >
> > > > > >
> > > > > >
> > > > > > First I'm using QT 4.0 on Linux 7.3 and higher.
> > > > > >
> > > > > > I have an application that needs to have only one instance
> > running.
> > > > It
> > > > > has
> > > > > > no GUI component, just a network and core components.
Therefore
> > I
> > > > cannot
> > > > > use
> > > > > > the QT Solutions SingleApplication since it relies on
> > Qapplication.
> > > > > >
> > > > > > Does anyone have any other ideas on how to do this?
> > > > >
> > > > > --
> > > > > 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 8 in thread
> Thanks, I plan to... I was just saying that in order to build Qt
> without gui, I had to edit the src.pro file after doing a configure,
> removing the svg and gui references. Which I suppose is no big
> deal... but it would be nice if there was a -no-gui option for
> configure that would switch off those subdirs before I started
> building it.
I completely agree with you. There's no way to turn off GUI components at
configure/build time if you want to just build and install QtCore on an Xl-ess
machine.
I would also love a -no-gui switch...
Caleb
--
[ signature omitted ]