Skip to content

Qt Development

Everything development. From desktop and mobile to cloud. Games, tools, 3rd party libraries. Everything.
144.0k Topics 721.7k Posts

Subcategories


  • This is where all the desktop OS and general Qt questions belong.
    84k 459k
    84k Topics
    459k Posts
    O
    I have small system tray application like this: TrayApp::TrayApp(QObject *parent) : QObject(parent) { m_trayIcon = new QSystemTrayIcon(this); m_trayMenu = new QMenu(); m_subMenu = new QMenu("Submenu", m_trayMenu); connect(m_trayMenu, &QMenu::aboutToShow, this, &TrayApp::rebuildTrayMenu); m_trayIcon->setContextMenu(m_trayMenu); m_trayIcon->show(); } void TrayApp::rebuildTrayMenu() { m_trayMenu->clear(); m_subMenu->addAction("Action_1"); m_subMenu->addAction("Action_2"); m_trayMenu->addMenu(m_subMenu); m_trayMenu->addSeparator(); m_trayMenu->addAction(tr("Exit"), this, &TrayApp::onExitTriggered); } When I open subMenu for the first time (from the moment of launch until opening subMenu, no menu elements were activated) the entire menu disappears. I tried Python - same result. Qt 6.10.2, macOS 26.3
  • Looking for The Bling Thing(tm)? Post here!
    20k 78k
    20k Topics
    78k Posts
    SGaistS
    Hi and welcome to devnet, Did you already took a look at the QQuickWidget - QQuickView Comparison Example ? It shows a usage example of this class. Hope it helps
  • The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
    14k 63k
    14k Topics
    63k Posts
    J.HilkJ
    Argument injection is no longer supported and my be the problem here use a lambda : this code works fine in my apps What version of Qt and android are you targeting/using? onClosing:(close)=> { //Management for Android Back-Button if(Qt.platform.os === "android"){ close.accepted = false } else { close.accepted = true } }
  • This is a discussion space for

    • for audio / video playback and recording
    • media formats and codecs
    • camera and screen sharing functionality
    51 222
    51 Topics
    222 Posts
    V
    I have been having this same issue with my Bluetooth headset not being detected
  • Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
    8k 36k
    8k Topics
    36k Posts
    N
    Thanks I did as you suggest, but initially got the same result. What finally worked, and I missed before is to use the File/Open File or Project. I must have used File/Open Workspace before, thinking that since it was an old project full of source file that would do the trick. Using File/Open File or Project and picking the CMakeLists.txt file clearly ran a bunch more steps to get things going.
  • Your Qt just doesn't want to build? Your compiler can't find the libs? Here's where you find comfort and understanding. And help.
    10k 51k
    10k Topics
    51k Posts
    M
    Bumping this thread as well because I've encountered the same issue and haven't found a solution so far.
  • What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
    875 4k
    875 Topics
    4k Posts
    K
    btw, the System has Intel HD Graphics Drivers: igdumd64.dll and igd10umd64.dll
  • Discussions and questions on QtWebEngine
    1k 4k
    1k Topics
    4k Posts
    D
    I have the same problem in FC42. QtWebEngine seems to be a complete disaster. Tried to compile 6.8.2 for FC42 but it failed after many hours of compiling.
  • You're using Qt with other languages than C++, eh? Post here!
    869 3k
    869 Topics
    3k Posts
    PedromixP
    [image: bdbda216-f9b8-469f-b90d-0e6b273560de.png] New version QtJambi 6.10.2 is available now πŸŽ‰. For all who want to create smart UIsπŸš€ in Java or Kotlin based upon the latest Qt release. https://www.qtjambi.io/
  • For discussion and questions about Qt for Python (PySide & Shiboken)

    3k 15k
    3k Topics
    15k Posts
    SGaistS
    Hi, From the top of my head: opening widgets upon opening widgets within a constructor is usually bad design. Even more when the window variable is local to the function. I would recommend properly building your widgets and only after that start your business logic and have proper functions that will create and further show these widgets.
  • Specific issues when using Qt for WebAssembly

    464 2k
    464 Topics
    2k Posts
    F
    The aboutToBlock signal is not launch in wasm because the thread is always running, but the line : QCoreApplication::sendPostedEvents(nullptr, QEvent::DeferredDelete); Indeed call the delete from the deleteLater() Thank you for the help
  • Discussions and questions about Qt Quick Ultralite and using Qt on microcontrollers in general

    155 474
    155 Topics
    474 Posts
    T
    Does Qt for mcu's support STM32L4R7VITx? when looking at the components to install i cannot see an option for STM32L4 but it appears on the table on this reference page https://doc.qt.io/archives/QtForMCUs-2.5/qtul-supported-platforms.html
  • Combining Qt with 3rd party libraries or components? Ask here!
    1k 6k
    1k Topics
    6k Posts
    B
    What is the recommended way to create custom scale labels for QKnob? What I am trying to achieve is something like this: 1 0.5 0.2 0.1 50 20 10 5 2 1 0.5 etc. I gather I need to overload QwtRoundScaleDraw and QwtRoundScaleDraw::label() but I am sure where to define the custom scale.
  • The forum for discussing the Qt Digital Advertising Platform

    16 39
    16 Topics
    39 Posts
    E
    @nayka Can I use QtDigitalAdvertising on PC applications? Or is it only allowed for use on Android or iOS mobile devices?
  • For discussion and questions about Qt Insight

    11 20
    11 Topics
    20 Posts
    jsulmJ
    @Alejandro_qt_ Here is an example how to build qtbase module: https://stackoverflow.com/questions/50022325/building-qt-module-from-source