Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • How to save boolean value even if program is close?

    Unsolved
    4
    0 Votes
    4 Posts
    272 Views
    J.HilkJ
    @duckrae since 1956 Read-Write-Memory is a thing. Big shout out to IBM! So what exactly do you want to do, what platform what os, what condition etc.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Speed issue on Qt 6.2.0 vs Qt 6.1.3

    Solved
    8
    0 Votes
    8 Posts
    745 Views
    R
    @hanwil1953 Do you face the same problem if you replace QDateTime datetime = QDateTime::fromString(dt, "yyyy-MM-dd"); with QDateTime datetime = QDateTime::fromString(dt, Qt::ISODate); or even QDateTime datetime(QDate::fromString(dt, Qt::ISODate), QTime(0,0));
  • KDChart Library Linking Issue

    Solved
    9
    0 Votes
    9 Posts
    578 Views
    P
    I was missing a library and not only that, I was using a compiler nmake. Which I found out is used for Visual Studios. I should've been using mingw32-make, because I am using mingw. Thanks for your help. I'll mark as solved.
  • Main thread call from another thread

    Unsolved
    5
    0 Votes
    5 Posts
    520 Views
    SGaistS
    Hi, What are you using from OpenCV's highgui module ?
  • Showing video in GUI does not work (black screen)

    Solved
    28
    0 Votes
    28 Posts
    5k Views
    SGaistS
    Signals and slots are not required to be handled in objects belonging to the same thread.
  • QModelIndex::constInternalPointer returns nullptr unexpectedly

    Solved
    4
    0 Votes
    4 Posts
    409 Views
    jronaldJ
    @JonB said in QModelIndex::constInternalPointer returns nullptr unexpectedly: "It can't!" Alright The problem for me is that not only each QModelIndex in the first column may have parent but each QModelIndex in the remaining columns should also have the same parent as the QModelIndex in the first column of the same row. Thanks
  • QMenu single select

    Solved
    5
    0 Votes
    5 Posts
    824 Views
    D
    Thank you! I don't know why I couldn't find this on my own...
  • How to get mouse double click event from only the title of QGroupBox?

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    A
    @eyllanesc Thanks man your solution is elegant. Thx again
  • How to add content of text/sql file in QPlainTextEdit on QDropEvent.

    Solved
    8
    0 Votes
    8 Posts
    672 Views
    D
    @mchinand, correct. I've tried again with qDebug and that's the case. Thanks.
  • qt cross compile build

    Locked Unsolved
    2
    0 Votes
    2 Posts
    432 Views
    Pablo J. RoginaP
    @IknowQT Please stop double posting! You already have these posts for the same topic: https://forum.qt.io/topic/131394/raspberry-cross-compiler-setting-cannot-run-target-compiler https://forum.qt.io/topic/131382/build-qt-to-cross-compile-for-arm-tutorial
  • Resize the "setGeometry" from cpp

    Unsolved
    8
    0 Votes
    8 Posts
    653 Views
    M
    @ChrisW67 I'm using another method, I'm not reccommend this method because its for newbie like me. hehe. So I build one per one of channel frame like this... [image: 581a8a10-1c1e-4eba-8d36-df239c55aa01.png] I think it solved but I have to make more codes for this methods
  • QWebsocket error processing

    Unsolved
    3
    0 Votes
    3 Posts
    510 Views
    P
    yes, i connect to Nginx server. I get this error from Nginx when backend server isn't running.
  • How can we use COM component in Qt ?

    Unsolved
    3
    0 Votes
    3 Posts
    248 Views
    P
    @jsulm Thanks a lot for your reply. Can we use our Existing COM component, which we are currently using with MFC Classes? Please guide me, i got stuck.
  • What should be in .gitignore?

    Solved
    8
    0 Votes
    8 Posts
    5k Views
    idlefrogI
    @JonB It at least gets me somewhere to start from. I doubt I would need to edit it. Thank you!
  • QDialog in Windows haven't icon in taskbar

    Solved
    15
    0 Votes
    15 Posts
    2k Views
    JonBJ
    @Mikeeeeee You are asking other people to spend their time looking through your code and figuring what might be wrong. "Minimal" essentially means "the minimum number of lines to reproduce the problem; all extraneous lines have been removed". Yes, that means to get an answer you are expected to spend some time going through what you are working on and reduce it to the minimum necessary to reproduce your problem. Yes, that takes a bit of effort. Just like you are asking other people to spend in order to help you.... Purely as an example, in your code why do I have to wade through lines & lines of lineEditName and lineEditPassword code, with fixed widths, stylesheets and everything else, to reproduce your question about a dialog not having an icon in the taskbar? Did you try removing them before you posted to see whether they affect the issue? Good luck finding someone who will care to take the time to answer, given how much time you have taken to produce the example.
  • QString replace %U

    Solved
    41
    0 Votes
    41 Posts
    10k Views
    JonBJ
    @sonichy said in QString replace %U: QProcess->setProgram(sExec), sExec can not contain space, if not will fail to start. Not true. Space in the path to or name of the executable is fine. Program and arguments must separated! Which is why I told you earlier That line is not a program/executable, is it? The first word is the executable and the second word is an argument And that is why I would like you to read what we write and act on it, not just do nothing about it..... Whole of your lambda body code with QProcess *process = new QProcess onward could be replaced with just one line: QProcess::startDetached(sExec, QStringList() << filepath, path); if you want to avoid the memory leak.
  • Problem with QSerialPort::readyRead signal

    Solved
    5
    0 Votes
    5 Posts
    394 Views
    S
    Hi SGaist, you're a Genius :) The problem is the bad command sent to device. Many thanks for help.
  • Easily Restart When Debugging External Executable

    Unsolved debugger external applic linux
    2
    0 Votes
    2 Posts
    552 Views
    RyanEdwardR
    @RyanEdward Although not a native QTCreator solution, I use: C gist to simulate key presses on linux. Mapping this binary to a keyboard shortcut on your native desktop environment can hack your way to a solution.
  • How to remove rows from QStandardItemModel?

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    JonBJ
    @Emon-Haque No, the model took ownership of the items when you added them and is responsible for deleting them when you remove them from the model (via removeRow(), but not if you used takeRow(), see https://www.qtcentre.org/threads/63505-removeRow-or-takeRow-in-QStandardItemModel).