Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.1k Topics 454.7k Posts
QtWS25 Last Chance
  • Draggable ItemWidget in treeWidget

    Unsolved
    7
    0 Votes
    7 Posts
    841 Views
    C
    @Pl45m4 oh sorry. Changed to be a shorter name
  • QReadWriteLock finding out whether it's write locked on same thread

    Unsolved
    4
    0 Votes
    4 Posts
    408 Views
    P
    I have decided, I'll write my own mutex meeting my requirements.
  • Are Qt/QML apps native or hybrid

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    Q
    @mrjj Thanks. :)
  • Want App, but Qt is creating a DLL instead

    Solved
    4
    0 Votes
    4 Posts
    427 Views
    JKSHJ
    @harveyab said in Want App, but Qt is creating a DLL instead: CONFIG -= app_bundle You can also remove this line. It is only relevant on macOS, while you are targetting Windows only.
  • This topic is deleted!

    Solved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Arduino & Qt

    Unsolved
    13
    0 Votes
    13 Posts
    1k Views
    jsulmJ
    @NotYourFan @SGaist already suggested to use readyRead() signal to read from the serial port - did you try? What exactly is the problem?
  • Loading images or draw them?? witch one is faster?

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    W
    @arsinte_andrei said in Loading images or draw them?? witch one is faster?: hmm... that is bed news for me... I do prefer to design things in Krita or Inkscape... but to draw them in C++... that is another story.. how can I draw a moon?? what to use to do it?? just a normal white moon-shape It sounds like there may have been a miscommunication if you feel that you've gotten bad news. The act of taking an image loaded into memory and putting it on screen is called "painting" and you use QPainter to do it. Regardless of whether you are drawing lines and circles using the API, or copying a buffer from a pixmap that started out as a PNG image. As for the fastest way to do it... Just start with the simplest way, and see if that's fast enough. Only worry about solving the problems you have. A Raspberry Pi is obviously a lot slower than a desktop system so you are more likely to run into performance problems there. But it makes more sense to start with a simple prototype, and profile what the slow parts are, rather than worry about things you imagine could potentially be slow and spend your time working on stuff that may not actually have been a problem.
  • Qt suddenly claims it can't find QSqlDatabase

    Solved
    12
    0 Votes
    12 Posts
    3k Views
    StokestackS
    @SGaist Just came back to say to say thanks again for thinking to add this remark. I was indeed pointlessly storing the DB connection in member variables and complicating my task.
  • How to provide C callbacks in a library

    Unsolved
    5
    0 Votes
    5 Posts
    555 Views
    StokestackS
    @aha_1980 Thanks. I don't know why I was thinking this wouldn't work in a lib.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • QOpenGLWindow - drag event?

    Unsolved qopenglwindow qdrag drag drop qdrag
    7
    0 Votes
    7 Posts
    1k Views
    D
    Woah sweet! will do that thanks!
  • Request border size

    Solved
    8
    0 Votes
    8 Posts
    493 Views
    SGaistS
    That was a suggestion I thought I already made :) Good that you have found a solution and thanks for sharing.
  • Question about QSqlDatabase::removeDatabase

    Solved
    5
    0 Votes
    5 Posts
    515 Views
    R
    @Christian-Ehrlicher Thank you. Since each QSqlQuery object and each QSqlDatabase object only exist for the life of one function body, at most, this should not be a problem.
  • Strange crash with QPointers in a container

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    aha_1980A
    @Christian-Ehrlicher said in Strange crash with QPointers in a container: @aart said in Strange crash with QPointers in a container: The thread can be closed. This can be done by you by editing the first post and setting it to resolved. :) No, just use the button Topic Tools. There is an entry Mark as Resolved.
  • Qt5.13 cannot display Chinese on browser

    Solved
    2
    0 Votes
    2 Posts
    227 Views
    thamT
    Found the answer, webassembly do not come with system fonts, you need to load a font manually. You can use FontZip2 to save some space of your webapp
  • QApplication constructor cause segmentation fault

    Unsolved
    16
    0 Votes
    16 Posts
    2k Views
    aha_1980A
    @alexbur glad you solved it. So please mark this topic as SOLVED too. Thanks
  • Remove some headers file using HEADERS -= does not work

    Unsolved
    4
    0 Votes
    4 Posts
    408 Views
    aha_1980A
    @Furotte can you show your .pro file? Which header do you want to remove?
  • Qt and custom memory management

    Unsolved
    5
    0 Votes
    5 Posts
    597 Views
    P
    If I was interested in testing my own build of Qt with my heap manager, how would I go about creating a custom build and setting my projects to use that build in Visual Studio using the plugin? Any pointers on where to get information on how to do this? I tried looking it up but could only find info on doing it with Qt Creator.
  • QTable or another advise for a specific solution

    Unsolved
    2
    0 Votes
    2 Posts
    155 Views
    SGaistS
    Hi, Associate your detected object with an ID and then use that ID to update the content of the table.
  • QtOAuth mechanism problem

    Unsolved
    1
    0 Votes
    1 Posts
    188 Views
    No one has replied