Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.0k Posts
  • progress bar showing both "written" and "read" ?

    Solved
    4
    0 Votes
    4 Posts
    265 Views
    D
    i was able to do it by overriding paint, calling inherited, then just erasing the start area
  • Building qt 5.9.7 on CentOS 7 completes but qtsvg seems to be missing

    Unsolved
    26
    0 Votes
    26 Posts
    4k Views
    Y
    I was finally able to build the third-party application using both Qt 5.9.7 and 5.12.10. The problem I had above was due to the fact that I called the wrong qmake when building the third-party application. I did, however have to use the flag -skip qtquick1 when building 5.9.7 and -skip qtwebengine when building 5.12.10. I then decided to build the app using statically linked Qt-libraries using the flag -static for qmake but this has not been successful. The statically built app crashes with a segmentation fault. Note that in both scenarios I built in a docker container with the same software being installed in the container. The only difference is the -static flag. I will create a new thread for this problem.
  • Save QTextToSpeech Audio as Wav File

    Unsolved
    6
    0 Votes
    6 Posts
    646 Views
    SGaistS
    Recording is indeed not the goal of this module. Either you implement that yourself as part of the QtSpeech module or maybe use a different library that allows for generating audio files directly.
  • Display of QComboBox in QTableView

    Unsolved qtableview c++ qcombobox
    4
    0 Votes
    4 Posts
    717 Views
    JonBJ
    @artwaw I'm not sure, but in addition to @SGaist you may also find you want to use https://doc.qt.io/qt-5/qabstractitemview.html#openPersistentEditor ?
  • (Re)storing tokens from OAuth2

    Unsolved oauth2.0 networkauth
    1
    0 Votes
    1 Posts
    498 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    5 Views
  • 0 Votes
    10 Posts
    3k Views
    I
    Ohhh i thought so about implementing my own flow layout. Tried to avoid this, because this will be difficult to do, but if there is no other way... Anyway, thank you. You helped me to understand a little graphics view framework and saved a lot of time. Best regards!
  • Specifying Visual Studio's 'Conformance mode' in a qmake .pro file?

    Unsolved
    2
    0 Votes
    2 Posts
    520 Views
    Christian EhrlicherC
    You have to set it by your own.
  • Qt3D Problem with transparent object.

    Unsolved
    11
    0 Votes
    11 Posts
    5k Views
    M
    I have exact problem in this topic. If alphaBlending is true, last added object is shown fully in front of that object even though alpha value is 1 (completely opaque) like second picture in first post. Since question is a bit old for Qt3D and answers are unclear, what can I do to fix this? I would like to see if there is an example.
  • This topic is deleted!

    Unsolved
    4
    0 Votes
    4 Posts
    8 Views
  • Parsing XML file with QXmlStreamReader

    Solved
    14
    0 Votes
    14 Posts
    980 Views
    M
    @SGaist thank you for your help I was stuck in this error from last 3 days. it seems like I need to take another look to my Qt notes.
  • This topic is deleted!

    Unsolved
    4
    0 Votes
    4 Posts
    10 Views
  • Unknown module(s) in QT: opcua

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    V
    and i got this error mingw32-make C:\Qt\5.14.2\mingw73_32\qtopcua\build>mingw32-make cd src/ && ( test -e Makefile || C:/Qt/5.14.2/mingw73_32/bin/qmake.exe -o Makefile C:/Qt/5.14.2/mingw73_32/qtopcua/src/src.pro ) && mingw32-make -f Makefile mingw32-make[1]: Entering directory 'C:/Qt/5.14.2/mingw73_32/qtopcua/build/src' cd opcua/ && ( test -e Makefile || C:/Qt/5.14.2/mingw73_32/bin/qmake.exe -o Makefile C:/Qt/5.14.2/mingw73_32/qtopcua/src/opcua/opcua.pro ) && C:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile mingw32-make[2]: Entering directory 'C:/Qt/5.14.2/mingw73_32/qtopcua/build/src/opcua' C:/Qt/Tools/mingw730_32/bin/mingw32-make -f Makefile.Release mingw32-make[3]: Entering directory 'C:/Qt/5.14.2/mingw73_32/qtopcua/build/src/opcua' g++ -c -fno-keep-inline-dllexport -msse2 -mstackrealign -mfpmath=sse -O2 -g -std=c++1z -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_OPCUA_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_FOREACH -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -IC:/Qt/5.14.2/mingw73_32/qtopcua/src/opcua -I. -I../../include -I../../include/QtOpcUa -I../../include/QtOpcUa/6.1.0 -I../../include/QtOpcUa/6.1.0/QtOpcUa -Itmp -IC:/Qt/5.14.2/mingw73_32/include/QtNetwork/5.14.2 -IC:/Qt/5.14.2/mingw73_32/include/QtNetwork/5.14.2/QtNetwork -IC:/Qt/5.14.2/mingw73_32/include/QtCore/5.14.2 -IC:/Qt/5.14.2/mingw73_32/include/QtCore/5.14.2/QtCore -IC:/Qt/5.14.2/mingw73_32/include -IC:/Qt/5.14.2/mingw73_32/include/QtNetwork -IC:/Qt/5.14.2/mingw73_32/include/QtCore -I.moc/release -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.7.25-win32\include -IC:\Utils\postgresql\pgsql\include -IC:/Qt/5.14.2/mingw73_32/mkspecs/win32-g++ -o .obj/release/qopcuatype.o C:/Qt/5.14.2/mingw73_32/qtopcua/src/opcua/client/qopcuatype.cpp C:/Qt/5.14.2/mingw73_32/qtopcua/src/opcua/client/qopcuatype.cpp: In function 'QString QOpcUa::nodeIdFromGuid(quint16, const QUuid&)': C:/Qt/5.14.2/mingw73_32/qtopcua/src/opcua/client/qopcuatype.cpp:635:99: error: no matching function for call to 'QString::append(QStringView)' return QStringLiteral("ns=%1;g=").arg(ns).append(QStringView(identifier.toString()).mid(1, 36)); // Remove enclosing {...}; ^ In file included from C:/Qt/5.14.2/mingw73_32/include/QtCore/qhashfunctions.h:44:0, from C:/Qt/5.14.2/mingw73_32/include/QtCore/qvarlengtharray.h:47, from C:/Qt/5.14.2/mingw73_32/include/QtCore/qmetatype.h:48, from ../../include/QtOpcUa/../../../src/opcua/client/qopcuanodeids.h:42, from ../../include/QtOpcUa/qopcuanodeids.h:1, from C:/Qt/5.14.2/mingw73_32/qtopcua/src/opcua/client/qopcuatype.h:41, from C:/Qt/5.14.2/mingw73_32/qtopcua/src/opcua/client/qopcuatype.cpp:37: C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:534:14: note: candidate: QString& QString::append(QChar) QString &append(QChar c); ^~~~~~ C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:534:14: note: no known conversion for argument 1 from 'QStringView' to 'QChar' C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:535:14: note: candidate: QString& QString::append(const QChar*, int) QString &append(const QChar *uc, int len); ^~~~~~ C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:535:14: note: candidate expects 2 arguments, 1 provided C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:536:14: note: candidate: QString& QString::append(const QString&) QString &append(const QString &s); ^~~~~~ C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:536:14: note: no known conversion for argument 1 from 'QStringView' to 'const QString&' C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:537:14: note: candidate: QString& QString::append(const QStringRef&) QString &append(const QStringRef &s); ^~~~~~ C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:537:14: note: no known conversion for argument 1 from 'QStringView' to 'const QStringRef&' C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:538:14: note: candidate: QString& QString::append(QLatin1String) QString &append(QLatin1String s); ^~~~~~ C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:538:14: note: no known conversion for argument 1 from 'QStringView' to 'QLatin1String' C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:812:40: note: candidate: QString& QString::append(const char*) inline QT_ASCII_CAST_WARN QString &append(const char *s) ^~~~~~ C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:812:40: note: no known conversion for argument 1 from 'QStringView' to 'const char*' C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:814:40: note: candidate: QString& QString::append(const QByteArray&) inline QT_ASCII_CAST_WARN QString &append(const QByteArray &s) ^~~~~~ C:/Qt/5.14.2/mingw73_32/include/QtCore/qstring.h:814:40: note: no known conversion for argument 1 from 'QStringView' to 'const QByteArray&' C:/Qt/5.14.2/mingw73_32/qtopcua/src/opcua/client/qopcuatype.cpp: In function 'bool QOpcUa::nodeIdStringSplit(const QString&, quint16*, QString*, char*)': C:/Qt/5.14.2/mingw73_32/qtopcua/src/opcua/client/qopcuatype.cpp:677:56: error: 'class QStringView' has no member named 'toUInt'; did you mean 'toUtf8'? uint ns = QStringView(components.at(0)).mid(3).toUInt(&success); ^~~~~~ toUtf8 C:/Qt/5.14.2/mingw73_32/qtopcua/src/opcua/client/qopcuatype.cpp: In function 'QOpcUa::NodeIds::Namespace0 QOpcUa::namespace0IdFromNodeId(const QString&)': C:/Qt/5.14.2/mingw73_32/qtopcua/src/opcua/client/qopcuatype.cpp:744:29: error: 'const class QStringView' has no member named 'toUInt'; did you mean 'toUtf8'? quint32 identifier = sv.toUInt(&ok); ^~~~~~ toUtf8 mingw32-make[3]: *** [Makefile.Release:5746: .obj/release/qopcuatype.o] Error 1 mingw32-make[3]: Leaving directory 'C:/Qt/5.14.2/mingw73_32/qtopcua/build/src/opcua' mingw32-make[2]: *** [Makefile:45: release] Error 2 mingw32-make[2]: Leaving directory 'C:/Qt/5.14.2/mingw73_32/qtopcua/build/src/opcua' mingw32-make[1]: *** [Makefile:52: sub-opcua-make_first] Error 2 mingw32-make[1]: Leaving directory 'C:/Qt/5.14.2/mingw73_32/qtopcua/build/src' mingw32-make: *** [Makefile:53: sub-src-make_first] Error 2
  • 0 Votes
    3 Posts
    894 Views
    B
    @Christian-Ehrlicher said in How to differentiate between VS2017/2019 and older Visual Studio versions in qmake .pro file?: You can try the (undocumented) variable QMAKE_MSC_VER (see mkspecs\common\msvc-version.conf) To specify that I only want to use the /permissive- flag from VS2017 on and later, I just tried greaterThan(QMAKE_MSC_VER, 1900) { QMAKE_CXXFLAGS += /permissive- } which is similar to the code in mkspecs\common\msvc-version.confand that seems to work: DEBUG 2: evaluating joined expression DEBUG 2: new string DEBUG 2: literal "QMAKE_MSC_VER" DEBUG 2: evaluated expression => QMAKE_MSC_VER DEBUG 2: evaluating joined expression DEBUG 2: new string DEBUG 2: literal "1900" DEBUG 2: evaluated expression => QMAKE_MSC_VER 1900 DEBUG 1: D:/blablabla.pri:83: calling built-in greaterThan(QMAKE_MSC_VER, 1900) DEBUG 1: D:/blablabla.pri.pri:83: test function returned true DEBUG 1: D:/blablabla.pri.pri:83: taking 'then' branch DEBUG 1: D:/blablabla.pri.pri:83: entering block Thanks!
  • Getting datas from queue to series

    Solved queue chart qt 5
    5
    0 Votes
    5 Posts
    951 Views
    D
    @JonB Thank you, it works
  • How can i track features usage of my QT application

    Unsolved
    3
    0 Votes
    3 Posts
    398 Views
    JKSHJ
    @Pardeep said in How can i track features usage of my QT application: Is there any qt library to generate reports like I mention? There is no Qt library, but there is a KDE library called KUserFeedback: https://api.kde.org/frameworks/kuserfeedback/html/index.html It is designed to transmit the data to a server (say, once a week) but you might be able to set it up to store the data locally instead. KUserFeeback is used by Qt Creator to track feature usage: https://doc.qt.io/qtcreator/creator-telemetry.html
  • 0 Votes
    3 Posts
    886 Views
    JonBJ
    @liuyu As @JKSH says. However, you show an error message without any mention of when this happens to you, which is a big omission for any question..... EDIT Ah, I think see you have addressed this in https://forum.qt.io/topic/94128/failed-to-retrieve-msvc-environment-the-command-c-windows-system32-cmd-exe-could-not-be-started ....
  • This topic is deleted!

    Unsolved
    9
    0 Votes
    9 Posts
    26 Views
  • How to track SIGNAL(s) ?

    Unsolved
    4
    0 Votes
    4 Posts
    438 Views
    JonBJ
    @AnneRanch said in How to track SIGNAL(s) ?: and is there as resource / tutorial on how to actually code QTest for specific, desired SIGNAL? I have not used it myself, but have you seen QSignalSpy Class, which allows you to track selected signals? So far as I know, that only requires Header: #include <QSignalSpy> qmake: QT += testlib
  • Can't compile qt 5.5.0, 5.5.1, 5.6.3 with MSVC2010

    Unsolved
    1
    0 Votes
    1 Posts
    117 Views
    No one has replied