Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Text underneath check boxes when using Qt-MultiSelectComboBox

    Unsolved combobox promote
    3
    0 Votes
    3 Posts
    531 Views
    D
    @Christian-Ehrlicher Hi, I have not manually set any css styling the colours I belive just come from fact I am using ubuntu so I think its just using system colours by default
  • why my app cant display image ?

    Unsolved
    5
    0 Votes
    5 Posts
    478 Views
    C
    @inkybear Hello. Further to @SGaist's advice: The path you have provided is relative to the current working directory of the application, which may not be where you think it is.
  • Could not find procedure entry point _Z9qt_assertPKcS0_i in dynamic link library

    Unsolved
    22
    0 Votes
    22 Posts
    4k Views
    K
    @CidGianni I know i'm late and you probably fixed it or have moved on, but you might have used the wrong compiler, using QT 6.7.0 (MSVC) would enter that meesage on a mingw program. You have to use QT 6.7.0 (MINGW) application to compile it, then it works!
  • Including MQTT wrapper for mosquitto library on windows

    Unsolved mqtt library widget c++17
    22
    0 Votes
    22 Posts
    5k Views
    D
    @starkm42 Thanks for the reply, the issue was to do with the fact mosquitto was compiled with a different library. To avoid this I am just going to run a ubuntu VM Thanks everyone for the help.
  • QML Make a scroll through dynamic strings

    Unsolved
    2
    0 Votes
    2 Posts
    248 Views
    R
    @roditu said in QML Make a scroll through dynamic strings: anchors.fill: parent So i found the solution by total accident: anchors.fill: parent in delegate has to be changed to width: parent.width. QT6 is cool, QML is a literal roulette, You spin the wheel of fortune until You win. Javascript seems like heaven compared to this...
  • I need to use TAB only for browsing QLineEdit

    Unsolved
    3
    0 Votes
    3 Posts
    195 Views
    M
    @JohnLocke said in I need to use TAB only for browsing QLineEdit: I need to browse with TAB Only QLineEdit Is it programmable? Have a look at: setTabOrder
  • qt does not display the image

    Unsolved
    2
    0 Votes
    2 Posts
    169 Views
    Axel SpoerlA
    @inkybear I actually wonder why "tittle" works with a double t. How have you added the icon resource file(s)? Can you show you CMakeLists.txt or your .pro file?
  • Radio button to select all radio buttons

    Unsolved
    2
    0 Votes
    2 Posts
    400 Views
    JonBJ
    @JohnLocke So recognise that button being clicked (signal/slot) and set the others to checked. But you should not be using radiobuttons for this! A radiobutton's whole definition is "only one of this group can be clicked" so that's really confusing. Use checkboxes. In either case QButtonGroup Class aids programming, you probably want a group for the buttons excluding your Select all one.
  • QJsonObject derived class copy of

    Solved
    7
    0 Votes
    7 Posts
    646 Views
    SPlattenS
    @JonB , thank you, will add that.
  • Sending parameters with click event

    Solved
    5
    0 Votes
    5 Posts
    366 Views
    yy_pc_programmerY
    @Pl45m4 @JonB @jsulm THANK YOU SO MUCH FOR ANSWER
  • 0 Votes
    4 Posts
    734 Views
    Christian EhrlicherC
    @qtbuzz said in "Project ERROR: Unknown module(s) in QT: serialport" when using Qt VS Tools on Visual Studio 2022: feature I would say because you can have more than one Qt version installed.
  • How to convert QStringList to std::string

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    C
    @micha_eleric This: fileString = lineString.toStdList(); is probably intended to be: fileString = lineString.at(i).toStdString(); to select one of the individual QStrings in the lineString list to convert. I think you have missed @Christian-Ehrlicher's point. Your code (corrected as above): Obtains an original string Splits the string into lines (using an over-complex mechanism and deprecated classes). Converts each QString into a std::string Writes it to a file with a trailing newline. The result is a file that contains the essentially same text as the original string (with the possible exception of extra new line). Why bother with all the steps in between?
  • 0 Votes
    4 Posts
    389 Views
    JoeCFDJ
    @SGaist created a bug report https://bugreports.qt.io/browse/QTBUG-119634
  • QSkinny

    Unsolved
    8
    0 Votes
    8 Posts
    785 Views
    SGaistS
    @1XU7 Hi, I can confirm it builds with 6.6.0 on macOS. Two things you can do: Open the project with Qt Creator and build it with the Qt Kit you are going to use for your application On the command line, use the qt-cmake wrapper from the Qt version you want to build QSkinny for. It's pre-configured to run cmake with everything pointing correctly to the corresponding Qt version.
  • How to use 3rd party Terminal with Qt App

    Unsolved
    2
    0 Votes
    2 Posts
    187 Views
    Pl45m4P
    @JohnLocke In which way? Start the terminal and execute a command?! Check out QProcess https://doc.qt.io/qt-6/qprocess.html
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    4 Views
  • Troubles with CMAKE_PREFIX_PATH for Qt 6.6.1

    Solved
    3
    0 Votes
    3 Posts
    368 Views
    R
    @rock37 got it working, i used find_package(Qt instead of Qt6)....
  • 0 Votes
    10 Posts
    2k Views
    V
    @hskoglund I've had this exact issue after updating to sonoma and the instructions you provided have fixed my issue (at least). I just manually edited the file and after that projects are compiling again.
  • how to change background color of qpdfview

    Solved
    3
    0 Votes
    3 Posts
    634 Views
    JoeCFDJ
    @ChrisW67 Made it. Thanks a lot.
  • 0 Votes
    2 Posts
    577 Views
    S
    @Yash001 this is just general advice. on linux, to run commands as part of the installation is usually handled by postinst.src if deb based, or under %dir section (.spec file) if centos based distro, which are part of respective .rpm or .deb files.