Hi,
I am probably missing something very simple, but i cant figure out what it is.
I have a QMainWIndow MyMainWindow, which shows up just fine. A toolbar holds an action.
When i click on the toolbar item, the action is triggered correctly, and the slot it is connected to is executed. The slot is a member of MyMainWindow.
The slot looks like this:
Qt Code:
bool MyMainWin::myslot() { MyWidget c(this); //c.setWindowModality(Qt::WindowModal); c.show(); return 1; }To copy to clipboard, switch view to plain text mode
As you can see, i just want it to show my custom widget "MyWidget", but it doesnt work.
It just steps over the c.show() call, but doesnt show anything.
I am using Qt 4.8.2 with VisualStudio 2008 and the QtAddin. Bot widgets/windows have been designed with the QtDesigner. The custom window shows just fine when i place above code right in main().
What am i missing?
Bookmarks