Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • QTableView placing widgets inside cells

    Unsolved
    3
    0 Votes
    3 Posts
    576 Views
    JoeCFDJ
    maybe try to create a qwidget with hboxlayout. Then add combox and line edit to it. table_view->setIndexWidget( index, qwidget);
  • How to enable multisampling Anti-Aliasing with QOpenGLWidget?

    Unsolved
    2
    1 Votes
    2 Posts
    2k Views
    M
    I'd like to give a modest contribution here. I also had an issue with multisampling. I was on Windows 10, using Qt 5.15 with PyQt5, and my graphics driver was Intel(R) UHD Graphics 630. There were two things I did to fix it - creating a default QSurfaceFormat BEFORE creating QApplication and asking for an OpenGL version higher than 3.3 with a compatibility profile. Apparently, asking OpenGL 3.3 version with a compatible profile didn't have multisampling. As soon as I asked for 4.0 compatibility or higher, it worked. Don't know if some other version + profile might have a similar issue. One more thing I've observed was that QtGui.QSurfaceFormat.defaultFormat().samples() and QtOpenGLWidget.format().samples() would return 0, no matter what was set before. I'm not sure now, but I think it was 0 as soon as the widget was shown. Before you show it, it did say the right number of samples. I hope I've maybe helped somebody and didn't confuse anybody.
  • PBT_APMRESUMEAUTOMATIC not received in the nativeEventFilter in QT

    Unsolved
    3
    0 Votes
    3 Posts
    431 Views
    S
    @Christian-Ehrlicher As per the post "In Windows 10, version 1507 systems or later, if the system is resuming from sleep only to immediately enter hibernation, this event is not delivered. A WM_POWERBROADCAST message is not sent in this case." But my system is not going into Hibernation after sleep. I will try on another system and check. Thanks for the reply!
  • AI plug-in for building documentation ?

    Unsolved
    4
    0 Votes
    4 Posts
    315 Views
    Christian EhrlicherC
    @AnneRanch said in AI plug-in for building documentation ?: Sounds simple for AI to do.... So ffel free to provide an implementation for it, I would guess it would be useful for some.
  • Qt 6.4 Application Works Run From QtCreator but not Standalone (OpenSSL Issue)

    Unsolved
    3
    0 Votes
    3 Posts
    651 Views
    JKSHJ
    @aarelovich said in Qt 6.4 Application Works Run From QtCreator but not Standalone (OpenSSL Issue): qt.tlsbackend.ossl: Failed to load libssl/libcrypto. However it does work fine. I have tested. Well, it failed to load the OpenSSL backend. So it probably loaded the Schannel backend instead. qt.network.ssl: No functional TLS backend Did it deploy tls/qschannelbackend.dll? (or tls/qschannelbackendd.dll if you're using Debug mode) Anyway, to see what DLLs are being used, run your app in Qt Creator without windeployqt first. While it is running, use Process Explorer or ListDLLs to inspect your app.
  • what is benefits of using qRegisterMetaType ?

    Solved
    3
    0 Votes
    3 Posts
    445 Views
    Q
    @Pl45m4 Thanks
  • CSS and QTabWidget tab border

    Unsolved
    2
    0 Votes
    2 Posts
    502 Views
    Pl45m4P
    @Dragoon said in CSS and QTabWidget tab border: What's the attribute to manage this border? Looks like border-color or border / border-bottom from QTabBar::tab and QTabBar::tab:selected. Setting them to none or to your background color might work. Here's an overview over some configurations https://doc.qt.io/qt-6/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
  • Modbus Master RTU in thread

    Unsolved
    1
    0 Votes
    1 Posts
    181 Views
    No one has replied
  • 0 Votes
    3 Posts
    777 Views
    S
    Well, Qt does not provide these capabilities. This means that you cannot easily use stylesheets for this purpose. However, there might be OS-specific ways to change the color of the title bar. On Windows (10 and later) you can use DwmSetWindowAttribute to enable dark mode for the title bar. Another way is to get a window without decoration/borders from the OS and then draw the entire title bar yourself using Qt. Then, you can also style the title bar using stylesheets. It might get a little complicated to draw the close and minimize buttons in the correct OS style yourself.
  • Gstreamer RTSP stream latency

    Solved
    5
    0 Votes
    5 Posts
    6k Views
    A
    @JoeCFD Thanks you, this one solved my problem. In case anyone have a similar problem this is how my code looks now: m_mediaPlayer->setMedia(QUrl("gst-pipeline:rtspsrc location=rtsp://10.90.8.175:554/stream0 latency=10 ! rtph265depay ! h265parse ! avdec_h265 ! videoconvert ! autovideosink"));
  • QTableWidget border of cells range

    Unsolved
    1
    0 Votes
    1 Posts
    140 Views
    No one has replied
  • 0 Votes
    3 Posts
    864 Views
    A
    @dynobo Starting a reply with " I am in same boat" is a cliche and it does not help (you) . I have half a dozen "objects" passing messages - both directions and using "emit" and "connect". I am using GUI / tab to keep track and of course QDebug. It is not ideal .... I was going to add old fashioned flowchart ( text or GUI ) , but got sidetracked....
  • 0 Votes
    11 Posts
    20k Views
    D
    @Buckwheat How do you avoid panning and transform ( Zoom ) for those site scale and compass rose ? Found the solution: Use painter.resetTransform().
  • When I want to open new connection for SQLite I faced with strange problem!!

    Solved
    7
    0 Votes
    7 Posts
    757 Views
    stackprogramerS
    @m-hosseini Thanks very much. my problem is solved.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • libclang debug libs are missing

    Solved
    2
    0 Votes
    2 Posts
    338 Views
    Cobra91151C
    Hello! I have built LLVM and Clang successfully. Here are my instructions: Download llvm-project-llvmorg-15.0.6.zip from https://github.com/llvm/llvm-project Use this command to build LLVM and Clang: cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE="Debug" -DLLVM_USE_CRT_DEBUG=MDd -DLLVM_ENABLE_PROJECTS="clang" -DLIBCLANG_BUILD_STATIC=ON -DCMAKE_INSTALL_PREFIX="C:\\LLVM\\msvc2019\\x64\\debug" -S C:\\llvm-project-llvmorg-15.0.6\\llvm cd build cmake --build . cmake --install . The same will work for Release type as well just change the -DCMAKE_BUILD_TYPE="Debug" and -DLLVM_USE_CRT_DEBUG=MDd to -DCMAKE_BUILD_TYPE="Release" and -DLLVM_USE_CRT_DEBUG=MD. The issue is resolved. Thank you.
  • How to create Qt widgets inside existing native window?

    Unsolved
    6
    0 Votes
    6 Posts
    790 Views
    J
    @JonB So it seems the only way is to firstly add the widget to desktop, then manage its native handle to be transient for the parent window from the host.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Margins for QMenu secondary menus

    Unsolved
    3
    0 Votes
    3 Posts
    236 Views
    N
    @Pl45m4 Hi, first of all thank you for taking your time to answer my doubts! The secondary menu pointed out above is a MainMenu added using MainMenu->addMenu method as a first-level menu, QMenu::exec(position) does not seem to control the pop-up position of the secondary menu, and how to get position? The scenario of this menu occurs on the click event of the taskbar tray icon, and the menu is displayed only when the taskbar tray icon is clicked. But how do you get the click position of the tray icon?