Skip to content
  • Problems with Qt6 project for Android

    Unsolved Mobile and Embedded
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Qt6 und Android APP

    Unsolved German
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • 0 Votes
    1 Posts
    5 Views
    No one has replied
  • Using OpenSSL 3 https connection

    Unsolved Game Development
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • Can't center text in the Rectangle

    Unsolved QML and Qt Quick
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • STM32MP157F-DK2

    Unsolved Mobile and Embedded
    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • Mirror list no longer working

    Unsolved Installation and Deployment
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • 0 Votes
    13 Posts
    169 Views
    JonBJ

    @Christian-Ehrlicher
    Yes. And my point is that was done via previously making that the current row via the code above at https://forum.qt.io/post/818550. Which is also used for coloring the selected row. And they both get passed an opt.rect for fillrect(). So presumably the rect for the selection is wider than the rect for his cursor row to produce the result. But why are they different widths or cover different cells?

  • import marble in qml qt

    Unsolved QML and Qt Quick
    1
    0 Votes
    1 Posts
    16 Views
    No one has replied
  • Commutative diagrams (PyQt5 desktop widgets)

    Unsolved Showcase
    2
    0 Votes
    2 Posts
    13 Views
    enjoysmathE

    https://youtu.be/EZ9AGBufoDg?si=kE2ImmlZGnE8EZ2k

  • 0 Votes
    1 Posts
    20 Views
    No one has replied
  • 0 Votes
    10 Posts
    79 Views
    JonBJ

    @Volker75
    You can inject JavaScript into a QWebEnginePage via its runJavaScript() method. You can set its document.onReady to some JS which, say, shows a message box so you know whether it got there. I mentioned this at https://forum.qt.io/post/779514. I don't have the code to hand, but let's not worry about this yet.

    Your code uses heap, not stack, just as much as the other poster's. You both retrieve a pointer to a new QWebEngineView(this), the only difference is you keep that in (presumably) a member variable. Anyway they are equivalent.

    I would have said to check whether connect() via PMF syntax instead of old-style was the issue, but @hskoglund posted above to say he tried same as yours and it did work for him, so presumably that is not an issue (though you could try the PMF syntax if you wish, I would never use old-style nowadays).

    Given that loadFinished() is not working for you, I would start by connecting the other signals at https://doc.qt.io/qt-6/qwebengineview.html#signals as well. Do you receive loadStarted()? What about loadProgress()? You don't get renderProcessTerminated() do you?

  • 0 Votes
    2 Posts
    47 Views
    Cobra91151C

    According to this documentation: https://wiki.qt.io/WinRTBuild
    From docs:
    No matter what your target (PC, Surface, Phone, etc.), ALWAYS USE the "x86 Native tools command prompt". This is because the command prompt will first build host tools (qmake, moc, rcc, etc.) and then cross-compile the Qt libraries. Do not open the Windows Phone command prompt, for instance, as it will not be able to build the host tools.

    So, I tried the x86 Native Tools Command Prompt for VS 2019 to build: winrt-arm-msvc2019

    ... cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./ -Fdqmake.pdb -W2 -nologo -O2 /MP /wd4577 -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake\library -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake\generators -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake\generators\unix -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake\generators\win32 -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake\generators\mac -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase/src/3rdparty/tinycbor/src -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase/include -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase/include\QtCore -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase/include\QtCore\5.15.16 -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase/include\QtCore\5.15.16\QtCore -I..\src\corelib\global -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\mkspecs\win32-msvc -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -DQT_VERSION_STR=\"5.15.16\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=15 -DQT_VERSION_PATCH=16 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH -DUNICODE -D_ENABLE_EXTENDED_ALIGNED_STORAGE C:\QtBuild\qt-everywhere-src-5.15.16\qtbase\src\corelib\serialization\qjsonvalue.cpp qjsonvalue.cpp cl -c -Fo./ -Fdqmake.pdb -W2 -nologo -O2 /MP /wd4577 -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake\library -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake\generators -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake\generators\unix -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake\generators\win32 -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\qmake\generators\mac -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase/src/3rdparty/tinycbor/src -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase/include -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase/include\QtCore -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase/include\QtCore\5.15.16 -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase/include\QtCore\5.15.16\QtCore -I..\src\corelib\global -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\mkspecs\win32-msvc -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -DQT_VERSION_STR=\"5.15.16\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=15 -DQT_VERSION_PATCH=16 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH -DUNICODE -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_BUILD_QMAKE_BOOTSTRAP C:\QtBuild\qt-everywhere-src-5.15.16\qtbase\src\corelib\global\qlibraryinfo.cpp qlibraryinfo.cpp link /OUT:..\bin\qmake.exe project.obj main.obj ioutils.obj proitems.obj qmakevfs.obj qmakeglobals.obj qmakeparser.obj qmakeevaluator.obj qmakebuiltins.obj makefile.obj unixmake.obj unixmake2.obj mingw_make.obj option.obj winmakefile.obj projectgenerator.obj property.obj meta.obj makefiledeps.obj metamakefile.obj xmloutput.obj msvc_nmake.obj msvc_vcproj.obj msvc_vcxproj.obj msvc_objectmodel.obj msbuild_objectmodel.obj registry.obj qbitarray.obj qbuffer.obj qcryptographichash.obj qfilesystementry.obj qfilesystemengine.obj qfilesystemengine_win.obj qfilesystemiterator_win.obj qfsfileengine.obj qfsfileengine_iterator.obj qarraydata.obj qbytearray.obj qbytearraylist.obj qvsnprintf.obj qbytearraymatcher.obj qcalendar.obj qdatetime.obj qdir.obj qdiriterator.obj qfiledevice.obj qfile.obj qtemporaryfile.obj qabstractfileengine.obj qfsfileengine_win.obj qsystemlibrary.obj qfileinfo.obj qendian.obj qglobal.obj qgregoriancalendar.obj qhash.obj qiodevice.obj qringbuffer.obj qdebug.obj qlist.obj qlocale.obj qlocale_tools.obj qlocale_win.obj qversionnumber.obj qmalloc.obj qmap.obj qoperatingsystemversion.obj qoperatingsystemversion_win.obj qregexp.obj qromancalendar.obj qutfcodec.obj qstring.obj qstringlist.obj qstringbuilder.obj qsystemerror.obj qtextstream.obj qdatastream.obj quuid.obj qrandom.obj qsettings.obj qvariant.obj qsettings_win.obj qmetatype.obj qxmlstream.obj qxmlutils.obj qnumeric.obj qlogging.obj qcborstreamwriter.obj qcborvalue.obj qjsoncbor.obj qjsondocument.obj qjsonparser.obj qjsonarray.obj qjsonobject.obj qjsonvalue.obj qlibraryinfo.obj qmake_pch.obj ole32.lib advapi32.lib shell32.lib netapi32.lib Microsoft (R) Incremental Linker Version 14.29.30157.0 Copyright (C) Microsoft Corporation. All rights reserved. Info: creating super cache file C:\QtBuild\qt-everywhere-src-5.15.16\qtBuild\.qmake.super Info: creating cache file C:\QtBuild\qt-everywhere-src-5.15.16\qtBuild\.qmake.cache Info: creating stash file C:\QtBuild\qt-everywhere-src-5.15.16\qtBuild\.qmake.stash This is the Qt Open Source Edition. You have already accepted the terms of the Open Source license. Running configuration tests... Checking for valid makespec... ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken. Check config.log for details. C:\QtBuild\qt-everywhere-src-5.15.16\qtBuild>

    In the config.log:

    Command line: -debug-and-release -xplatform winrt-arm-msvc2019 -confirm-license -mp -c++std c++17 -opensource -nomake examples -no-ltcg -skip qtwebengine -prefix C:\Qt\5.15.16\winrt_armv7_msvc2019 executing config test verifyspec + cd /d C:\QtBuild\qt-everywhere-src-5.15.16\qtBuild\config.tests\verifyspec && C:\QtBuild\qt-everywhere-src-5.15.16\qtBuild\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_LFLAGS += /ENTRY:main" -early "CONFIG += cross_compile" C:/QtBuild/qt-everywhere-src-5.15.16/qtbase/config.tests/verifyspec + cd /d C:\QtBuild\qt-everywhere-src-5.15.16\qtBuild\config.tests\verifyspec && set MAKEFLAGS=& jom > jom 1.1.4 - empower your cores > cl -c -nologo -FS -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MD -W0 -GR -EHsc -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQ_BYTE_ORDER=Q_LITTLE_ENDIAN -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP -DWINAPI_PARTITION_PHONE_APP=1 -DARM -D__ARM__ -D__arm__ -DNDEBUG -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\config.tests\verifyspec -I. -IC:\QtBuild\qt-everywhere-src-5.15.16\qtbase\mkspecs\winrt-arm-msvc2019 -Fo @C:\Users\cobra\AppData\Local\Temp\verifyspec.obj.34368.0.jom > verifyspec.cpp > link /NOLOGO /DYNAMICBASE /NXCOMPAT /NODEFAULTLIB:ole32.lib /APPCONTAINER /MACHINE:ARM /NODEFAULTLIB:kernel32.lib /ENTRY:main /INCREMENTAL:NO /SUBSYSTEM:WINDOWS /MANIFEST:NO /OUT:verifyspec.exe @C:\Users\cobra\AppData\Local\Temp\verifyspec.exe.34368.31.jom > verifyspec.obj : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'ARM' > jom: C:\QtBuild\qt-everywhere-src-5.15.16\qtBuild\config.tests\verifyspec\Makefile [verifyspec.exe] Error 1112

    So, I get another issue. Is there a way to skip test verifyspec?

  • binary builds missing for macos

    Unsolved General and Desktop
    2
    0 Votes
    2 Posts
    37 Views
    jsulmJ

    @gaess Try a different mirror. See "Selecting a mirror for opensource" in https://wiki.qt.io/Online_Installer_4.x

  • 0 Votes
    7 Posts
    104 Views
    P

    Thank you, guys, for your responses and the references you provided! I appreciate that there are some ready solutions. I will check them out to adapt them to my case.

  • 0 Votes
    2 Posts
    34 Views
    jsulmJ

    @Anjali_AR See https://cmake.org/cmake/help/latest/command/target_link_libraries.html

  • 0 Votes
    6 Posts
    79 Views
    SGaistS

    @Renu hi,

    QtConcurrent already running tasks in different threads, why do you need to create a new separate one ?

  • Qt Creator Build Sound

    Moved Unsolved Qt Creator and other tools
    3
    0 Votes
    3 Posts
    53 Views
    aha_1980A

    @RacerGod You could add a custom build step (either in qmake / CMake or in Creators project setting) that starts a player with that sound.

  • 0 Votes
    2 Posts
    39 Views
    JonBJ

    Try disabling the code completion for Qt Creator, something like clang or clangd. You will have to hunt through all the settings/options, I cannot recall where it is (and am not running it now). You want to get the stage where Creator does not make any suggestions/comments on your code, or at least is not using the default clang to do that. Does that make the problem go away? Or, for example, if you have Creator running but no project/files at all open/loaded inside it, does it still happen?

  • 0 Votes
    2 Posts
    40 Views
    jsulmJ

    @Anjali_AR said in Linking a static library in visual studio to a Qt project using cmake:

    but even after that it's showing error

    If you get an error then please post it, we should not have to guess what the error is about.
    Also, show your CMakeLists.txt