Hab meine Klasse von QMainWindow abgeleitet und hab mir ein Toolbar mit einem Actionbutton gebaut. Aber irgendwie zeigt meine GUI überhaupt nichts an, was für mich unverständlich ist.
Hier mal mein Code:
Code: Alles auswählen
_fileTools = new QToolBar( this , "Icon Tool-Bar" );
_loadToolButton = new QToolButton( loadIcon, "load files", QString::null,
this, SLOT(load()), _fileTools, "load files" );
_fileOpenAction = new QAction(
"New Chart", QPixmap( loadIcon ),
"&New", CTRL+Key_O, this, "new" );
_fileOpenAction->addTo( _fileTools );
_fileTools->addSeparator();
connect( _fileOpenAction, SIGNAL( activated() ), this, SLOT( load() ) );
Er zeigt weder die Symbolleiste noch den Button an.
Verdammte ...
Danke für die Hilfe.
MFG gyros