Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.2k Topics 455.3k Posts
  • Support for 16 bit grayscale Images

    6
    0 Votes
    6 Posts
    9k Views
    SachinBhatS
    Qt now supports 16 bit handling in 5.12 version
  • Cross compiling QT-5.13.1 for ARM7 .

    Unsolved
    3
    0 Votes
    3 Posts
    151 Views
    A
    @SGaist i'm using arm GNU. And it is for linux platform. ("hisiv100 stands for hisilicon boards).
  • Multiple QTextBlocks in same paragraph

    Unsolved
    1
    0 Votes
    1 Posts
    95 Views
    No one has replied
  • How to get a stroked path of a QPainterPath with just one line?

    Solved
    3
    0 Votes
    3 Posts
    270 Views
    P
    @SGaist Yes it is, it it works there. Funny enough, it was yet another bug in my code that cause led a zero-width shape.
  • QTreeView Extended Selection + Drag and Drop

    Unsolved
    3
    0 Votes
    3 Posts
    741 Views
    E
    @SGaist Yes that's correct. Drag would only be triggered when clicking and dragging selected items. If the items are not selected, then no dragging occurs. The selection would be updated instead.
  • Get what is pressed inside QTextEdit

    Unsolved qtextedit cursor table
    1
    0 Votes
    1 Posts
    310 Views
    No one has replied
  • How to append a new value to a QJsonObject key without looping

    Moved Solved
    2
    0 Votes
    2 Posts
    155 Views
    Christian EhrlicherC
    Pseudo code: auto curVal = obj["key1"] auto curArr = curVal.toArray(); curArr.append("c"); obj["key1"] = curArr;
  • Have "Sleep()" on the bottom of the QTimer, cant exit app instantly.

    Unsolved
    2
    0 Votes
    2 Posts
    316 Views
    SGaistS
    Hi, setInterval just sets the interval while start starts the timer with the given interval. As for your use of sleep, it will block the event loop hence it can't process normally. If you want to introduce different delays you should reconsider your design. Maybe use a state machine.
  • Debugger reports stl container size and contents wrong, reports objects as null, etc

    Unsolved
    1
    0 Votes
    1 Posts
    105 Views
    No one has replied
  • qgrapicstextitem update

    Unsolved
    2
    0 Votes
    2 Posts
    162 Views
    mrjjM
    Hi and welcome to the forums It's hard to guess at with no code. Maybe you assign the same value to all 3 ?
  • SQLQuery works on SQLite browser but not Qt5.11.2

    Solved
    2
    0 Votes
    2 Posts
    167 Views
    thamT
    Find out the reason, sqlite version of Qt.511.2 is too old
  • Build application in QTCreator

    Unsolved
    3
    0 Votes
    3 Posts
    254 Views
    C
    In my pro file: https://pastebin.com/pbxBNLaR In my output: https://ibb.co/mB4m42B When I add library with this name I see that ITKCommon not found. When I add ITKCommon I see teribble view: https://ibb.co/RypyNnk
  • Database event notification subscription

    Unsolved
    26
    0 Votes
    26 Posts
    3k Views
    U
    @JonB Ooh sorry, I did not see that part. the instruction I was following on qt doc did not mention about make install, it was something like this: cd %QTDIR%\qtbase\src\plugins\sqldrivers qmake nmake sub-odbc And there are two plugin folders But I did this: C:\Qt\Qt5.13.2\5.13.2\mingw73_32>cd C:\Qt\Qt5.13.2\5.13.2\Src\qtbase\src\plugins\sqldrivers\odbc C:\Qt\Qt5.13.2\5.13.2\Src\qtbase\src\plugins\sqldrivers\odbc>mingw32-make install mingw32-make -f Makefile.Release install mingw32-make[1]: Entering directory 'C:/Qt/Qt5.13.2/5.13.2/Src/qtbase/src/plugins/sqldrivers/odbc' g++ -c -fno-keep-inline-dllexport -O2 -std=c++1z -fno-exceptions -Wall -W -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_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I. -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include\QtSql\5.13.2 -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include\QtSql\5.13.2\QtSql -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include\QtCore\5.13.2 -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include\QtCore\5.13.2\QtCore -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include\QtSql -IC:\Qt\Qt5.13.2\5.13.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\Qt5.13.2\5.13.2\mingw73_32\mkspecs\win32-g++ -o .obj\release\qsql_odbc.o qsql_odbc.cpp g++ -Wl,-s -shared -Wl,-subsystem,windows -Wl,--out-implib,C:\Qt\Qt5.13.2\5.13.2\Src\qtbase\src\plugins\sqldrivers\plugins\sqldrivers\libqsqlodbc.a -o ..\plugins\sqldrivers\qsqlodbc.dll .obj/release/qsql_odbc.o .obj/release/main.o .obj/release/moc_qsql_odbc_p.o -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.7.25-win32\lib -LC:\Utils\postgresql\pgsql\lib C:\Qt\Qt5.13.2\5.13.2\mingw73_32\lib\libQt5Sql.a C:\Qt\Qt5.13.2\5.13.2\mingw73_32\lib\libQt5Core.a "C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x86\odbc32.lib" .obj\release\qsqlodbc_resource_res.o copy /y ..\plugins\sqldrivers\qsqlodbc.dll C:\Qt\Qt5.13.2\5.13.2\mingw73_32\plugins\sqldrivers\qsqlodbc.dll 1 file(s) copied. C:\Qt\Qt5.13.2\5.13.2\mingw73_32\bin\qmake.exe -install qinstall C:\Qt\Qt5.13.2\5.13.2\Src\qtbase\src\plugins\sqldrivers\lib\cmake\Qt5Sql\Qt5Sql_QODBCDriverPlugin.cmake C:\Qt\Qt5.13.2\5.13.2\mingw73_32\lib\cmake\Qt5Sql\Qt5Sql_QODBCDriverPlugin.cmake mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.13.2/5.13.2/Src/qtbase/src/plugins/sqldrivers/odbc' mingw32-make -f Makefile.Debug install mingw32-make[1]: Entering directory 'C:/Qt/Qt5.13.2/5.13.2/Src/qtbase/src/plugins/sqldrivers/odbc' g++ -c -fno-keep-inline-dllexport -g -Og -std=c++1z -fno-exceptions -Wall -W -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_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I. -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include\QtSql\5.13.2 -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include\QtSql\5.13.2\QtSql -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include\QtCore\5.13.2 -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include\QtCore\5.13.2\QtCore -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include\QtSql -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\include\QtCore -I.moc\debug -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.7.25-win32\include -IC:\Utils\postgresql\pgsql\include -IC:\Qt\Qt5.13.2\5.13.2\mingw73_32\mkspecs\win32-g++ -o .obj\debug\qsql_odbc.o qsql_odbc.cpp g++ -shared -Wl,-subsystem,windows -Wl,--out-implib,C:\Qt\Qt5.13.2\5.13.2\Src\qtbase\src\plugins\sqldrivers\plugins\sqldrivers\libqsqlodbcd.a -o ..\plugins\sqldrivers\qsqlodbcd.dll .obj/debug/qsql_odbc.o .obj/debug/main.o .obj/debug/moc_qsql_odbc_p.o -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.7.25-win32\lib -LC:\Utils\postgresql\pgsql\lib C:\Qt\Qt5.13.2\5.13.2\mingw73_32\lib\libQt5Sqld.a C:\Qt\Qt5.13.2\5.13.2\mingw73_32\lib\libQt5Cored.a "C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x86\odbc32.lib" .obj\debug\qsqlodbcd_resource_res.o copy /y ..\plugins\sqldrivers\qsqlodbcd.dll C:\Qt\Qt5.13.2\5.13.2\mingw73_32\plugins\sqldrivers\qsqlodbcd.dll 1 file(s) copied. C:\Qt\Qt5.13.2\5.13.2\mingw73_32\bin\qmake.exe -install qinstall C:\Qt\Qt5.13.2\5.13.2\Src\qtbase\src\plugins\sqldrivers\lib\cmake\Qt5Sql\Qt5Sql_QODBCDriverPlugin.cmake C:\Qt\Qt5.13.2\5.13.2\mingw73_32\lib\cmake\Qt5Sql\Qt5Sql_QODBCDriverPlugin.cmake mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.13.2/5.13.2/Src/qtbase/src/plugins/sqldrivers/odbc'
  • Controls Events

    Unsolved
    6
    0 Votes
    6 Posts
    350 Views
    J
    @JonB said in Controls Events: @jenya7 I don't think Qt Creator (I don't use it) provides a drag-and-drop interface to creating one, but yes Qt provides a https://doc.qt.io/qt-5/qfiledialog.html. From code you call one of its methods, you may be able to get away with the https://doc.qt.io/qt-5/qfiledialog.html#static-public-members ones for simplest purposes. Thank you.
  • QComboBox retains mouse hover highlight if you close popup

    Solved
    4
    1 Votes
    4 Posts
    636 Views
    L
    Ok, I managed to work around this issue, will write it here in case anybody else has this problem. I quit trying to use qss and did it in the code. Subclassed the QComboBox and added the hover events: bool TrackableComboBox::event(QEvent *event) { switch (event->type()) { case QEvent::Enter: this->setStyleSheet("background-color: rgba(0, 0, 0, 0.2);"); break; case QEvent::Leave: case QEvent::MouseButtonPress: this->setStyleSheet("background-color: -1;"); break; default: break; } return QWidget::event(event); } The secret here is to add Leave and MouseButtonPress reset the color, otherwise you will have the same issue.
  • This topic is deleted!

    Solved
    11
    0 Votes
    11 Posts
    11 Views
  • From commercial to open source licence

    Unsolved
    2
    0 Votes
    2 Posts
    200 Views
    jsulmJ
    @Loic-B You can skip entering your account when installing Qt, then it will be OSS version.
  • How to discovery connected BLE device on MacOS

    Unsolved
    1
    0 Votes
    1 Posts
    139 Views
    No one has replied
  • How to print multiple pages in one document using QPrinter and QWebView.

    Unsolved
    1
    0 Votes
    1 Posts
    214 Views
    No one has replied
  • How to remove elements from QStringList by comparing each other members.

    Solved
    15
    0 Votes
    15 Posts
    1k Views
    A
    @Chris-Kawa Thanks