Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.2k Topics 455.5k Posts
  • 3 Votes
    29 Posts
    32k Views
    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.
  • Q_PROPRERTY in a class failed when moc is running.

    Unsolved about 9 hours ago
    0 Votes
    3 Posts
    30 Views
    Hi, One thing I could see is that setMyText is not placed under a slot directive.
  • Delete directory unsing QFile::moveToTrash()

    Unsolved 2 days ago
    0 Votes
    4 Posts
    84 Views
    That's not the problem, I can move to trash "D:\test1\test2\test3" but not "D:\test1" Subdirectory problem of QFileSystemModel ?
  • 0 Votes
    9 Posts
    490 Views
    Please format your code!
  • QT 5.15.5 not working on i.MX93 platform

    Unsolved a day ago
    0 Votes
    3 Posts
    50 Views
    this error we are facing for qt 5.6.3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Using Wayland-EGL MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER) libEGL warning: egl: failed to create dri2 screen Program received signal SIGSEGV, Segmentation fault. 0x0000fffff607b474 in QtWaylandClient::QWaylandIntegration::initializeShellIntegration() () from /usr/lib/libQt5WaylandClient.so.5 (gdb) bt #0 0x0000fffff607b474 in QtWaylandClient::QWaylandIntegration::initializeShellIntegration() () from /usr/lib/libQt5WaylandClient.so.5 #1 0x0000fffff607bb58 in QtWaylandClient::QWaylandIntegration::shellIntegration() const () from /usr/lib/libQt5WaylandClient.so.5 #2 0x0000fffff60871a4 in QtWaylandClient::QWaylandDisplay::createShellSurface(QtWaylandClient::QWaylandWindow*) () from /usr/lib/libQt5WaylandClient.so.5 #3 0x0000fffff608db28 in QtWaylandClient::QWaylandWindow::initWindow() () from /usr/lib/libQt5WaylandClient.so.5 #4 0x0000fffff621a6b4 in ?? () from /usr/lib/qt5/plugins/platforms/libqwayland-egl.so #5 0x0000fffff6218878 in ?? () from /usr/lib/qt5/plugins/platforms/libqwayland-egl.so #6 0x0000fffff6079cb4 in QtWaylandClient::QWaylandIntegration::createPlatformWindow(QWindow*) const () from /usr/lib/libQt5WaylandClient.so.5 #7 0x0000fffff7480650 in QWindowPrivate::create (this=0xaaaaaab0fff0, recursive=recursive@entry=false) at /usr/src/debug/qtbase/5.6.3+git/src/gui/kernel/qwindow.cpp:397 #8 0x0000fffff7480990 in QWindow::create (this=this@entry=0xaaaaaaafd9e0) at /usr/src/debug/qtbase/5.6.3+git/src/gui/kernel/qwindow.cpp:557 #9 0x0000fffff7a89ec4 in QWidgetPrivate::create_sys (this=this@entry=0xaaaaaab00850, window=window@entry=0, initializeWindow=initializeWindow@entry=true, destroyOldWindow=destroyOldWindow@entry=true) at /usr/src/debug/qtbase/5.6.3+git/src/widgets/kernel/qwidget.cpp:1471 #10 0x0000fffff7a8a508 in QWidget::create (this=0xfffffffff8c8, window=0, initializeWindow=true, destroyOldWindow=true) at /usr/src/debug/qtbase/5.6.3+git/src/widgets/kernel/qwidget.cpp:1334 #11 0x0000fffff7a96a88 in QWidget::setVisible (this=0xfffffffff8c8, visible=<optimized out>) at /usr/src/debug/qtbase/5.6.3+git/src/widgets/kernel/qwidget.cpp:8136 #12 0x0000aaaaaaaa2c24 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/qtbase/5.6.3+git/examples/widgets/widgets/analogclock/main.cpp:49
  • 0 Votes
    3 Posts
    636 Views
    yes, you are right. I am sure Rmdir operation cannot remove non-empty folder. I met the same issue
  • Qt and Apple 'Glass' UI in macOS 26

    Unsolved about 17 hours ago
    0 Votes
    1 Posts
    39 Views
    No one has replied
  • This topic is deleted!

    Unsolved a day ago
    0 Votes
    7 Posts
    92 Views
  • Problems with stacked Progress Dialogs

    Unsolved 4 days ago
    0 Votes
    12 Posts
    298 Views
    @SimonSchroeder Waw, this is realy helpfull (and not just a squeam in horror ;-), thank ypu! I will have a close look into your library and rework the whole lot in this way. Will take some time, but I'll give you feedback when it's done.
  • This topic is deleted!

    Unsolved about 18 hours ago
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • QT5.6.3 Example not running on IMX93

    Unsolved a day ago
    0 Votes
    5 Posts
    79 Views
    Hi @JoeCFD , our application supports Qt 5.6.3. Since we are not modifying the application layer, we are continuing to use version 5.6.3.
  • Collect a simple still image from USB camera

    Unsolved a day ago
    0 Votes
    2 Posts
    38 Views
    Refer to these classes for <QCamera>、<QCameraViewfinder>、<QCameraImageCapture>, which should solve your problem
  • 0 Votes
    9 Posts
    244 Views
    My Qt 5.15.2 and 5.15.13 instances perform the same way as the Qt 6 version above. Still could be a 5.15 vs. 5.9 difference. Could it be that Qt VS Tools is not passing the include path to moc?
  • Initial translation language with QTranslator

    Unsolved qtranslator 17 days ago
    0 Votes
    9 Posts
    454 Views
    Not sure why I am having so many problems in something which looks very straightforward. Nothing really seems to work. [image: b0f3e8c1-3c1d-40c6-9ad7-168ea335d4db.png] The only time that I have been successful in the User Interface displaying a non-default translation language was with QLocale::setDefault. I believe that I am just going to go and try with this approach. My overall language detection logic in main.cpp is going to be something like: 0. Check if user has already explicitly set an application language If that is the case, skip to step 3 This information is going to be stored in an external configuration file outside the application. 1. Detect user's default locale with QLocale::QLocale() 2. Check if user's default locale has an available translation in the application If they do not, either do nothing else, or explicitly change the current locale to match with the default translation language (for the sake of readability) I need to think exactly how I am going to match the results but QLocale has both QLocale::language() and QLocale::name() and that should be more than enough. 3. Change default locale to expected locale using QLocale::setDefault I am not planning in adding my languages to my application. So, I am not really worried about having a big switch statement.
  • Cache locality and QString

    Unsolved a day ago
    0 Votes
    1 Posts
    38 Views
    No one has replied
  • Hide Grid Widget

    Unsolved 2 days ago
    0 Votes
    2 Posts
    53 Views
    @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 7 days ago
    0 Votes
    2 Posts
    90 Views
    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 days ago
    0 Votes
    4 Posts
    125 Views
    Did you try to restart your machine once between two runs to check if it still comes up ?
  • Throwing from QFuture::onFailed()

    Unsolved 8 days ago
    0 Votes
    8 Posts
    318 Views
    @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 1 Jun 2024, 10:10
    0 Votes
    7 Posts
    768 Views
    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.