How to Program custom Keyboard Shortcuts

Try this: new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this, SLOT(close())); You can create it in the contructor of your form. This allows to avoid polluting your class with a pointer to access the shortcut. You may still want to add a pointer to the shortcut if you want to access it later on. The shortcut will be … Read more

How to create a scrollable QVBoxLayout?

It turned out that I was lead down a wrong path by putting the layout as the layout of a widget. The actual way to do this is as simple as: scrollarea = QScrollArea(parent.widget()) layout = QVBoxLayout(scrollarea) realmScroll.setWidget(layout.widget()) layout.addWidget(QLabel(“Test”)) Which I’m pretty sure I tried originally, but hey it’s working. However this adds an issue … Read more

QWebView or QWebEngineView

I would give QtWebEngine a try. It is replacing QtWebKit for a reason. If you control the HTML that is getting rendered, then it probably doesn’t hurt to use QWebKit. Just make sure you test your pages beforehand. QWebView uses WebKit as the backend. http://doc.qt.io/qt-5/qwebview.html#details QWebEngineView uses Chromium as the backend. http://doc.qt.io/qt-5/qwebengineview.html#details WebKit is what … Read more

Resources to learn QML? [closed]

This is an old question but if someone still is wondering the same question, I’ll answer this as an update for the previous answer. The tutorials described in the URL above are still valid, very comprehensive and useful, and there are now also developer guides for mobile and desktop QML development at link: http://www.qt.io/training-materials/. The … Read more

What is the difference between QQmlApplicationEngine and QQuickView?

Headline: QQmlApplicationEngine is newer and more powerful than QQuickView. QQmlApplicationEngine exposes some central application functionality to QML, which QQuickView application would normally control from C++: Connecting Qt.quit() to QCoreApplication::quit() Automatically loads translation files from an i18n directory adjacent to the main QML file. Automatically sets an incubation controller if the scene contains a QQuickWindow. Automatically … Read more

Application deployed with QT5 libraries does not start on Windows 7

After several days of search with no progress, we stumbled upon a QT bug: https://bugreports.qt.io/browse/QTBUG-28766 With QT5, in addition to expected QT libraries, msvcr100.dll, and msvcp100.dll; it turns out that you have to ship your application with: platforms/qminimal.dll platforms/qwindows.dll as well. Which is found in your local QT5 library install @: \Qt5.0.0\5.0.0\msvc2010\plugins\platforms I searched everywhere, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)