Re: Toolbar slots working
Status: Inactive
Brought to you by:
manyoso
From: Pedro A. S. <ped...@ya...> - 2003-01-26 21:08:44
|
Thank you for the fast fix. I have not tested yet the cvs, but I have connected the signals and slots by hand and it works now. I prefer this solution until the next version of Qt# is released, to make easy for the people to try SkyNET. El dom, 26-01-2003 a las 09:00, Marcus escribió: > First, the code that you mentioned in the original post should now work. In > turns out that there is also a work-around. When you specify a non-null > "receiver" and "slot" when creating a QToolButton, the constructor actually > just makes the connection > > Connect( toolButton, SIGNAL("clicked()"), receiver, slot) > > which is exactly how I did it in the C# version of the constructor. > > I'm attaching a copy of a small program that shows how to connect everything > up. > > By the way, QMainWindow already provides a QMenuBar, which you can retrieve > using the MenuBar() method. You might want to make your file menu > (QPopupMenu) a child of MenuBar() instead of creating a new menu bar. Until > recently, the MenuBar() method was broken... > > On Saturday 25 January 2003 04:46 pm, Pedro Abelleira Seco wrote: > > I have added a Qt# frontend to my app SkyNET (sky-net.sourceforge.net) > > this weekend. All was surprisingly smoothly, but I have found a problem. > > Qt# is founding my slots in the menubar, but not in the toolbar. I'm not > > a Qt/KDE developer, so the problem could well be plain ignorance. The > > code: -- Pedro Abelleira Seco <ped...@ya...> ___________________________________________________ Yahoo! Mes Personaliza tu m con tu logo y melodfavorito en http://moviles.yahoo.es |