Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • pysiede2 date and time manuplilation from sqlite3 database

    Unsolved
    4
    0 Votes
    4 Posts
    329 Views
    JonBJ
    @erico In addition to the preceding comments. I am not a SQLite user, so I may be mistaken about the following, it;s just for you to check. But even if your query "works" i am trying to retrieve data which was added on the current day Does your table only contain dates in the current month? Else I don't see how your code won't amalgamate rows with the same day but on different months? fetchone(): Why do you thing this would return something on "the current day" (I take that to mean "today", maybe that's not what you mean)? You might want to play with your proposed query in one of the available "SQLite Workbench"-type applications, so that you can be sure it behaves as you intend before involving any Qt issues.
  • Pure virtual function called!

    Solved
    8
    0 Votes
    8 Posts
    3k Views
    O
    @Christian-Ehrlicher said in Pure virtual function called!: don't call the thread in the ctor since then the derived class is not yet instantiated As @Christian-Ehrlicher said, you are calling the overrided method into constructor of the base class. Think on that when you create an object of the derived class, first the base part is initialized and finally the derived part, so the overrided method is not initialized yet.
  • Applying the color of Custom widgets to the controls inside it

    Unsolved
    2
    0 Votes
    2 Posts
    232 Views
    mrjjM
    Hi -For the buttons, it is not applied. What is the reason for this and what is the potential solution? Hi, the labels are transparent (no background color) so you see your custom widget through them. Buttons do have a background normally. You could use ToolButtons and set auto raise [image: nuNuwL.png] which allows seeing through the button.
  • I hope QCalendarWidget only show months.

    Unsolved
    2
    0 Votes
    2 Posts
    224 Views
    jsulmJ
    @Qingshui-Kong said in I hope QCalendarWidget only show months.: I just want to get the month Why do you then need QCalendarWidget at all? There are only 12 months, simply use a combo box or list widget.
  • Parallel Processing in Qt

    Unsolved
    5
    0 Votes
    5 Posts
    731 Views
    R
    @Christian-Ehrlicher Thank you for your response. i will check it
  • Qt::WindowFullScreen z-Order under Taskbar in MS-Windows

    Unsolved
    9
    0 Votes
    9 Posts
    971 Views
    Andy314A
    Here I have a minimal example to produce the problem. QDialog *dlg; void MainWindow::on_pushButton_clicked() { dlg=new QDialog; dlg->setWindowState(Qt::WindowFullScreen); dlg->show(); } Different beheavour
  • Warning when closing an undocked qwidget

    Unsolved
    18
    0 Votes
    18 Posts
    2k Views
    Christian EhrlicherC
    Thx, I reformatted the code, the CMakeLists.txt is not needed.
  • Are Qt Open Source and Qt Commercial different.

    Unsolved
    4
    0 Votes
    4 Posts
    421 Views
    JKSHJ
    @AshishDev said in Are Qt Open Source and Qt Commercial different.: They take the code from the open source branch and sell it with a commercial license. They don't "take code from the open source branch". They make the code available under multiple licenses (GPL or LGPL or Commercial). Users can choose which license they want to use. Different licenses come with different freedoms and obligations: If you choose the GPL license, then one of your obligations is to license your own software under the GPL. If you choose the commercial license, then one of your obligations is to pay the Qt Company. Is it not a violation of the GPL license? I don't see any violations here.
  • 0 Votes
    10 Posts
    1k Views
    P
    @SGaist linux-vdso.so.1 => (0x00007ffdebed9000) libQt5MultimediaWidgets.so.5 => /<PATH>/QT_5_12_9/5.12.9/gcc_64/lib/libQt5MultimediaWidgets.so.5 (0x00007f15c7fc9000) libQt5Multimedia.so.5 => /<PATH>/QT_5_12_9/5.12.9/gcc_64/lib/libQt5Multimedia.so.5 (0x00007f15c7cbc000) libQt5Widgets.so.5 => /<PATH>/QT_5_12_9/5.12.9/gcc_64/lib/libQt5Widgets.so.5 (0x00007f15c746d000) libQt5Core.so.5 => /<PATH>/QT_5_12_9/5.12.9/gcc_64/lib/libQt5Core.so.5 (0x00007f15c6cd2000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f15c6950000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f15c673a000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f15c6370000) libQt5Gui.so.5 => /<PATH>/QT_5_12_9/5.12.9/gcc_64/lib/libQt5Gui.so.5 (0x00007f15c5b21000) libQt5Network.so.5 => /<PATH>/QT_5_12_9/5.12.9/gcc_64/lib/libQt5Network.so.5 (0x00007f15c5779000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f15c555c000) libpulse-mainloop-glib.so.0 => /usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x00007f15c5357000) libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f15c5107000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f15c4df6000) libQt5OpenGL.so.5 => /<PATH>/QT_5_12_9/5.12.9/gcc_64/lib/libQt5OpenGL.so.5 (0x00007f15c4b9f000) libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f15c492b000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f15c4622000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f15c4408000) libicui18n.so.56 => /<PATH>/QT_5_12_9/5.12.9/gcc_64/lib/libicui18n.so.56 (0x00007f15c3f6f000) libicuuc.so.56 => /<PATH>/QT_5_12_9/5.12.9/gcc_64/lib/libicuuc.so.56 (0x00007f15c3bb7000) libicudata.so.56 => /<PATH>/QT_5_12_9/5.12.9/gcc_64/lib/libicudata.so.56 (0x00007f15c21d4000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f15c1fd0000) libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f15c1dce000) /lib64/ld-linux-x86-64.so.2 (0x00007f15c81e7000) libpulsecommon-8.0.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-8.0.so (0x00007f15c1b51000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f15c1905000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f15c1695000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f15c146c000) libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f15c1269000) libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f15c1066000) libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f15c0e5f000) libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f15c0c5c000) libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f15c0a2b000) libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f15c0819000) libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f15c0616000) libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f15c0410000) libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f15c020e000) libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f15bfed4000) libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f15bfcbb000) libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f15bfab6000) libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f15bf894000) libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f15bf68e000) libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f15bf47c000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f15c834c000) libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f15bf272000) libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f15bf008000) libasyncns.so.0 => /usr/lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f15bee02000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f15bebfa000) libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f15be9f6000) libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f15be7f0000) libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f15be5ce000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f15be3ac000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f15be0cb000) libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f15bdeb2000) libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f15bdc3d000) libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f15bd994000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f15bd779000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f15bd565000) libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f15bd35c000) libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f15bd131000)
  • remove timer single shot delay after a condition is met

    Solved
    15
    0 Votes
    15 Posts
    1k Views
    JonBJ
    @user4592357 said in remove timer single shot delay after a condition is met: so how can i make sure the child process does its initialisation inside the first slot, and not after it has finished You can't. You have no control over, or knowledge of, what the child is doing in the way of initialisation or otherwise. Quite apart from, you don't even know how the OS is scheduling time between your process and another process. i.e. only have singleShot delay if app was first time loaded, next times i don't wanna have delay To answer just that: just keep a bool variable to tell you whether it's first time or not, and don't do delay if you say you don't want it after first time.
  • sqlite3 - compiling in spatialite support

    Unsolved
    4
    0 Votes
    4 Posts
    569 Views
    SGaistS
    Can you show how you do that ? Did you try starting your application with the QT_DEBUG_PLUGINS environment variable set to 1 ?
  • using Git version number in app

    Solved
    5
    0 Votes
    5 Posts
    908 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
    662 Views
    S
    @Bonnie It was the reason. Thank you very much!