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

Arno Rehn arno at arnorehn.de
Mon Feb 8 13:29:20 UTC 2010

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() {
		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 

Arno Rehn
arno at arnorehn.de

More information about the Kde-bindings mailing list