Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Http PUT request problem: Qt5 vs Qt6

    Unsolved
    4
    0 Votes
    4 Posts
    328 Views
    J
    This "bug fix" reads a lot to me as though it's the source of my problem... Ugh. https://codereview.qt-project.org/c/qt/qtbase/+/314377
  • Fail to build Qt 5.15.3

    Unsolved
    3
    0 Votes
    3 Posts
    900 Views
    M
    @Christian-Ehrlicher Thank you very much for the help and sorry for the identical post.
  • Qt Widgets + GStreamer + Overlay + Screen Capture

    Unsolved c++ widgets gstreamer video overlay screenshot
    15
    0 Votes
    15 Posts
    4k Views
    JoeCFDJ
    @SeeRich can you change setAttribute(Qt::WA_StyledBackground); setObjectName( "mainWindow" ); setStyleSheet( QString( "MainWindow#%1 { background-color: blue; }" ) .arg( objectName() ); to setAttribute(Qt::WA_StyledBackground); setObjectName( "mainWindow" ); setStyleSheet( QString( "QWidget#%1 { background-color: blue; }" ) .arg( objectName() ); there is no MainWindow stylesheet. It should be QMainWindow.
  • How do I create emissive materials Qt3D? (C++)

    Unsolved
    1
    0 Votes
    1 Posts
    158 Views
    No one has replied
  • building for macOS-arm64 but attempting to link with file built for macOS-x86_64

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    @paulmasri which version of Qt 5 are you using ?
  • Static build of Qt 5.15.8 with static OpenSSL

    Unsolved configure buildsystem openssl static build qt
    10
    0 Votes
    10 Posts
    3k Views
    SGaistS
    @quutee sounds like it's a bug. You should check the bug report system to see if there's something related.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • mapFromGlobal() and multiple monitors

    Solved mapfromglobal multiple dpi multiple displa multi-screen
    3
    0 Votes
    3 Posts
    1k Views
    bibasmallB
    @SGaist, Qt 6.3.2, Windows 10. I found that winapi coordinates I got eventually turned out to be different from QCursor::pos() when talking about switching between different scales. So I decided to use QCursor::pos() instead, and it helped: QPoint globalCursorPos = QCursor::pos(); auto menuGeom = ui.qMenuBarMain->geometry().translated(ui.qMenuBarMain->mapToGlobal(QPoint(0, 0))); if (menuGeom.contains(globalCursorPos)) //some work
  • Starting with QT - source and header files

    Unsolved
    4
    0 Votes
    4 Posts
    492 Views
    Pl45m4P
    @Anna-Honorey Hi and welcome, this is indeed very basic C++. You should learn that first (or while learning Qt) otherwise you will have a hard time learning and understanding Qt C++. Header and source files are there because of multiple things. It helps to organize your code and separates your implementation of classes and function from their declaration. As you might have seen, this is just a "standard". You might come across short programs, which only have a main.cpp, where everything is declared and used. The main.cpp is the main entry point for your C++ program. How are they connected? You #include <test.h> your header in your test.cpp to use the function declared there. This article may help https://cplusplus.com/articles/Gw6AC542/
  • Problem with ApplicationWindow

    Unsolved
    5
    0 Votes
    5 Posts
    478 Views
    JoeCFDJ
    @MScottM Mixing QML and C++ is ok and you have to do that. But it is different from mixing two main windows of QML and QWidget. QWidgets != C++. I would recommend you to use QWidgets or QML only, better not both.
  • QProxyStyle, drawControl , CE_PushButton , extra styles

    Solved
    1
    0 Votes
    1 Posts
    335 Views
    No one has replied
  • Qt App (sdk 5.15.x) Mac Ventura (13.2) keeps crashing

    Unsolved
    1
    0 Votes
    1 Posts
    253 Views
    No one has replied
  • Subclass of QTcpSocket not working properly under Linux

    Unsolved
    5
    0 Votes
    5 Posts
    337 Views
    Z
    @JonB Thanks for your reply, I solved the problem according to your description
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • How to Draw the Wave form by using QPaintedItem.

    Unsolved
    1
    0 Votes
    1 Posts
    128 Views
    No one has replied
  • Problem with QT Creator

    Unsolved
    1
    0 Votes
    1 Posts
    196 Views
    No one has replied
  • scrollArea should stick to bottom

    Moved Unsolved
    2
    0 Votes
    2 Posts
    192 Views
    jsulmJ
    @azhagan2 https://doc.qt.io/qt-6/qabstractslider.html#value-prop https://doc.qt.io/qt-6/qabstractslider.html#maximum-prop
  • QNetworkReply readyRead is not called, memory filling to max until crash

    Solved
    37
    0 Votes
    37 Posts
    10k Views
    JoeCFDJ
    @robsparrow has the buffer size to be 1024? Have you tried any other numbers for comparison?
  • Unreal Engine with PyQt5

    Unsolved pyqt5 3drender python
    2
    0 Votes
    2 Posts
    1k Views
    Chris KawaC
    @Pythonic-person Unreal Engine allows you to build it as a library and embed into another app, provided that you can drive it. It needs native window messages and I'm not versed enough in python to give you specifics, but it sounds doable. Make sure to read through the UE EULA though, to be sure that whatever you plan to do is legally allowed by Epic. Just as a comment though. You chose a very slow language (python) to do very expensive task (3D), bind it to a C++ library (pyqt), which adds overhead, interoperate it with external app that has no direct python API, and then drive it with native OS messages in a language that is not directly supported by that platform. In short you chose to do it the hardest and slowest possible way before you even started. It's your decision of course, but I would seriously reconsider.
  • Modifying QFirstPersonCameraController (keybinds)

    Unsolved
    1
    0 Votes
    1 Posts
    216 Views
    No one has replied