Qt 6.11 is out! See what's new in the release
blog
QLabel snap to ScrollBar
-
Hi
If i do
// createActions();
it starts fine.
Please provide more details. -
hi
I think its something else than createActions();
Use the debugger to find the line where it crashes. -
error in qaction.cpp
void QAction::setEnabled(bool b) { Q_D(QAction); if (b == d->enabled && b != d->forceDisabled) return; d->forceDisabled = !b; if (b && (!d->visible || (d->group && !d->group->isEnabled()))) return; QAPP_CHECK("setEnabled"); d->enabled = b; #ifndef QT_NO_SHORTCUT d->setShortcutEnabled(b, qApp->d_func()->shortcutMap); //here #endif d->sendDataChanged(); } -
I commented out all QAction and the program starts, but the picture at start is not loaded. But you need to change the zoom level to display the picture. Please tell me how to fix it.
hi
I think it would be better to call
createActions();
and simply domenuBar()->hide();
so its not shown.
That way you dont get issues with dangling pointers in the program.