Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • using Git version number in app

    Solved
    5
    0 Votes
    5 Posts
    918 Views
    mzimmersM
    Very, very interesting. Never knew about that QMAKE_SUBSTITUTES. In my project file: GIT_VERSION = $$system(git --git-dir="C:/wifibutton"/.git --work-tree="C:/wifibutton" describe --always --tags) win32 { // this is to remove characters that could prevent compilation. GIT_VERSION ~= s/-\d+-g[a-f0-9]{6,} } QMAKE_SUBSTITUTES += config.h.in and config.h.in: #ifndef CONFIG_H_IN #define CONFIG_H_IN #define APP_VERSION '"$$GIT_VERSION"' #endif // CONFIG_H_IN and in my source code: QString version(APP_VERSION); // etc. Thanks!
  • How do I delete the current QTreeWidget element correctly?

    Solved
    33
    0 Votes
    33 Posts
    5k Views
    Christian EhrlicherC
    @Helg1980 said in How do I delete the current QTreeWidget element correctly?: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 27, 29, 35, 0' You have a css somewhere which defines a wrong color rgb value.
  • QFile, QThread, QConcurrent and how to Qt

    Solved
    17
    1 Votes
    17 Posts
    4k Views
    J.HilkJ
    @A-Newbie said in QFile, QThread, QConcurrent and how to Qt: Regardless, I got answers pretty much to all of my questions and everyone helped a lot. great 👍 Is there a way to simply have this topic as solved without picking a specific answer? sure bottem right side, topic tools button, simply set it to solved there
  • This topic is deleted!

    Unsolved
    13
    0 Votes
    13 Posts
    53 Views
  • QObject::connect: No such slot MainWindow::indata()

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    JonBJ
    @mganesh Please read through https://doc.qt.io/qt-5/signalsandslots.html, looking at the examples. Please move away from SIGNAL/SLOT() macros, which are very old, and use the "new" syntax described there.
  • App does not even start in Oracle Linux Server 7.9

    Unsolved
    2
    0 Votes
    2 Posts
    301 Views
    jsulmJ
    @Merlino Try to start it with strace: strace ./YOUR_APP You can post its output here. It can give some hints.
  • QML Connections:: Cannot assign to non-existent property "onIgnoreChanged"

    Unsolved
    3
    0 Votes
    3 Posts
    449 Views
    SPlattenS
    It looks like "model" is a C++ object, but I cannot trace where it is added or exposed to QML. If anyone can tell me how I can trace this ?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Using QCamera on Win10

    Unsolved
    6
    0 Votes
    6 Posts
    663 Views
    S
    @Bonnie It was the reason. Thank you very much!
  • Unknown module(s) in QT: webenginewidgets

    Unsolved
    5
    0 Votes
    5 Posts
    576 Views
    Q
    @Bonnie OK, thank you.
  • 0 Votes
    3 Posts
    311 Views
    enjoysmathE
    @jsulm Thank you! That makes a lot of sense. I will go with a SQLite database (or whatever is simplest).
  • DHT11 Sensor with RPI

    Unsolved graph rpi dht11
    13
    0 Votes
    13 Posts
    3k Views
    jsulmJ
    @helloworldddd said in DHT11 Sensor with RPI: do u know how to use plot values to time, time as x axis on pyqtgraph? Sorry, I never used pyqtgraph. Did you check its documentation?
  • QNetworkReply and Transfer-Encoding: chunked

    Unsolved
    1
    0 Votes
    1 Posts
    469 Views
    No one has replied
  • 0 Votes
    3 Posts
    253 Views
    enjoysmathE
    I have given up on that project for now. It has many many bugs :(
  • Problems Building Qt from source

    Solved
    3
    0 Votes
    3 Posts
    325 Views
    MDCatoM
    Okay so that got me going in the correct direction, My headers were actually okay, but I was not running the commands the right way. I was using a standard old cmd.exe, which appeared to have gcc.exe configured in the path, alone with g++.exe and mingw32-make.exe, except for some reason the "\bin" directory was not in the PATH variable somehow. I assumed that it was because it found gcc.exe, and I was wrong (still not sure how I was wrong with that logic). TL;DR there is a "mingw-w64.bat" in the PROGFIL~1 directory that you need to execute (which sets the PATH) and then run the configure.bat command inside that window that pops up.
  • Showing QListWidget freezes application

    Solved
    2
    0 Votes
    2 Posts
    214 Views
    swirlS
    Attached it to a QDialog and it worked. Woops.
  • How to enable depth testing in QOpenGLFrameBufferObject

    Unsolved
    1
    0 Votes
    1 Posts
    251 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • My Window don't show when I start the .exe file

    Solved
    3
    0 Votes
    3 Posts
    254 Views
    M
    I fixed the problem by forcing a compiler and manually getting the dll from the correspondant compiler Thanks for the help and reactivity
  • Executable crashed!

    Solved
    8
    0 Votes
    8 Posts
    718 Views
    Rizlan AnilR
    @jsulm Ah ok thank you :]