Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.3k Topics 455.9k Posts
  • 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
    908 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
    563 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
    195 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
    147 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
    622 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
    390 Views
    L
    @LCorona My Bad, was a problem with other code. The instruction works fine.
  • 0 Votes
    2 Posts
    777 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
    382 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
    721 Views
    N
    @jsulm yeah
  • LNK1107: invalid or corrupt file cannot read 0x458

    Locked Unsolved
    4
    0 Votes
    4 Posts
    514 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
    498 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
  • Adding MSVC2015 2015 64 bit to compiler ?

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    A
    @jsulm I fixed with this Qt re- installation and visual studios re-installation. I am using visual studio from my university license. Since it is expired , and also i need to do some work quickly so i removed this visual studio and reinstalled visual studio manually. This somehow messed with selecting proper configuration in qt. So Now it is working properly after installing visual studios and qt again! But Coming to your question! When I keep cursor at red button you are getting some information like not configuredproperly or some configurations are missing. I thought quick solution will be reinstalling again because of some deadlines!. I can also manually find things by the help of google and forum respones and fix it but considering my timeline i preferred reinstalling which is not good solution!
  • QOpenGLWidgewt DirectRendering

    3
    0 Votes
    3 Posts
    315 Views
    gfxxG
    QSurfaceFormat is not for rendering type .... but reading the istructions for that class I see it use "update()" function .... so because QSurfaceFormat is part of QOpenGLWidget I cancel all my "makecurrent()" call on my code and I use "update()" instead. Plus I leave from my subclass of QOpenGLWIdget resizeGL() and inizializeGL() private functions because really not utilize .... QOpenGLWidget automatize all these things. Any how after substitutions of all "makecurrent()" call with "update()" call my videostream on qt GUI become working. But for some reasons original video sending from opencv based thread work perfect (i can see it because from opencv thread I can call a video QT windows that show me these) , butevery now and then QOpenGLWidget shows me a 16 split screen with the video converted to the wrong colorspace. This just for a moment, then it resumes normal video and you can again in small strokes, as if a buffer is overloaded and wants to get noticed .... regards
  • Emitting enum class in namespace not working

    Solved
    14
    0 Votes
    14 Posts
    2k Views
    P
    @Christian-Ehrlicher Done, thanks for you help