Skip to content
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

General and Desktop

This is where all the desktop OS and general Qt questions belong.
84.1k Topics 460.5k Posts
Qt 6.12 LTS is out! See what's new in the release blog
  • Reporting inappropriate content on the forums

    Pinned Locked spam
    29
    4 Votes
    29 Posts
    57k 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.
  • QFontDialog on macOS 27 isn't modal anymore

    Unsolved
    6
    1 Votes
    6 Posts
    833 Views
    AndyBriceA
    I am using this as a replacement for QFontDialog::getFont(), for now: QFont getFontFromDialog( bool* ok, const QFont& font, QWidget* parent ) { Q_ASSERT( ok ); QFontDialog::FontDialogOptions options; #ifdef Q_OS_MACOS if ( QOperatingSystemVersion::current() >= QOperatingSystemVersion( QOperatingSystemVersion::MacOS, 27 ) ) { // native font dialog does not work with Qt for macOS 27 options |= QFontDialog::DontUseNativeDialog; } #endif QFont f = QFontDialog::getFont( ok, font, parent, QString(), options ); return f; } But I hope we get a fix so that we can use the new macOS 27 native font menu.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • X11 Nvidia black window

    Unsolved
    8
    0 Votes
    8 Posts
    630 Views
    K
    Since the XCB version creates a valid surface while the X11 version returns a null surface, it does sound like the issue could be related to the EGL platform configuration. It would be interesting to see whether the same behavior occurs with a different Nvidia driver version or a minimal Qt example.
  • Qt Framwork add-ons Qt Charts

    Unsolved
    3
    0 Votes
    3 Posts
    204 Views
    Joe von HabsburgJ
    Hi @Jerry39 , you can use QWT
  • How to detect if a QCanBusDevice has been physically disconnected?

    Unsolved
    5
    0 Votes
    5 Posts
    321 Views
    __mk___
    @aha_1980 Thanks for taking care of this! I think a method like deviceState() or deviceType() would be appropriate and offer more flexibility for the different CAN plugins. I wouldn't change QCanBusDevice::state() or busStatus(), they have a different meaning. I have noticed that the Peak USB devices actually fall back to a virtual CAN interface the moment you disconnect the usb device (the virtual interface is called "PCANLight_USB_16" in PCAN-View). This might explain why no errors are reported and the QCanBusDevice remains connected - the virtual interface is still working. This automatic fallback seems to be an intended feature of the peak driver. Ideally there'd be a DeviceType enum with values like Virtual and Physical to represent what kind of device it currently is. But this switching behaviour seems pretty specific to peak devices, so perhaps somebody has an idea for a more general approach. Ideally-ideally this change would also be emitted as a signal :)
  • Same code different GUI?

    Unsolved
    21
    0 Votes
    21 Posts
    2k Views
    MucipM
    @Christian-Ehrlicher , I added below line in main.cpp but nothing changed in Debian 12. QApplication::setStyle(QStyleFactory::create("Fusion")); MainWindow w; Regards, Mucip:)
  • Qt window keyboard captured but not released in X11 with no window manager

    Unsolved
    2
    0 Votes
    2 Posts
    172 Views
    I
    Welcome to the forum! It would useful if you can expand on your use case and motivation for running multiple applications under X11 with no window manager at all, not even twm. A minimal reproducible setup would also be required for it to ever progress. It is quite possible that this is the result of a bug in the xcb platform plugin, but it is also quite an unusual setup (Qt can work on X11 without a WM, but it is more intended for kiosk like setups).
  • Looking for Qt commercial licensing sales contact in China (Application Development)

    Solved
    4
    0 Votes
    4 Posts
    343 Views
    JKSHJ
    You're welcome! @crazy-stone said in Looking for Qt commercial licensing sales contact in China (Application Development): Do you happen to have more direct contact information for the sales representative in China? I don't have direct contact to a specific sales representative, sorry. Did you try to ring the phone number for Shanghai Sales inquiries? +86 21 51748525 Another option, since you have an evaluation license, is to log into https://account.qt.io/s/support-center and create an "Account" or "Sales" request.
  • QWidgetAction for QToolButtons on secondary toolbar

    Solved qwidgetaction qtoolbar gui
    5
    0 Votes
    5 Posts
    362 Views
    SGaistS
    You're welcome ! You have it working the way you want it now ?
  • Problem with QGraphicsView and scrollbars

    Unsolved
    2
    0 Votes
    2 Posts
    204 Views
    SGaistS
    Hi, How are you adjusting the scene and the view ? Do you have a reproducer handy ? Can you consider updating Qt to a more recent and supported version ?
  • VST audio plugin using Qt Creator with QML for the UI

    Unsolved plugins vst
    3
    0 Votes
    3 Posts
    256 Views
    S
    @JoeCFD said in VST audio plugin using Qt Creator with QML for the UI: @Simmania Not sure if VST audio plugin is good or not. Have you tried it? libVLC might be another choice. Check it out. We coded audio/video pipelines with raw gstreamer code and can have more controls over them. A lot of work is needed. FFmpeg is very good as well nowadays. But it could be much simpler with the help of AI tools. I do not understand this answer. My question was about a VST audio plugin. I'm not interested in libVLC which has nothing to do with audio plugins.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    34 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    24 Views
    No one has replied
  • Change the base server url in OpenAPI generated code at runtime

    Unsolved
    3
    0 Votes
    3 Posts
    451 Views
    SGaistS
    @Chubinou hi and welcome to devnet, Do you have a known set of servers or just "anywhere is possible" ?
  • QTabBar-like list of "x-clickable" buttons?

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    Pl45m4P
    @Nathaniel Are you thinking about something like this? [image: 4a8e41cd-0d50-468c-a032-6949ec4d33ff.png] This is used as tags / filters for the forum search function. You can make your own widget or delegate quite easily. I would start with QWidget, and then add a label and a button to it.
  • QDateTime::currentDateTime timezone issue ?

    Solved
    8
    1 Votes
    8 Posts
    655 Views
    JonBJ
    @f222 Glad I could help :) Don't understand the issue in your second paragraph so i will leave that with you. It was a guess about TZ. That is a normal environment variable under Linux (which I use) but not so much under Windows. There it gets complicated: it may depend on the compiler code you use (MinGW vs MSVC). I believe it is also used automatically by the C runtime code you link/dynamically load (DLLs) against. How that in turn relates to C++ runtime code I don't know. And I suspect Windows calls do not use it, only C/C++; and then I don't know which Qt calls' implementations use C/C++ functions versus Windows-SDK ones, and maybe a mixture (e.g. your time calculation calls use the C/C++ TZ variable but your name-of-timezone uses a Windows call?). And for all I know Qt's internal code may have changed in that area between your old-working Qt5 and new-non-working Qt6. It's all perhaps a minefield, suck it and see :)
  • 0 Votes
    9 Posts
    10k Views
    J
    Too late to edit my previous message. Forget about point (2); it has nothing to do with point (1).