Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.2k Posts
  • array have data but use QJsonValue value = array.at(i); no content

    Unsolved
    3
    0 Votes
    3 Posts
    217 Views
    C
    @bestmyf_001 Assuming that data_value is actually a QJsonArray... what is the value of i and how many elements are in the array? See QJsonArray::at()
  • Client , Server communication

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    _
    @__d4ve__ I used socket->bytesAvailable() and it seems to solve the problem.
  • QLineEdit:hover { background: blue; } only changes color when it has focus

    Unsolved
    9
    0 Votes
    9 Posts
    663 Views
    Axel SpoerlA
    @Mighty_Pig Very well, I’ll look into it then.
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    8 Views
  • How to create menus with design studio?

    Unsolved
    6
    0 Votes
    6 Posts
    907 Views
    Tom assoT
    @Sofiakim - Note that I am using QtQuick/QML (not Qt Widgets) I assume that Design Studio as well as qtcreator would provide tools to create menu bars and menus, but I cannot for the life of me find those tools in qtdesignstudio (4.4.0) or qtcreator (12.0.2, 13.0.0). Can you please tell me specifically where to find these menu-creation tools? Thanks!
  • Project ERROR: Unknown module(s) in QT: bootstrap-private

    Unsolved
    5
    0 Votes
    5 Posts
    883 Views
    S
    @ananomous Do not use a "-" in prefix... WRONG: ./configure -release -prefix /usr/local/Qt-5.7.0 OK: ./configure -release -prefix /usr/local/Qt5.7.0
  • make install doesn't work

    Unsolved
    2
    0 Votes
    2 Posts
    219 Views
    C
    Have you tried running make install after you build the project? Are you sure that test.dll, which is indeed a strange "header", lives in the root directory of the current disk?
  • ComboDelegate does not display list.

    Solved
    9
    0 Votes
    9 Posts
    466 Views
    SGaistS
    Setting the edit trigger comes to mind.
  • When changing item in QGraphicsScene, the old content is still displayed

    Unsolved
    2
    0 Votes
    2 Posts
    195 Views
    Q
    Upon further inspection, it turned out that the problem only occurs when the widget containing the QGraphicsView has the attribute Qt::WA_TranslucentBackground set. setAttribute(Qt::WA_TranslucentBackground); Is this really the intended behaviour or might this be a bug?
  • QSortFilterProxyModel class indexes don't mapping with source model indexes

    Unsolved
    8
    0 Votes
    8 Posts
    504 Views
    M
    @Christian-Ehrlicher Thank you for help! Solution was found. I just missed in my garbage code, and i did't totally understand what i was doing for a lot of time.))))
  • QtSerialport module not found

    Unsolved
    5
    0 Votes
    5 Posts
    660 Views
    W
    @Paul-Colby [image: e8e9a52b-762a-473f-9f5d-f41dec1168f2.png] Sorry it's in french but you can translate to : qt module not found(qtserialport).Import paths: D:/QTINSTALL/5.15.2/mingw81_64/qml I built this projet using this option (this is the window to build another projet but i did the same on the projet im working on) : [image: 70d41c33-1aeb-49ff-a73d-019b90f2292a.png] This is my output : [image: 02ece0c3-422a-46b4-a08e-91ec6b3b0f6e.png] This is my MakeFile from the build folder of the projet : https://pastebin.com/uKC6ydqB This is my Makefile.debug from the same directory : https://pastebin.com/xcWnN7v4 This is content of the import path : [image: 0c230972-75a9-4cd0-a73d-946e9e75a425.png]
  • QSvgWidget - problem with some SVG files

    Unsolved
    3
    0 Votes
    3 Posts
    385 Views
    D
    @Christian-Ehrlicher Sorry, that not possible for me. Neither systemd-analyze nor PyMuPDF get_svg_image function (https://pymupdf.readthedocs.io/en/latest/page.html#Page.get_svg_image) are able to strip down SVG output to a QT compatibility level... When there is no other possibility, I think I have to change toolkit or wait until QT will adopt more SVG functionality some day.
  • Sqlite nested select

    Unsolved sqlite3 nes select
    4
    0 Votes
    4 Posts
    562 Views
    JonBJ
    @GeorgiosKoropoulis If you want to use whatever SQLite constructs in queries you have, like INSERT OR IGNORE INTO ... or SELECT ... FROM/VALUES (SELECT ... FROM), you can but you have to build the text of the query yourself. In this case you may find that binding does not work (that is supported by the driver, so depends what that allows for binding), but you can build that yourself into the text of the query without using binding. Just beware of correct syntax (e.g. quoting) and SQL injection.
  • QString causing Memory Error

    Unsolved
    14
    0 Votes
    14 Posts
    1k Views
    Christian EhrlicherC
    I would try with the pre-compiled Qt libs + MinGW from Qt first.
  • Difficulty Capturing Active Window Title and Application Name in Wayland with QT6.6.3

    Unsolved
    2
    0 Votes
    2 Posts
    342 Views
    SGaistS
    Hi, How are you currently implementing it ?
  • Licence an application

    Unsolved licence licensing key application
    2
    0 Votes
    2 Posts
    342 Views
    C
    @Joe-von-Habsburg There are, I assume, numerous online product activation services like LicenseSpring (no affiliation or recommendation). You could roll-your-own with something like Partial Key/Serial Validation or something similar.
  • How does the qt scroll area work

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    C
    @DeadSo0ul You don't have to use a layout in the content widget but absolute positioning is generally harder to maintain.
  • Migration from Qt 5.15.7 to Qt 6.7.0 and a small problem with QTreeWidget

    Unsolved
    3
    0 Votes
    3 Posts
    290 Views
    A
    @Christian-Ehrlicher said in Migration from Qt 5.15.7 to Qt 6.7.0 and a small problem with QTreeWidget: windowsvista Thanks! so stupid I didn't try that... Perfect with WindowsVista
  • Qt6 porting, undefined symbol: _ZN10EngineBase16staticMetaObjectEHi

    Solved
    15
    0 Votes
    15 Posts
    2k Views
    sebaroS
    Changing to the previous minimum required version of cmake fixes this: CMakeLists.txt cmake_minimum_required(VERSION 2.8.6) #cmake_minimum_required(VERSION 3.16) src/core/player/mpv/CMakeLists.txt cmake_minimum_required(VERSION 2.6) #cmake_minimum_required(VERSION 3.16) Seems to be this policy: https://cmake.org/cmake/help/latest/policy/CMP0065.html This fixed the issue with cmake 3.4+: set_target_properties(yarock PROPERTIES ENABLE_EXPORTS TRUE)
  • Profiler of DependencyWalker on Qt app

    Unsolved
    2
    0 Votes
    2 Posts
    177 Views
    Christian EhrlicherC
    Dependency Walker is very old so you can be happy that it even starts. And it is not a profiler.