Toolbar slots working
Status: Inactive
Brought to you by:
manyoso
|
From: Marcus <ma...@my...> - 2003-01-26 08:00:03
|
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:
|