Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.3k Posts
  • Problems with <bits/stdc++.h>

    Unsolved include
    9
    0 Votes
    9 Posts
    4k Views
    Kent-DorfmanK
    as the others mentioned...you don't include bits/{anything}. that directory is for platform specific internal headers that are only to be called by the generic platform independent abstractions. Furthermore, convention is that the parts of the stdlib that have been made available to c++ don't end with .h they are c{headername}, not {headername}.h ... iow, no extension at all in the filename.
  • QT_MESSAGE_PATTERN dont understand pattern

    Solved
    4
    0 Votes
    4 Posts
    425 Views
    SGaistS
    auth is a local variable. It's likely destroyed before the authentication procedure is done.
  • Label Text with two different alignments

    Unsolved
    4
    0 Votes
    4 Posts
    297 Views
    JonBJ
    @SGaist The trouble with QFormLayout is that it has inbuilt alignments according to overall style, being set for different windowing systems/styles. The OP specifies left alignment for the left-hand labels; but if you look at https://doc.qt.io/qt-5/qformlayout.html#details some styles align these right. That's why I suggested QGridLayout. Oh, I see there is QFormLayout::setLabelAlignment() to alter that. Well, up to the OP. Note that QFormLayout is strictly intended for only two columns, QGridLayout you can have however many you want.
  • QSqlDatabase:QPSQL Driver not loaded Driver not loaded

    Solved
    26
    0 Votes
    26 Posts
    10k Views
    SGaistS
    Hi and welcome to devnet, @monfortpie said in QSqlDatabase:QPSQL Driver not loaded Driver not loaded: Very curious the idea of a specific file ".ini" . I did'nt found a such file ".ini" in my project ....Bizarre.... Because it's specific to how @ram070787 implemented its application, not something that is general.
  • QHttpServer, where is it?

    Solved
    9
    0 Votes
    9 Posts
    4k Views
    Chris BC
    It has been deprecated, but you can also look at libmicrohttpd, it is a small footprint HTTP server implementation. Some good libraries have been built on it such as https://github.com/etr/libhttpserver to implement REST, etc.. Although they are standard C++, you can certainly use QT inside them.
  • 0 Votes
    2 Posts
    944 Views
    B
    You need to convert the Mat to a QImage, and then create a QPixmap from the QImage. Have a look at this project: https://github.com/dbzhang800/QtOpenCV
  • Load shared library: The specified module could not be found

    Solved
    5
    0 Votes
    5 Posts
    3k Views
    raven-worxR
    @fem_dev said in Load shared library: The specified module could not be found: a) No...I'am always running the main app using Qt Creator IDE your problem is that the dependency library (libjsonfortran.dll) cannot be found when you load "libLobular-Bearing-Plugin.dll" with QLIbrary. This is done by the OS which looks in certain paths for libaries. So either put the dll file next to your exe (which is in this case in QtCreators build folder) or update the PATH variable (can be done in the PROJECTS tab -> Run settings in QtCreator) with the folder containing the dll. When you release your exe you should anyway bundle the dependency libraries - probably next to the exe - afterall. Also i assume you are using mingw as compiler? If so you should be able to point to the .a file explicitly in the linking definition. (To choose between static and dynamic version of the lib)
  • When in a QWidget and Input Widget ?

    Unsolved
    10
    0 Votes
    10 Posts
    598 Views
    SGaistS
    In that case the other possibility is to replace your existing widget with an empty one and rebuild the interface on widget after the other see where it starts acting up.
  • QListWidget set height to fit n items?

    Unsolved
    1
    -1 Votes
    1 Posts
    212 Views
    No one has replied
  • Calculate FPS in GUI Application

    Unsolved
    5
    0 Votes
    5 Posts
    3k Views
    Chris KawaC
    It depends on what it uses for that simulation. FPS is just number of repaints per second so all you have to do is either count them and update every second or, if you need more frequency, you can measure time elapsed between draws and guesstimate by calculating 1/(frame delta). If it's a widget you could count paintEvent per second like @Pl45m4 said.If it's a QOpenGLWidget you could similarly count paintGL calls per second. Hard to say without knowing more about what you use and how you repaint.
  • How to access javascript function in c++

    Moved Unsolved
    2
    0 Votes
    2 Posts
    156 Views
    SGaistS
    Hi and welcome to devnet, What exactly did you try ?
  • get different extra edge for hollow polygon

    Unsolved
    9
    0 Votes
    9 Posts
    647 Views
    SGaistS
    Which version of Qt are you using ? Can you complete your example so that we also have the same drawing output ?
  • Rendering in Vertical Layout fails to occur

    Solved painting issues layout issues
    8
    0 Votes
    8 Posts
    1k Views
    C
    Someone on StackOverflow gave me the key that I needed. I was not setting a minimumSize for the TimeLines and as a result it was not being given enough space in the verticalLayout. Thanks for all the help!
  • QTableWidget cell text not change

    Solved
    2
    0 Votes
    2 Posts
    411 Views
    L
    @LCorona My Bad, was a problem with other code. The instruction works fine.
  • 0 Votes
    2 Posts
    841 Views
    K
    I haven’t come across anything that fits your needs exactly. But there is this software I found (MD Python). It definitely fits your needs of making GUIs faster, easier and more interacted. It uses drag and drop to place GUI element that are premade. You can generate all of this into python code if you want to add your own flair or speciality. The link for the software is https://labdeck.com/python/ , however it offers a limited amount of GUI components. The other one (MD Python Designer) is around $10-20 and it’s got unlimited GUI use (here’s the link https://labdeck.com/python-designer/ ). I think you’ll find the Python GUI Designer link more useful (https://labdeck.com/python/python-gui-designer/) as it shows the Designer in more depth. Slightly off-topic but they also have a GUI Designer that uses their own code, and from what I can gather it’s similar to C++ code and looks to need less lines of code but it’s not really my style, maybe it interests you: here’s the link for it https://labdeck.com/gui-designer/ .
  • Bluetooth abd Android

    Unsolved
    4
    0 Votes
    4 Posts
    406 Views
    PollyP
    I give an update of my tests. I tried using what was said in the video and documentation. And I first noticed that setting the Hc05 module in master mode is recognized by the device for which I forced the address but the software compiled on android 10 and 7 does not work, that is, it does not recognize it. So it's better to set it as a slave. At this point, using only qml code, the device is not detected by Android 7 or 10. On the other hand those that are written in C ++ are envied only by Android 7 while the 10 finds nothing. I also tried to compile with different versions such as 5.12,5.13,5.14,5.15 same result.
  • qt sigfpe arithmetic exception

    Unsolved
    9
    0 Votes
    9 Posts
    822 Views
    N
    @jsulm yeah
  • LNK1107: invalid or corrupt file cannot read 0x458

    Locked Unsolved
    4
    0 Votes
    4 Posts
    558 Views
    Christian EhrlicherC
    Double post - locked.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • Copy data from Win 10 to MTB device (smartphone)

    Unsolved
    5
    0 Votes
    5 Posts
    536 Views
    mrjjM
    @JuliusCaesar Hi It seems to be part of Windows Portable Device API https://docs.microsoft.com/en-us/windows/win32/wpd_sdk/supporting-mtp-extensions