[Interest] qml: opengl failure

2021-01-05 Thread Alexander Dyagilev
Hello, I've tried to use this code: if(!qEnvironmentVariableIsSet("QT_OPENGL")) { //OnWindows,useANGLEsowedon'thavetoloadOpenGL //user-modedriversintoourapp.OGLdrivers(especiallyIntel) //seemtocrashtheappfarmoreoftenthanDirectX. qputenv("QT_OPENGL","angle"); } It works fine in Windows 10.

Re: [Interest] How to pass parameter from Menu/Action to SLOT()

2021-01-05 Thread Nicholas Yue
Thanks David. It works. I ended up with this approach. ``` specialistMenuAction[specialistMenuActionIndex]->setData(QVariant(QString(iter->first.c_str(; ``` void MainWindow::specialistMenuHandler() { QAction *actionP(qobject_cast(QObject::sender())); if (actionP) { QStr

Re: [Interest] How to pass parameter from Menu/Action to SLOT()

2021-01-05 Thread David M. Cotter
in your handler you can call this: > QAction *actionP(qobject_cast(QObject::sender())); and you'll get the action that caused the sending. you can have previously stuffed something interesting into the objectName of the action, then recover it in your handler does that make sense? > On J

[Interest] How to pass parameter from Menu/Action to SLOT()

2021-01-05 Thread Nicholas Yue
Hi, I am programmatically generating a menu, each menu item has a unique name/label How can I determine which of the generated menu was clicked ? ``` void MainWindow::init() { : : QMenu *specialists = menuBar()->addMenu("&Specialists"); if (!_engine.getSpecialistsManager().registeredSpeciali

Re: [Interest] Rebuilding cmake project (in Qt Creator) fails - build directories write-protected?

2021-01-05 Thread Till Oliver Knoll
Am 05.01.21 um 20:09 schrieb Till Oliver Knoll: > Am 31.12.20 um 16:02 schrieb Till Oliver Knoll: >> Am 31.12.20 um 15:29 schrieb James DeLisle: >>> >>> There are some on-going peculiarities with CMake and translation >>> files, as evidenced here: >>> >>> https://bugreports.qt.io/browse/QTBUG-76410

Re: [Interest] Rebuilding cmake project (in Qt Creator) fails - build directories write-protected?

2021-01-05 Thread Till Oliver Knoll
Am 31.12.20 um 16:02 schrieb Till Oliver Knoll: > Am 31.12.20 um 15:29 schrieb James DeLisle: >> >> There are some on-going peculiarities with CMake and translation >> files, as evidenced here: >> >> https://bugreports.qt.io/browse/QTBUG-76410 >> >> > T

[Interest] QtWebEngine changes?

2021-01-05 Thread Harald Vistnes
Hi, I have an application that uses QtWebEngine for showing local HTML content using QWebEngineView::setHtml. Local images are shown using . However, after updating from Qt 5.14 to 5.15, local images are no longer shown. Did anything change in 5.15 that affects local content? Best wishes, Haral

Re: [Interest] No rule to make target 'libQt5UiTools_debug.a' ?

2021-01-05 Thread Tor Arne Vestbø
See https://bugreports.qt.io/browse/QTBUG-81251?focusedCommentId=538705&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-538705