Skip to content

General and Desktop

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

    Pinned Locked spam
    29
    3 Votes
    29 Posts
    32k 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.
  • In Qt6.9.1 and windows 11, QtableWidget check box is not updating in UI

    Unsolved
    4
    0 Votes
    4 Posts
    30 Views
    Q
    @SGaist we are using QT6.9.1 @jsulm we are not blocking the UI thread after calling setCheckState
  • 0 Votes
    3 Posts
    17 Views
    hskoglundH
    Sorry, forgot you also need to insert these #includes at the top of mainwindow.cpp, after #include "./ui_mainwindow.h" : #include "qtimer.h" #include "windows.h" #include "qthread.h" #include "QKeyEvent" #include "qdebug.h"
  • Cache locality and QString

    Unsolved
    11
    0 Votes
    11 Posts
    214 Views
    Kent-DorfmanK
    So essentially a two-dimensional dynamically sized array of strings? Were I in your shoes, and having known the relatively short, but maximum allowable, length of the strings then I would opt for a vector of fixed sized char[] entries. That way you ARE allowing for cache hits on row-major adjacent columns of data. The second you go for a dynamically allocated string resource you throw away any guarantees of cache availability of adjacent cells.
  • Qt Print PDF on macOS?

    Unsolved
    1
    0 Votes
    1 Posts
    17 Views
    No one has replied
  • QLocale::toString() bug

    Unsolved
    7
    0 Votes
    7 Posts
    48 Views
    AndyBriceA
    I don't understand how the same bit of code can be returning different answers inside and outside a loop. It doesn't make any sense.
  • Segmentation fault when exiting when linked against Qt 6.9.1

    Unsolved
    19
    0 Votes
    19 Posts
    171 Views
    l3u_L
    Thanks :-)
  • Qt App Preferences Being Restored From A Cached Copy? (QSettings)

    Unsolved
    6
    0 Votes
    6 Posts
    229 Views
    S
    Hi -- thank you for the thought, sorry about the delay. I'm honestly not sure how that relates? I've tried to use defaults to see if I can find cached versions of the Preferences, but I haven't seen anything other than the usual -- for the user of an app, their preferences for that app are stored in ~/Library/Preferences/<AppID>.plist, and there are cached "binaries" in ~/Library/Caches/<Company>/<AppName>/qmlcache (qmlc files, which according to some docs suggests its for live state?). As the preferences I'm restoring are from [Q]Settings in a QML file, do you think they could be coming from a qmlc[ache] from a previous run? Asked another way, would QML look there in the absence of an OS-supplied preferences (which would have to behave similarly in e.g. Windows/Registry editing). FWIW there are a very large number of qmlc files in ~/Library/.../qmlcache. Cheers!
  • Crash during using QWebKit

    Unsolved
    8
    0 Votes
    8 Posts
    114 Views
    SGaistS
    So, unless I am mistaken, you are building QtWebKit yourself. Correct ? One thing you can do is to start from an empty html file and add content gradually until it fails to find the culprit. If nothing comes out then start adding the CSS stuff back and again piece by piece.
  • QT 5.15.5 not working on i.MX93 platform

    Unsolved
    6
    0 Votes
    6 Posts
    184 Views
    Axel SpoerlA
    Qt 5.6 is even more outdated than Qt 5.15. Please try a newer version of Qt!
  • Need help making windows-style taskbar for Linux using QT6

    Unsolved
    3
    0 Votes
    3 Posts
    80 Views
    B
    @SGaist Thanks, i'll check it out!
  • QWidget QMouseEvent position() reporting relative to centralWidget

    Solved
    5
    0 Votes
    5 Posts
    106 Views
    Pl45m4P
    @dabble53 Simple: Your point is in parent coordinates. And parent is the centralWidget to which your widget is located at 40,40... exactly the values to pass to it. So how do you print these numbers?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Delete directory unsing QFile::moveToTrash()

    Unsolved
    8
    0 Votes
    8 Posts
    255 Views
    SGaistS
    QFileSystemModel loads its content asynchronously so at some point it likely has file handles opened to do its work which could explain what you are experiencing.
  • Custom Linear QPushButton to Fit the Size of Its Parent

    Solved button custom widget size
    3
    0 Votes
    3 Posts
    78 Views
    Grit ClefG
    Thanks. Now I think I manage to do that.
  • Q_PROPERTY in a class failed when moc is running.

    Solved
    6
    0 Votes
    6 Posts
    148 Views
    B
    Hello All, It was my environment which is creating the miss behavior of moc. My building tools were pointing to the wrong version of VSVC (MSVC 2019). I corrected this, and all worked fine. "My Culpa" Sincerely.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • 0 Votes
    10 Posts
    392 Views
    L
    My project path contains non-ASCII characters, which might cause this macro not to work.
  • 0 Votes
    2 Posts
    100 Views
    N
    I solved the problem for my machine. I did change 2 things at the same time: The one that I think solved it was disabling the llvm use flag for mesa. I also enabled the z3 flag (as it was also mentoined here) for llvm. Maybe if I have time I'll see which one causes the bug, but for now it works and the long queue of print jobs that need printing can finally be done! Gentoo Linux users have a solution how to tackle this and if newer versions of Ubuntu or other Linux distro's have this issue, then at least there is some information for a solution.
  • Deploying on linux, executable cannot find shared library at runtime?

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    @osirisgothra hi, I would say that modifying ld.so.conf.d to point to a non system Qt is the wrong way to do that. Either you have your distribution provided Qt that is installed or you use a wrapper script that will modify LD_LIBRARY_PATH for your application to find the dependencies you provide along said application.