Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.3k Topics 455.7k Posts
  • Hide Grid Widget

    Unsolved
    2
    0 Votes
    2 Posts
    83 Views
    jsulmJ
    @shreya_agrawal said in Hide Grid Widget: How can I do it? Remove gridWidget from the layout or change its size to 0
  • QSoundEffect device selection

    Unsolved
    2
    0 Votes
    2 Posts
    116 Views
    SGaistS
    Hi, Is this the Qt version that comes with your distribution ? If not, can you try that one ? Did you also check with a more recent version ? 6.9 was released no too long ago.
  • error IMKCFRunLoopWakeUpReliable

    Unsolved
    4
    0 Votes
    4 Posts
    196 Views
    SGaistS
    Did you try to restart your machine once between two runs to check if it still comes up ?
  • Throwing from QFuture::onFailed()

    Unsolved
    8
    0 Votes
    8 Posts
    422 Views
    D
    @Don-Burner said in Throwing from QFuture::onFailed(): I use std::set_terminate, so unhandled exceptions call my terminate handler. EDIT: I thought std::terminate() always called std::abort(). Turns out, it calls the current terminate handler. In short, calling std::terminate() within QFuture::onFailed() works, at least for my purposes. Thanks!
  • MacOS system tray issue

    Unsolved
    7
    0 Votes
    7 Posts
    832 Views
    SGaistS
    Just in case, the systray example from Qt's documentation works as expected on macOS so it I think it would be good to compare the two code bases to see what is being done differently. The MacOSSysTray implementation takes quite a lot of detours to achieve the same outcome as the systray example. So I would suggest to simplify things there.
  • How to detect the mousebuttonpress event in the page view of the tabwidget?

    Unsolved
    3
    0 Votes
    3 Posts
    135 Views
    W
    @jeremy_k I appreciate it. I successfully implemented that feature.
  • Remove default file association

    Unsolved
    6
    0 Votes
    6 Posts
    308 Views
    S
    @Christian-Ehrlicher said in Remove default file association: You can't do this with Qt as it's to OS-specific. You are certainly right about the first part. However, I would claim that this is something (at least up to a certain point) that could actually fall into the realm of Qt. All operating systems have some sort of file type association. Windows and macOS should be pretty straight forward. I am not entirely sure about Linux if this is related to the window manager. There is certainly a certain standard with xdgutils. But, I believe this is mostly for the command line and not used by every window manager. A lot of people would already be covered by supporting Gnome and KDE (maybe another 1 or 2 window managers). What I'm saying is that it is not too crazy to expect this to be part of Qt. QSettings properly stores configuration according to common platform rules (even uses the registry on Windows).
  • Modifying one QTextCursor affects all other QTextCursors for that document

    Unsolved
    4
    0 Votes
    4 Posts
    328 Views
    SGaistS
    @sirspot Hi and welcome to devnet, Please provide a complete minimal compilable example that shows this behavior.
  • Application bundle path

    Unsolved
    9
    0 Votes
    9 Posts
    340 Views
    SGaistS
    Sorry, I've misunderstood your goal. So QCoreApplication::applicationDirPath is the simple way to do it.
  • CacheOverflowException

    Unsolved
    3
    0 Votes
    3 Posts
    118 Views
    J
    Super, thanks!
  • Qt 6.9.0 macOS failed to find "WebEngineWidgets"

    Solved
    4
    0 Votes
    4 Posts
    165 Views
    SGaistS
    Nice ! Don't forget to mark the thread as solved :-)
  • Can not catch XCB_VISIBILITY_NOTIFY event in Qt6

    Unsolved
    3
    0 Votes
    3 Posts
    180 Views
    E
    ok, thanks, your solutions work and I'm able to get the xcb connection. And I'm able to use xcb_change_window_attributes() (with above code using XCB_CW_EVENT_MASK) to turn on/off receiving native events for a Window (for example XCB_FOCUS_IN), but except the XCB_VISIBILITY_NOTIFY event. I just can not receive this event. is it related to something changed in Qt6?
  • Why small boxes appearing in the QTableView?

    Solved
    3
    0 Votes
    3 Posts
    136 Views
    N
    @Christian-Ehrlicher Thank you, Christian, it worked.
  • layout stretch error?

    Solved
    5
    0 Votes
    5 Posts
    289 Views
    C
    @Pl45m4 I want the leftmost and middle layouts to keep the minimum size, and the rightmost to fill all the remaining space. Now I changed it to (1, 4, 10), the display effect is fine, but I think the effect of (0,0,1) is weird.
  • Re-populating a layout's widgets

    Solved
    5
    0 Votes
    5 Posts
    184 Views
    C
    Suggestion duly noted. Since the widget(s) the code was adding and removing was the first QWidget I ever wrote, it definitely needs revisiting.
  • QNetworkAccessManager double request

    Unsolved
    6
    0 Votes
    6 Posts
    622 Views
    piervalliP
    Hi about this topic there are many request, a additional tickets are: https://bugreports.qt.io/browse/QTBUG-67161 https://bugreports.qt.io/browse/QTBUG-134694 In the version of Qt 6.9.1 I found that: 10e546f015e QNetworkAccessManager: don't resend non-idempotent requests Non-idempotent requests are no longer incorrectly re-sent if the connection breaks down while reading the response. Codereview: https://codereview.qt-project.org/c/qt/qtbase/+/633298 After many year is it fixed !!! is time to forgot Curl for rest request? :-)
  • 0 Votes
    10 Posts
    2k Views
    V
    @Christian-Ehrlicher said in QTreeView::sortByColumn(int column, Qt::SortOrder order) Why does this function sort not by numbers but by characters: @Seb-Tur Don't add the values as QString but as numbers. -> QStandardItem::setData(value, Qt::DisplayRole) Yes, thank you. This gets the job done. AI and the above people came up with crazy stuff.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Concept for analyze several XML messages, sometimes incomplete.

    Unsolved
    6
    0 Votes
    6 Posts
    285 Views
    R
    @JonB said in Concept for analyze several XML messages, sometimes incomplete.: What exactly do you mean by this? I send and receive XML messages via socket, which I have to evaluate. There may be 0000 between the messages, other characters that are not necessary for XML. Presumably buffer with 000 The idea is to read <Root> XXXXXX </Root>. It may be that two messages come at once, too fast. How can I solve this? RingBuffer? Do you have a good example of how to solve this?
  • Ubuntu - prevent taskbar icon groupding for child windows

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    N
    If anyone comes across this, you can also achieve this by changing X11's WM_CLIENT_MACHINE property of your widget. Gnome will treat this as a different application. You can also see how gnome matches windows to applications here: https://github.com/GNOME/gnome-shell/blob/main/src/shell-window-tracker.c#L388.