Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
82.4k Topics 450.6k Posts
  • Qt6 Windows result binary not working without QCreator

    Unsolved
    8
    0 Votes
    8 Posts
    197 Views
    JonBJ

    @RahibeMeryem
    @hskoglund said in Qt6 Windows result binary not working without QCreator:

    _ZNSt3pmr20get_default_resourceEv)

    The procedure entry point _ZNSt3pmr20get_default_resourceEV could not be located in the dynamic library Qt6Gui.dll, Qt6Widgets and Qt6Core.dll

    Copy "libstdc++6.dll" from where the mingw bin files are located into your folder where the executable is located. This worked for me and it should work for yall :)

    If all else fails try this. If it works, and you're interested, find out how that is found inside Creator.

    Also The procedure entry point _ZNSt3pmr20get_default_resourceEV could not be located in dynamic link library in QT

    Thanks to you both, the problem was that I was having other mingw folder which was standalone and not qt bounded before, so i just put the path of the qt bounded mingw before that standalone mingw in my env variables and this went righ

  • Disabling user interaction with window

    Unsolved
    10
    0 Votes
    10 Posts
    348 Views
    A

    Thanks for all the inputs. Let me describe my requirement more.
    This window is not the only GUI for my application. So its not like everything is blocked until this window is updated. There are other windows also with which user can interact.
    Incremental updates that happen in background that require me to update this window, can happen in batches but operations needed to make window in sync are as of now not incremental, they require full redo (we will review how to make this also incremental in future) .
    And what if user keeps on triggering operations that requires me to redo analysis for displaying in this window continuously even when user actually isnt using this specific window.
    We will review this use model later but for short term I was looking to disable the window and ask user themselves to manually trigger resync when they intend to use it. This disabling of window is needed to avoid any undefined behavior when window is out of sync.
    If there is no easy way to disable like that, as a short term solution I will maybe just close the window internally when user triggers something that makes it out of sync

  • Can't find linker symbol for virtual table

    17
    0 Votes
    17 Posts
    17k Views
    Christian EhrlicherC

    @osirisgothra Can you tell me why you revive such old topics? What's the point of this? Please stop it.

  • qt.qpa.xcb: could not connect to display

    4
    0 Votes
    4 Posts
    142 Views
    PerdrixP

    Aha! Thank you. Setting DISPLAY to :0 in the SSH debug settings (launch.vs.json) accessed via "Debug and Launch Settings" did the trick:

    { "version": "0.2.1", "defaults": {}, "configurations": [ { "type": "cppgdb", "name": "DeepSkyStacker", "project": "CMakeLists.txt", "projectTarget": "DeepSkyStacker", "comment": "Learn how to configure remote debugging. For more info, see http://aka.ms/vslinuxdebug", "debuggerConfiguration": "gdb", "MIMode": "gdb", "args": [], "env": { "DISPLAY": ":0" } } ] }

    The program now runs and displays on the Linux desktop. As this is windows it's easier to work that way than to run an X Server on Windows and funnel it through ssh.

  • How to provide an empty row in QTableView

    Unsolved
    5
    0 Votes
    5 Posts
    112 Views
    M

    @JonB yeah, it works. Basically I did the following:

    class AddIdentityProxyModel : public QIdentityProxyModel { public: AddIdentityProxyModel(QObject *parent = 0): QIdentityProxyModel(parent) { } int rowCount(const QModelIndex &parent = QModelIndex()) const { return sourceModel()->rowCount() + 1; } };

    then

    QSqlTableModel *_model; QSortFilterProxyModel *_proxyModel; AddIdentityProxyModel *_addProxy; QSqlDatabase db = QSqlDatabase::database("mydb"); _model = new QSqlTableModel(this, db); _model->setTable("mytable"); _model->setEditStrategy(QSqlTableModel::OnRowChange); _model->select(); _proxyModel = new QSortFilterProxyModel(this); _proxyModel->setSourceModel(_model); _proxyModel->sort(1); _addProxy = new AddIdentityProxyModel(this); _addProxy->setSourceModel(_proxyModel); ui->table->setModel(_addProxy);

    it needs some tweaks in order to be fully functional, but I think it could work!

  • Avoid context menu in empty areas

    Solved
    5
    0 Votes
    5 Posts
    99 Views
    SGaistS

    Use the pos parameter of the signal to get the position of the cursor in the widget's coordinates.

  • Comparing/sorting QVariant in Qt6

    Solved
    10
    0 Votes
    10 Posts
    211 Views
    JonBJ

    "It's one small issue for a man, one giant issue for mankind" ! ;-)
    Thanks @Christian-Ehrlicher
    @angela2016 In your particular code (vital: datetimes span daylight savings) this should make a 50x improvement when patched :)

  • 0 Votes
    11 Posts
    312 Views
    B

    @Bonnie

    Thank you so much for the clarification. It helps a lot. This finally makes sense to me now.

    I will spend some time to learn more about .rc files and to create one, as well as to manually add an icon to the executable.

    I will be back onto this forum once I have made some progress. It may take me a while though, as I am just a part-time hobbyist in Qt programming.

    Thanks again!

  • QPainterPath::addRoundedRect with 4 different radii?

    Solved
    4
    0 Votes
    4 Posts
    366 Views
    A
    const int w = width(); const int h = height(); auto drawRoundedRect = [this, w, h](QPainterPath &p, const BorderRadius &r, int inset) { // clang-format off p.arcMoveTo( inset, inset, inset, r.topLeft, 0); p.arcTo(inset, inset, r.topLeft, r.topLeft, 180, -90); p.arcTo(w - r.topRight - inset, inset, r.topRight, r.topRight, 90, -90); p.arcTo(w - r.bottomRight - inset, h - r.bottomRight - inset, r.bottomRight, r.bottomRight, 0, -90); p.arcTo(inset, h - r.bottomLeft - inset, r.bottomLeft, r.bottomLeft, 270, -90); p.arcTo(inset, inset, r.topLeft, r.topLeft, 180, 0); // clang-format on };

    Where should this code be placed? How should it be used?

  • 0 Votes
    2 Posts
    48 Views
    JonBJ

    @markleo said in Excuse me, I want to implement a window interface to display the values of variables,is there any guidance?:

    Excuse me, I want to implement a window interface to display the values of variables.

    You mean at runtime for the actual end user of your application? Why would you/they want such a thing? As you say, viewing them at development time under a Python debugger --- which will have a "Watch" pane for this --- is usually all you would want.

  • Struggle to insert a QListWidgetItem at his old position ...

    Unsolved
    7
    0 Votes
    7 Posts
    151 Views
    JonBJ

    @ademmler said in Struggle to insert a QListWidgetItem at his old position ...:

    @ChrisW67: I want to move the taken item back to its old position.
    Isn't "from" the old position? Does the position be changed while "dragging" or afterwards?

    I would guess it only changes after the drag/drop. But in any case these two lines

    QListWidgetItem* myItem = ui->listWidget->takeItem(from); ui->listWidget->insertItem(from, myItem);

    take an item out at from and immediately put it back in at from so that's just a NOOP.

  • Qt 5 - qnetwork schannel with non-exportable private key.

    Unsolved
    5
    0 Votes
    5 Posts
    106 Views
    S

    https://bugreports.qt.io/browse/QTBUG-131483

  • QGiS Windows Source Build

    Moved Unsolved
    40
    0 Votes
    40 Posts
    2k Views
    jsulmJ

    @abhishek999 said in QGiS Windows Source Build:

    how i download this version

    You need a commercial license for that version or you build that version by yourself. But it should also work if you use Qt 5.15.2 for your app.
    Was QGIS built using MSVC or MinGW?

  • PyQT Touch Events (Raspberry Pi 5 and Ubuntu 24.04)

    Unsolved
    3
    0 Votes
    3 Posts
    80 Views
    O

    @afalsa I dont get any logging events when this happens which is the issue

  • Problems using QML Virtual Keyboard with QtWidgets

    Unsolved
    2
    0 Votes
    2 Posts
    116 Views
    G

    Hi Nic,
    Have you find any solution?
    I'm facing similar situation as yours.
    After keyboard popping up and taking the focus, the QLineEdit box loses focus and dismisses the keyboard immediately.
    Really weired.

  • QMessageBox not centered on application

    Solved
    15
    0 Votes
    15 Posts
    384 Views
    JonBJ

    @Perdrix
    Then you may fare better with Wayland than I did, if you have to use it!

  • 0 Votes
    5 Posts
    96 Views
    F

    @jsulm Thank your reply,I have solved my question,thank you very much!kiss kiss!

  • A question about QEventLoop.

    Unsolved
    2
    0 Votes
    2 Posts
    76 Views
    I

    @John-Van said in A question about QEventLoop.:

    But as expected, the eventloop of 0 should be the first to end, so the 0 end should be printed first.

    That is simply not possible. Only the inner most event loop is processing events, and it does so for the entire thread. So only event loop 4 is active, the rest are blocked.

    Event loop 0 is indeed the first one to have its quit slot called, but that only signals for it to end at the first available opportunity- which isn't right now, as it is blocked on executing loop 1, which is blocked on executing loop 2, etc. It can exit only once all of that unwinds, so last.

  • create plugin to add functionnality in QtDesign Studio

    Solved
    6
    0 Votes
    6 Posts
    145 Views
    S

    Thanks, i did understand how it works and i manage to compile a plugin without getting source from QtDesignStudio.
    I changed the versions number in C:\Qt\Tools\QtCreator\lib\cmake\QtCreator\QtCreatorIDEBranding.cmake to be the version of QtDesignerStudio and it works (Qt version for my plugin and Qt version of QtDesignStudio is the same).

    My plugin does compile and is loaded in QtDesignStudio and show a new menu :)

    Thanks for the help

  • This topic is deleted!

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