Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • reach QComboBox (QStyledItemDelegate delegate) in QTableView from outside

    Unsolved
    9
    0 Votes
    9 Posts
    820 Views
    KaguroK
    @SGaist Sorry for super late, i have so many other task in my job nowadays. I will aswer it tomorrow as i can! Thanks your help!:)
  • Build Qt to cross compile for arm tutorial

    Unsolved
    3
    0 Votes
    3 Posts
    689 Views
    I
    @jsulm https://forum.qt.io/topic/131394/raspberry-cross-compiler-setting-cannot-run-target-compiler Can you answer the question in this link?
  • Fail to run application in Release mode but able to run in Debug mode

    Unsolved
    5
    0 Votes
    5 Posts
    408 Views
    M
    Through open source offline installer. (qt-opensource-windows-x86-5.12.11)
  • .run file not running in Ubuntu

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    C
    The Korean error message "Exec 형식 오류" is "Exec format error" in English. This is exactly what you would expect trying to run a X86 or X86_64 binary on an ARM64 architecture machine. This is a rehash of @IknowQT's earlier posts on the same/similar topics. As far as I can tell, Qt 5.12.8 is the latest Canonical-published Qt version for ARM64. There may be a PPA somewhere that offers later versions. It is clearly possible to build Qt libraries for ARM64 but before going down that path understand why the need for that specific later version. Is there a particular bug in 5.12.8 that absolutely must be fixed?
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    14 Views
  • Debugging : Unresolved Externals

    Unsolved
    2
    0 Votes
    2 Posts
    188 Views
    jsulmJ
    @Swati777999 said in Debugging : Unresolved Externals: filename.dll What lib is that? Is it your own? Please show the whole error message.
  • QT App crashes directly after starting debug run

    Unsolved cmake mingw64 msys2
    4
    0 Votes
    4 Posts
    2k Views
    J.HilkJ
    @BDC_Patrick might be a driver/win11 issue, does it also directly crash with a console application?
  • win: can't trap WM_ENTER/EXITMENULOOP?

    Unsolved
    1
    0 Votes
    1 Posts
    127 Views
    No one has replied
  • Qt5 too big space between widgets in one vertical layout.

    Unsolved
    15
    0 Votes
    15 Posts
    2k Views
    GUYUEZUNZHEG
    @mpergand Thank you for your reply! I tried, It doesn't work! maybe The sub widget can't work well for Qt
  • Layout, widgets not inside ???

    Unsolved
    87
    0 Votes
    87 Posts
    14k Views
    SPlattenS
    @SGaist , the engine is quite simple, I just need to identify what is different, I will start by comparing the tree structure.
  • Failed to get `QModelIndex` for `QFileSystemModel`

    Solved
    4
    0 Votes
    4 Posts
    352 Views
    jronaldJ
    @SGaist said in Failed to get `QModelIndex` for `QFileSystemModel`: QFileSystemModel is a threaded model so you might be trying to access it while it's not yet populated. Tested, it is just the cause of the problem, thanks. @eyllanesc said in Failed to get `QModelIndex` for `QFileSystemModel`: use directoryLoaded signal. It's what's in need, thanks.
  • Fakevim how to run a program? CTRL-R not working anymore.

    Unsolved
    1
    1 Votes
    1 Posts
    151 Views
    No one has replied
  • How to show DB NULL in QTableView

    Solved
    9
    0 Votes
    9 Posts
    815 Views
    D
    @JonB, now it's perfect. Thanks once again for the additional answer.
  • How can I change proxy for application? realtime

    Unsolved
    2
    0 Votes
    2 Posts
    145 Views
    C
    What are you trying now? How is your application connecting to the outside world? Is it continuing to talk to the old proxy, or is it sending the old credentials to the new proxy? If you are using QNetworkAccessManager then QNetworkAccessManager::clearAccessCache() might be required.
  • Qt Designer Studio Plugins

    Unsolved
    1
    0 Votes
    1 Posts
    167 Views
    No one has replied
  • Problem with QTextEdit copy function after assigning it a QAction

    Solved
    6
    0 Votes
    6 Posts
    577 Views
    L
    @mpergand Yes, that's what I want. Thanks. I tested it and it works.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Programmatically modify QSqlTableModel field

    Solved
    16
    0 Votes
    16 Posts
    2k Views
    JonBJ
    @NameRakes Absolutely. The updates work in two directions: When the bound value in the model changes, the widget is updated accordingly. When the user (interactively) changes the widget's value, the bound value in the model is updated accordingly. I would not have necessarily known that calling QLineEdit::setText() does not alter the model value. I am taking your word for that. That would emit QLineEdit::textChanged() signal. But there are also textEdited() & editingFinished() signals, and those are only emitted when the user interactively changes the text, not via setText(). So at a guess the model update happens on one of those instead. One would have to look at the code. If you wanted to test, you might force those to be emitted (by calling them directly) and see if that did cause the model to change. Other widgets do not have this distinction between programmatic and user interaction signals. For example, QComboBox::currentIndexChanged() is emitted whenever the user or code causes setCurrentIndex() to be called. I imagine that one would cause the model value to be updated if called from code. As a general rule if you want to change a value on a bound widget I would suggest/expect you to do so by altering the model, and letting that reflect back to the widget.
  • QWebEngine in non-main thread of native application

    Unsolved
    6
    0 Votes
    6 Posts
    647 Views
    S
    @SanZ Just confirmed that the problematic behaviour occurs when the whole thing is put to another thread. In my mock application I had everything in main thread, now I changed to HANDLE hThread = CreateThread(0, 0, thread_fn_for_web, 0, 0, 0); this is the same way as I did with my original application, and now the mock application is failing with the same issue. Anybody has any insight? Thanks.
  • QT Dns Over Https / DOH

    Unsolved dns doh dns over https
    2
    0 Votes
    2 Posts
    417 Views
    C
    The relevant classes/functions in Qt hand DNS resolution off to the operating system. If your operating system implements DoH then you have that support, otherwise you do not. As I understand it, Apple's iOS 14 and macOS 11 and Windows 11 have the support.