Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • 0 Votes
    4 Posts
    389 Views
    Chris KawaC
    @Sauntor Or, like the documentation I linked suggests, merge all translations into one file using lconvert.
  • What event is Command+W in Qt

    Solved
    2
    0 Votes
    2 Posts
    209 Views
    M
    @CompSciDude said in What event is Command+W in Qt: Does anyone know if Command+W triggers a specific type of event The event is of type QEvent::ShortcutOverride:
  • Qt::SingleShotConnection only

    Solved
    2
    0 Votes
    2 Posts
    811 Views
    Christian EhrlicherC
    @DungeonLords said in Qt::SingleShotConnection only: Does this codes equals? Simply try it out - both are the same because Qt::AutoConnection is 0 as you can see in the documentation.
  • `QTextEdit::moveCursor()` works abnormally when the signal is emitted from websocket

    Solved
    4
    0 Votes
    4 Posts
    333 Views
    S
    @Christian-Ehrlicher I did nothing, but it works fine now😂
  • 0 Votes
    8 Posts
    573 Views
    SGaistS
    Complexity is in the eye of the beholder. Libssh has a chapter about that matter. Note that I have not used it directly.
  • Preventing user interaction with a widget

    Unsolved
    2
    0 Votes
    2 Posts
    404 Views
    SGaistS
    Hi, You can use an event filter however it might be surprising to your users that nothing happens when they try to interact with your widgets. Another solution might be to have a modal dialogue that states there's something going on.
  • Qt 6.7 beta1 Windows11 style and windeployqt

    Unsolved
    7
    0 Votes
    7 Posts
    3k Views
    V
    @Christian-Ehrlicher ah.. Ok. I remember that i had many different styles on Linux. Thank you. Enjoy the holidays.
  • This topic is deleted!

    Unsolved
    4
    0 Votes
    4 Posts
    185 Views
  • 0 Votes
    2 Posts
    206 Views
    D
    I am sorry, I meant to put this in QWebEngine. I found my program's cache and deleted it. I think this helped. QtWebEngine appears to cache in C:\Users\WIN_USER\AppData\Local\PROJECT_NAME Under two folders "cache", and "QtWebEngine"
  • 0 Votes
    13 Posts
    833 Views
    JonBJ
    @arost So it was always working correctly. This is why you should always be prepared to show a minimal example of your code.
  • How to write and read without interrupts using QSerialPort

    Unsolved qserialport
    3
    0 Votes
    3 Posts
    695 Views
    H
    When working with QSerialPort in Qt, you can perform reading and writing operations without using interrupts explicitly. However, it's essential to manage the communication in a way that doesn't block the main thread, especially in a GUI application where blocking operations can freeze the user interface.
  • Can I use QStateMachine to simulate a flow processing? And how?

    Unsolved
    3
    0 Votes
    3 Posts
    297 Views
    S
    @JonB By what I know now, if implement this flow, one should create at least tow mediator component for choice node and join node, and many other intermediate QState for transitions. That's too complicated! 😂 If you do not use state machine, things may go a little simple! But it's still complicate 😂
  • Displaying bool values as "boxes" in a QChart

    Solved
    2
    0 Votes
    2 Posts
    229 Views
    A.A.SEZENA
    QScatterSeries might be what you're looking for. https://doc.qt.io/qt-6/qscatterseries.html
  • Problem with the installation of the Qwt (Qt6 installed from source)

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    L
    Thank you guys for your help. I made it work. Actually I should have execute qmake6 not qmake. At least this worked. So. /home/lparadox/Tools/qt/qt6-install/bin/qmake6 qwt.pro make -j8 After this I was able to make my project using Qwt.
  • XCB event XCB_VISIBILITY_NOTIFY not received

    Unsolved
    18
    0 Votes
    18 Posts
    2k Views
    E
    @Axel-Spoerl My current Linux X Window platform has some Motif Apps running which receive the VisibilityNotify event to make some Window stay_on_top. I'm working on to replace the Motif Apps with Qt. So the VisibilityNotify event is there. So in Qt, all the X Window events should go through XCB to the Apps and there is no need to enable them, right? I'm asking because there is the function xcb_configure_window (xcb_connection_t *, winId(), XCB_CW_EVENT_MASK, XCB_EVENT_MASK_VISIBILITY_CHANGE ) that you can enable the events. I tried the function and it does not help.
  • macro in .rep file

    Unsolved
    8
    0 Votes
    8 Posts
    710 Views
    Chris KawaC
    You can run preprocessor on any file you want at any build stage you want. Just make a custom build step and pass it to the compiler with the right options to only run preprocessor stage. MSVC has a /P option for that. GCC has -E. You can then pass the result to repc.
  • Cmdline application does not quit/exit.

    Unsolved
    26
    0 Votes
    26 Posts
    2k Views
    JonBJ
    @ademmler As per @jsulm. And as already stated, and as in the documentation, since QCoreApplication::exit() does not exit the program but only the event loop your code does not make sense. You must run exec() (as we have said several times) and you must use its return result to determine what code to exit the program with. return 0; will not help. Please try to follow the advice as given.
  • Qt's version mixing.

    Solved
    10
    0 Votes
    10 Posts
    616 Views
    A
    Yes, i confirm, that is a reason. Thanks for quick help
  • 0 Votes
    6 Posts
    2k Views
    C
    If your stored procedure is only going to do an INSERT i.e. no other logic, you could just prepare the INSERT statement once in your code and then bind and execute that statement as required. This code be wrapped into a single function in your C++ code to provide somewhere central your C++ might do other checks/work before the insert. If the stored procedure is going to do more than just the insert perhaps you could explore the options available to triggers in Postgresql to have that extra functionality in the database. A BEFORE INSERT trigger can be useful to do other logic/checks and even abort an insert.
  • Qt5 error using Geant4: This plugin does not support propagateSizeHints()

    Unsolved
    4
    0 Votes
    4 Posts
    9k Views
    S
    @luca29q @Pl45m4 I have tried all that @Pl45m4 tried. One thing works for me. export QT_QPA_PLATFORM=wayland Obviously, install wayland package.