[Qt-interest] Fwd: Re: Changing Terminals

linux newbie linux.newbie79 at gmail.com
Wed Nov 18 10:34:26 CET 2009


Thanks for the info Sean.

On Wed, Nov 18, 2009 at 8:17 PM, Sean Harmer
<sean.harmer at maps-technology.com> wrote:
> Oops copy for the list...
>
>
> ---------- Forwarded message ----------
> From: Sean Harmer <sean.harmer at maps-technology.com>
> To: linux newbie <linux.newbie79 at gmail.com>
> Date: Wed, 18 Nov 2009 09:16:57 +0000
> Subject: Re: [Qt-interest] Changing Terminals
> Hi,
>
> On Tuesday 17 Nov 2009 21:41:28 you wrote:
>> Hi,
>>
>> Any updates?
>
> Option 1:
>
> Well, thinking about this requirement of performing some "action" in response
> to a "sequence of keys" being pressed leads me to think that maybe the classes
> QAction and QKeySequence might be of interest :-)
>
> http://doc.trolltech.com/4.6-snapshot/qaction.html#details
> http://doc.trolltech.com/4.6-snapshot/qkeysequence.html#details
>
>
> Option 2:
>
> You could also look at installing an event filter on the QWSServer object of
> your server process. In there you could handle the "ALT+F1" etc key presses
> but allow all other events to be propagated as normal.
>
> http://doc.trolltech.com/4.6-snapshot/qobject.html#installEventFilter
>
>
> I do not know which option is best for you or how practical they are for you
> without more details but I *think* they will work - although I have not tried
> them out personally.
>
> Good luck and let us know how you get on.
>
> Cheers,
>
> Sean
>
>>
>> Thanks
>>
>> On Tue, Nov 17, 2009 at 9:15 AM, linux newbie <linux.newbie79 at gmail.com>
> wrote:
>> > Thanks for your reply.
>> >
>> > In this case, how different applications come to foreground on
>> > pressing ALT-F1 or ALT-F2?
>> >
>> > Do we need to write our own server application and pass -qws flag in
>> > order to launch different application??
>> >
>> > My understanding is that we can't assign each Qt application to
>> > individual tty. Please correct me if I am wrong.
>> >
>> >
>> >
>> > On Mon, Nov 16, 2009 at 8:21 PM, Sean Harmer
>> >
>> > <sean.harmer at maps-technology.com> wrote:
>> >> Hi,
>> >>
>> >> linux newbie wrote:
>> >>> Hi,
>> >>>
>> >>> any updates to below posting?
>> >>>
>> >>> Thanks
>> >>>
>> >>> On Fri, Nov 13, 2009 at 2:12 PM, linux newbie
>> >>> <linux.newbie79 at gmail.com>
>> >>>
>> >>> wrote:
>> >>>> Hi,
>> >>>>
>> >>>> Ours is an arm based embedded platform and currently we are using
>> >>>> ncurses for GUI.
>> >>>>
>> >>>> 3 GUI based applications are running under different terminals(tty1,
>> >>>> tty2 & tty3) and on pressing Alt-F1, Alt-F2, Alt-F3 we can switch
>> >>>> between terminals. Can we do the same with Qt? If yes, is there any
>> >>>> sample application?
>> >>
>> >> Just launch 3 applications on the same terminal and provide a method for
>> >> switchng between them. Just launch the first app (or an app launcher
>> >> like the fluidlauncher demo that ships with Qt) with the -qws flag so
>> >> that it is the server process. Then launch your other apps without this
>> >> flag so that they connect to an existing server process.
>> >>
>> >> e.g.
>> >>
>> >> fluidlauncher -qws &
>> >>
>> >> or
>> >>
>> >> myapp1 -qws &
>> >> myapp2 &
>> >> myapp3 &
>> >>
>> >>
>> >> HTH,
>> >>
>> >> Sean
>> >>
>> >>>> Thanks in Advance!!!
>> >>>
>> >>> _______________________________________________
>> >>> Qt-interest mailing list
>> >>> Qt-interest at trolltech.com
>> >>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>




More information about the Qt-interest-old mailing list