Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 456.9k Posts
  • Reporting inappropriate content on the forums

    Pinned Locked spam
    29
    3 Votes
    29 Posts
    34k 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.
  • 0 Votes
    5 Posts
    747 Views
    K
    @IgKh Thank you for your feedback. I followed the instructions from the README that comes with the source package, but after building, I still cannot get any style or image plugins loaded (also, I specifically want a debug build). The official Qt documentation also does not provide a clear description of how to specify configuration options in detail. I did try to consult an AI assistant, but as you guessed, it did not really understand Qt’s build system. The options I used: -feature-imageformat_png, -feature-imageformatplugin, -submodules qtimageformats were based on the output of ./configure -list-features and ./configure --help, not AI. However, these flags also don’t seem to work as expected. So my question is: 👉 Could you please provide me with a typical example configure (or cmake) command for building Qt Core + Gui + Widgets (with debug mode) on macOS? That would help me a lot to get started in the right direction.
  • QLineEdit does not clear its `text()` after the clear button is clicked

    Unsolved
    10
    0 Votes
    10 Posts
    636 Views
    JonBJ
    @IgKh said in QLineEdit does not clear its `text()` after the clear button is clicked: Few notes on that - the first is that it won't work that way. QObject::sender() isn't magic, and has no way of knowing that you called it from a function that is not directly the slot. The second is that you never know who the actual sending object is, and can't assume that it is the QLineEdit directly (and not a sub-object of it, or something else entirely). @Robert-Hairgrove said in QLineEdit does not clear its `text()` after the clear button is clicked: Another idea would be to check the value returned by sender() in the handleEditingFinished() slot. If it is empty, or not from the QLineEdit widget, then it must be from calling it directly from the other slot. Set the connect() on editingFinished to call a lambda, passing on ui->edtInput explicitly to your slot rather than trying to use sender().
  • How to refuse that user select item by Mouse drag?

    Solved
    5
    0 Votes
    5 Posts
    186 Views
    S
    I guess you need to set the selection mode: https://doc.qt.io/qt-6/qabstractitemview.html#SelectionMode-enum Pick one that works for you.
  • Why Does Minimization Immediately after Show and Activation Cause Non-Minimization?

    Unsolved
    7
    1 Votes
    7 Posts
    2k Views
    Kent-DorfmanK
    @johnzhou721 said in Why Does Minimization Immediately after Show and Activation Cause Non-Minimization?: @Kent-Dorfman Alright, just learnt that X11 keeps its separate state. Is there a signal that signifies "finishes activating"? Not that I'm aware of, at least in any reliable way. There are introspection programs that can display information about a window, provided you know the windows handle id, but original X11 wasn't really designed with the feaure you seek in mind. However, certain desktop environment projects have invented complicated mousetraps to address some of these issues...ie dbus comms between apps. I won't mention the project itself by name because I'm an outspoken critic of it. LOL
  • QtWebEngineWidgets not showing checkboxes properly

    Unsolved
    10
    0 Votes
    10 Posts
    1k Views
    T
    Cross compilation from Linux of any sort -- even using wine-msvc -- is not supported for QtWebEngine. You have to natively compile on Windows using MS Visual Studio toolset.
  • Delayed Window State Read after Hide Gives Wrong Results Even in X11

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    J
    @Kent-Dorfman Nice to know! Sorry, just trying to get a bunch of random commands together to see if this is actually a series of bugs in Qt or my operational error. I will try your suggestion though. @JonB interesting insight. thanks.
  • prevent cursor from redrawing

    Unsolved
    5
    0 Votes
    5 Posts
    585 Views
    A
    OK, THIS IS INCREDIBLY FRUSTRATING! I tried to post just the contents of the header file between code tags. It contains three small class declarations, about 30 lines of code. I hit the submit button and immediately received a message that I had to wait 600 seconds. After patiently waiting for 10 minutes and hitting submit again, aargh ...... "Code content was flagged as spam by Akismet"! So I have no idea how this forum works or if it even does, it seems to me to be pointless having a programming forum that can't even accept the most basic bit of code. `
  • Calling ffmpeg with QProcess: crashes

    Moved Solved
    3
    0 Votes
    3 Posts
    533 Views
    U
    @Christian-Ehrlicher oh, silly me, how I couldn't see it. It worked out. sorry for this thread.
  • QFrame overlay window moving with its parent

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    W
    @hskoglund Thanks, that explains it. I googled a bit, and decided to take the moveEvent() route -- not a big fan of hacky solutions.
  • When was QIODeviceBase introduced?

    Solved
    4
    0 Votes
    4 Posts
    967 Views
    I
    @Robert-Hairgrove The easiest way is through git. The Github mirror at https://github.com/qt/qtbase/ has the entire open source history of Qt 5 and 6 core modules - use the branch selector. The are also all the released source archives of those as well of Qt 4 and Qt 3 releases in the downloads server.
  • RHI and push constants

    Solved
    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi and welcome to devnet, This is a question you should bring to the development mailing list. You'll find there Qt developers/maintainers. This forum is more user oriented. You might also want to check the bug report system as there might already be something there.
  • Unable to save PySide6 documentation

    Unsolved
    11
    0 Votes
    11 Posts
    3k Views
    C
    @SGaist I believe so. Just tried again with this script and got the same result with the messed up paths. I ran a check to make sure all the dependencies exist beforehand as well. :: Prevent the emoji error set "PYTHONUTF8=1" set "LLVM_INSTALL_DIR=C:\libclang" set "LIBX_PATH=C:\vcpkg\installed\x64-windows\bin" set "CMAKE_PREFIX_PATH=C:\libclang\lib\cmake;C:\vcpkg\installed\x64-windows" set "PATH=C:\Python\Python313\;C:\Python\Python313\Scripts;C:\Qt\Tools\CMake_64\bin;C:\Qt\6.9.1\msvc2022_64\bin;C:\libclang\bin;%LIBX_PATH%;C:\Qt\Tools\Ninja;C:\Graphviz\bin;%PATH%" :: Set working/project directory set "PROJECT_DIR=C:\Users\Nicholas\dev\Builder" :: Create project folder if it doesn't exist if not exist "%PROJECT_DIR%" mkdir "%PROJECT_DIR%" :: Navigate to project folder cd "%PROJECT_DIR%" :: venv if not exist ".venv" python -m venv .venv call ".venv\Scripts\activate.bat" :: Upgrades python -m pip install --upgrade pip setuptools wheel :: Clone PySide setup if needed if not exist "pyside-setup" git clone https://code.qt.io/pyside/pyside-setup cd pyside-setup git fetch --all git checkout 6.9.1 :: Install dependencies python -m pip install -r requirements.txt python -m pip install -r requirements-doc.txt python setup.py build ^ --qtpaths="C:/Qt/6.9.1/msvc2022_64/bin/qtpaths.exe" ^ --qt-src-dir="C:/Qt/6.9.1/Src/qtbase" ^ --parallel=12 ^ --build-docs ^ --doc-build-online :: Navigate to pyside-setup build directory cd C:\Users\Nicholas\dev\Builder\pyside-setup\build\.venv\build\pyside6 :: Generate docs ninja apidoc :: Leave shell open cmd /k
  • Unable to Do Windows Deployment for LLVM

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QTextEdit - not accepting keyboard inputs

    Moved Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi, You should provide minimal compilable example that shows that behaviour. Also, which version of Qt are you using ? On which OS ? Finally, in this code you are leaking QDate objects. The same goes of the widgets you create in that function. Each time you call it a new set of them will be created without deleting the old ones.
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    15 Views
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • 0 Votes
    4 Posts
    2k Views
    R
    @Bonnie Thanks -- yes, that was exactly the problem! :) The Qt Creator wizard "helpfully" set up the parameters like this when I added the class. When I changed the parameter name, it works without qualifying the function call. Marking this now as "solved".
  • 0 Votes
    5 Posts
    2k Views
    D
    @JonB Thank you for your suggestion. It is feasible for me to move it after "ui_mainwindow.h"
  • how to make a combo box read only

    Unsolved
    11
    0 Votes
    11 Posts
    5k Views
    JonBJ
    @stokito As @SGaist says. What does "ReadOnly" here mean to you, and what is "Modified" about? For read-only, do you perchance mean setEditable(false)? That is for the user to be able edit/insert items into the combobox choices. But that is the default anyway.