[mythtv] Fwd: How to get the value of a HostLineEdit box in a plugin's settings window.
Paul Harrison
mythtv at dsl.pipex.com
Sat Jul 1 21:41:16 UTC 2006
liran tal wrote:
>
> Hey guys,
>
> I'd still like to get some help on this issue.
> Help me contribute a little bit to Mythtv :)
>
>
>
> ---------- Forwarded message ----------
> From: *liran tal* < liransgarage at gmail.com
> <mailto:liransgarage at gmail.com>>
> Date: Jun 29, 2006 12:02 PM
> Subject: How to get the value of a HostLineEdit box in a plugin's
> settings window.
> To: Development of mythtv <mythtv-dev at mythtv.org
> <mailto:mythtv-dev at mythtv.org>>
>
>
>
> I'm writing a plugin for MythTV and I'd like to know how to receive
> the value
> the user writes on a HostLineEdit box after he presses enter, or when
> he exists the window
> by pressing the Finish button at the bottom.
>
> The piece of code looks something like:
>
> static HostLineEdit *MythEditBox()
> {
> HostLineEdit *gc = new HostLineEdit("Edit box");
> gc->setLabel(QObject::tr("enter something here..."));
>
> // here comes the part where i need to know how to get the
> value which is set for the edit box.
> // something like: variable = gc->GetLabel
>
> return gc;
> }
>
>
> The main purpose is that when the user inputs his settings and click
> the finish button all the info will be
> writen to a text file.
>
>
> Thanks for the help.
>
Does gc->getValue() not do what you want? Or use the valueChanged()
signal to track the changes?
Paul H.
More information about the mythtv-dev
mailing list