Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 458.3k Posts
  • Reporting inappropriate content on the forums

    Pinned Locked spam
    29
    4 Votes
    29 Posts
    36k Views
    A
    Thank you for the report. I have banned the user, which got rid of the spam posting. Not a loss, as this user did not post any other content on the site. Just deleting this one posting was not possible. Thanks for reporting this.
  • App lags after hibernate Windows11

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • Does Qt (plan to) support Gnome Notifications?

    Unsolved
    9
    1 Votes
    9 Posts
    263 Views
    Axel SpoerlA
    @buhtz Hi Christian, sorry for the delay. Indeed DBus messages would cause bubbles. But I think that's the only way on Gnome for the time being. A last resort would be to put these notifications into a separate toplevel window and raise it each time you want to get attention.
  • QTextDocument and ts_tree_edit

    Unsolved
    6
    0 Votes
    6 Posts
    73 Views
    I
    @eineskamelles said in QTextDocument and ts_tree_edit: Also one last question, are you sure that charsAdded and charsRemoved have to be added to position? Because when I create a QTextCursor on the added position it says that the index is out of range Yes, position + charsAdded is a valid cursor position pointing to immediately after the last character inserted as part of the edit. position + charsRemoved is not a valid position in the modified document, of course. If that doesn't work for you please post an example. @eineskamelles said in QTextDocument and ts_tree_edit: I have measured the time it takes for undo() and redo() methods and together I wouldn't do that. The interaction between the undo stack and the contentsChange signal is problematic, and will break in subtle ways, for example if you use edit blocks. You could do such things in response to the undoCommandAdded signal, but that is probably not helpful for your use case.
  • QtWayland client application flickering

    Unsolved
    2
    0 Votes
    2 Posts
    22 Views
    S
    also i try the same application with weston --backend=drm-backend.so to enable the wayland then run the application in another termial with this command export XDG_RUNTIME_DIR=/run/user/1000 export WAYLAND_DISPLAY=wayland-1 export QT_QPA_PLATFORM=wayland it will work fine.
  • 0 Votes
    3 Posts
    86 Views
    H
    @Geometry Dash Thank you for the feedback 👍 I chose a desktop application because this is a technical/internal project, requiring the use of Qt and deep integration with existing systems (file system, hardware, offline-first). It's not aimed at the general public like a web application, so installation or update friction is not a top priority.
  • 0 Votes
    1 Posts
    25 Views
    No one has replied
  • QWidget: Must construct a QApplication before a QWidget

    Solved
    15
    0 Votes
    15 Posts
    340 Views
    jronaldJ
    @JonB said in QWidget: Must construct a QApplication before a QWidget: If your repo release of Qwt is Qt5 you really aren't going to get anywhere if you are using Qt 6! They may both come from a repo but they are not intended to be used together. Surprised you didn't get a linker error or something. More suprised, it even runs normally serveral days ago, before some updates of Qt6. I've tested qwt-qt6, it works.
  • windowsvista style causes hover animation to 'flicker' or 'jitter'

    Unsolved
    6
    0 Votes
    6 Posts
    457 Views
    SGaistS
    @JetSerge hi and welcome to devnet, Did you check the bug report system to see if something known ? If not, please open a ticket providing a minimal compilable reproducer.
  • Using eventFilter() to do extra stuff?

    Unsolved
    2
    0 Votes
    2 Posts
    49 Views
    SGaistS
    Hi, You description fits the definition from the event filters documentation. One thing to remember: it should be fast. Otherwise you are going to make your application sluggish.
  • Qt5 Map does not work anymore

    Solved
    5
    0 Votes
    5 Posts
    100 Views
    JoeCFDJ
    @Ronel_qtmaster it is a requirement. I can not change it. Thanks for your reply.
  • a simple hello world gui app 13mb is there a way to reduce the size ?

    Unsolved
    10
    0 Votes
    10 Posts
    161 Views
    J
    A tiny Qt GUI app showing 13 MB is normal, Qt brings along a lot of runtime stuff. If you want to shrink it, you need to use a release build and only include the modules you actually use. Static builds can make it even smaller. You won’t get it tiny like a console app, but you can shave off a good bit of that size.
  • Display icons with text on a listwidget uniformly

    Unsolved
    7
    0 Votes
    7 Posts
    4k Views
    J
    if you want your thumbnails to align uniformly while keeping their aspect ratio, one approach is to create a fixed-size background (canvas) for each icon and then draw your scaled image on top of it, so you get a letterboxing effect and all items appear the same size. Additionally, in Qt, setting QListView::setUniformItemSizes(true) on your QListWidget can help enforce consistent item spacing, which works well when arranging items TopToBottom or LeftToRight. For the selection border and padding, make sure your QListWidget::item:selected style has some margin or padding defined so the border doesn’t sit right against the image. Combining these techniques should give you a neat, uniform icon grid with text below............
  • Qt 6 application crashes when using QtCharts ChartView in QML

    Solved
    3
    0 Votes
    3 Posts
    41 Views
    S
    @Ronel_qtmaster Thank you for your guidance. This resolved the issue completely.
  • Running Scanning Animation in Qt Quickwidget 6.9.1

    Unsolved
    5
    0 Votes
    5 Posts
    74 Views
    GrecKoG
    This one is quite simple so it can easily be recreated in raw QML too by animating 2 circles' opacity and size. If you have more animations (by number and/or complexity) this approach won't scale easily, looking into the Qt Lottie module would be preferable indeed (note that it is only available with the Commercial License or the GPL License, not the LGPL one).
  • 0 Votes
    1 Posts
    33 Views
    No one has replied
  • OPC UA Client Security

    Unsolved
    9
    0 Votes
    9 Posts
    209 Views
    D
    @SGaist I have downloaded from the Shining Light Productions link. Thanks again.
  • Segmentation fault in Qt clipboard on Wayland (Qt 6.10.1, PyQt6)

    Unsolved
    2
    0 Votes
    2 Posts
    30 Views
    I
    @Nucleos The backtrace pointing to specific C++ code is not necessarily an indication that the source of the error is there; memory errors can cause impact at a seemingly unrelated location a lot of time after the original error was made (e.g how can Wayland code crash when it is not running) - C++ is just fun like that! That said, I can reproduce your crash though at this form it is not sufficiently minimal to be made into a bug report. Couple of stupid questions: Are you using COSMIC Desktop as your compositor? Do you have an IME enabled (e.g fctix5 or ibus)?
  • How to determine at runtime whether app is running launched by Qt Creator?

    Solved
    12
    0 Votes
    12 Posts
    207 Views
    JonBJ
    @Christian-Ehrlicher I previously suggested to OP above at https://forum.qt.io/post/834564 that they should use either a command-line argument or a new environment variable, both of which can be done explicitly in their Creator when running the program....
  • QComboBox appearing before adding to layout

    Unsolved
    3
    0 Votes
    3 Posts
    46 Views
    JonBJ
    @Bobstar89 There is nothing "unexpected" here. Widgets do not have to be added to a layout to "appear". If they have been added with a parent but no layout they appear (I think) at coordinates (0, 0) of the parent. Either: Do nothing to you code. Just do not comment out layout.addWidget(self.cb_platform). By the time the widget is shown it will have been added to the layout. You have no reason to comment that out to see what it looks like without that line! Or: Call self.cb_platform.hide() to hide it and then later .show() when you want it shown. Or: If you don't like that follow @aha_1980's suggestion, don't pass self to its constructor and allow the later layout.addWidget(self.cb_platform) to set parentage only when you add it to a layout. In general when you are going to add a widget a layout it's "optional" whether to pass its parent explicitly to constructor, I tend not to.