[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] Qt, Qyoto buttons work intermediately
From:       linuxoidoz () yahoo ! com ! au
Date:       2010-02-16 9:09:23
Message-ID: 201002161909.23928.linuxoidoz () yahoo ! com ! au
[Download RAW message or body]

> Rather with
> 
> class MainClass {
> 	static MainWindow win;
> 
> 	public static int Main(string[] args) {
> 		...
> 		win = new MainWindow();
> 		win.Show();
> 		...
> 	}
> }
> 
Thanks for the tip, everything works perfectly well now after I used your main \
method. 

But it didn't fix the issue with signals/slots only working if defined in the main \
application class. As soon as I move any slot into another class it becomes unvisible \
and stops transmitting triggered signals. Is there a workaround for that?

For example, if I use a

Connect(btnAbout1, SIGNAL("triggered()"), this, SLOT("ShowAbout()"));

in the MainApplication class - it works fine. As soon as I try to use it from another \
class:

public void AnotherClass(QMainWindow mainwin) {
QObject.Connect(btnAbout2, Qt.SIGNAL("triggered()"), mainwin, \
                Qt.SLOT("ShowAbout()"));
...

it doesn't do anything.

> > What should I do with
> > the patch?
> Apply it?
> 
Sorry, I don't know how to apply a patch. I've just used the above main class and it \
all works. _______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic