[Kde-bindings] Help start with MonoDevelop and Qyoto GUI

linuxoidoz at yahoo.com.au linuxoidoz at yahoo.com.au
Tue Feb 9 12:47:43 UTC 2010


I got most of the buttons and other input widgets working but still struggling with menus and toolbars.

Can you please show me how to create a signal in my new class to perform an action on pressing a menu item or a toolbar button? Thank you.

------------------  Original Message  ------------------
Subject: Re: [Kde-bindings] Help start with MonoDevelop and Qyoto GUI
Date: Mon, 8 Feb 2010
From: Arno Rehn <arno at arnorehn.de>
To: KDE bindings for other programming languages <kde-bindings at kde.org>

> On Monday 08 February 2010 13:49:02 linuxoid.au at gmail.com wrote:
> > I've finally converted a gui .ui file made in Qt Designer into .cs file
> > with uics.
> > 
> > Now I can open the dialog. Can you please tell me how to tie properties to
> > the widgets? For example, the new gui.cs file has this:
> > [snip]
> > Now, what should I do in the MainWindow.cs to display a message box, for
> > example, when the OK button is clicked?
> Most commonly it's done like this with Qt:
> 
> class MyDialog : QDialog {
> 	Ui.Dialog ui = new Ui.Dialog();
> 
> 	public MyDialog() {
> 		ui.SetupUi(this);
> 		Connect(ui.myFancyButton, SIGNAL("clicked()"), delegate {
> 			// your code here
> 		});
> 		Connect(ui, SIGNAL("rejected()"), qApp, SLOT("quit()"));
> 	}
> }
> 
> So your custom Dialog class owns the user interface and doesn't inherit from 
> it.
> 
> 



More information about the Kde-bindings mailing list