Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Help requested to get an old Qt Project up and running

    Solved
    4
    0 Votes
    4 Posts
    290 Views
    M
    So, I was looking where to save the Qt installer on my PC. Found a logical place, and all the installers from the time were there :-). I also had had the sense at the time to list a full set of instructions to get up and running. It works now. I don't know what the actual issue was, but these were the extra steps. Install CMake and Install the Windows 10 SDK. Nothing about a standalone Qt. Strangely, just after compiling the whole PC froze! And all the Qt stuff was in a Virtual Machine. This is worrying as it should only affect the VM. I'll try again when I am not running anything on the main PC. I think this particular issue is solved though. Thanks for listening!
  • I'm looking to create a rich embedded text editor with color highlighting

    Unsolved
    2
    0 Votes
    2 Posts
    149 Views
    JonBJ
    @umen242 Have you looked at QSyntaxHighlighter Class?
  • Checking that a file is a jpeg or png

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    Paul ColbyP
    @Christian-Ehrlicher said in Checking that a file is a jpeg or png: But why not use QMimeDatabase for it? Nice! I didn't know about that one :) Great suggestion.
  • an problem about memset() in Qt

    Solved
    3
    0 Votes
    3 Posts
    679 Views
    J
    well, I change another new dll, it's ok...
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • PyQt6 QImage.convertToFormat converts transparent areas

    Solved
    2
    0 Votes
    2 Posts
    244 Views
    Christian EhrlicherC
    @Captain-Haddock said in PyQt6 QImage.convertToFormat converts transparent areas: How do I prevent transparent areas from being converted? By not converting them to a format which does not support transparency.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • QImage colour depth for reading images

    Unsolved
    3
    0 Votes
    3 Posts
    269 Views
    Kent-DorfmanK
    @Christian-Ehrlicher and a quick experiemtnal proof-of-concept program is worth more than an answer on a forum.
  • QSqlQueryModel incrementally remove old rows

    Solved
    14
    0 Votes
    14 Posts
    942 Views
    SGaistS
    @JonB my bad, I misunderstood your point. We are on the same line :-)
  • QvideoFrame to cv::Mat -> Solved

    Solved
    1
    0 Votes
    1 Posts
    477 Views
    No one has replied
  • QButtonGroup as QtDesigner plugin?

    Unsolved
    5
    0 Votes
    5 Posts
    372 Views
    JonBJ
    @Dariusz Unlike QButtonGroup, QGroupBox is a widget. Do you mean you want to use some customized QGroupBox in Designer? You could Promote or write a Custom Widget Plugin for that?
  • pointer on struct to Qbytearray

    Unsolved
    6
    0 Votes
    6 Posts
    458 Views
    Christian EhrlicherC
    Apart from the fact that I don't see a reason to use QExtSerialPort in favor of QSerialPort, QExtSerialPort is also a QIODevice ...
  • how to add sub sub menu ?

    Unsolved
    2
    0 Votes
    2 Posts
    243 Views
    Christian EhrlicherC
    Adding a menu to a menu is done via QMenu::addMenu()
  • Disabled item in QComboBox is still interactive

    Unsolved
    2
    0 Votes
    2 Posts
    190 Views
    Christian EhrlicherC
    Can you please at least tell what exact Qt version you're using and how you disabled it? Best would be a small codepiece so we can see what you're really doing and can reproduce it.
  • passing signal between threads with Qvector as parameter

    Solved
    13
    0 Votes
    13 Posts
    1k Views
    Christian EhrlicherC
    @JonB said in passing signal between threads with Qvector as parameter: might be because connect() refuses to accept them for queueing. correct
  • Need help with .pro file, copy files at build

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    A
    @Archie888 said in Need help with .pro file, copy files at build: @Paul-Colby Thanks for the tip to the right direction, very helpful!! The .qrc was a mistake, meant .pro, sorry. QMAKE_SUBSTITUTES seems like an interesting cross-platform way to copy files to the build destination from project, and it worked, thanks. However, having to have the .in extension creates issues, having to create a copy automatically with .in and so on, which I can do, but it's not very elegant. But I will definitely keep that in mind. As I checked into the issue again, I now finally got QMAKE_SUBSTITUTES working to run the .bat file, but it needs to be like this: QMAKE_POST_LINK += $$PWD/my_batch_file.bat Unlike with OTHER_FILES, it needs the $$PWD/ as the starting point. Also, no cmd window is opened unlike I was expecting. The execution will be part of the Qt build process, and any echo ouput in your .bat file is shown in the Compile Output tab. However, now I am running into problems with getting access denied with copying with the .bat, so I will have to look into this issue later. Here is the .bat again, which is giving the : @echo off setlocal set BUILD_DIR=%1 set SOURCE_DIR=%~dp0A8NodeAssistant echo Copying A8NodeAssistant folder from %SOURCE_DIR% to %BUILD_DIR%... xcopy /s /e /y %SOURCE_DIR% %BUILD_DIR%\ pause Any help appreciated of course what the mystery could be, if someone has info at the tip of the fingers, but I'll get into this later again myself. Cheers! (I might have to implement the nasty .in file generator in the end, LOL!) Typo on the line: "As I checked into the issue again, I now finally got QMAKE_SUBSTITUTES working to run the .bat file, but it needs to be like this:" Meant: "As I checked into the issue again, I now finally got QMAKE_POST_LINK working to run the .bat file, but it needs to be like this:" It seems that the time period to edit comments here has been decreased.
  • QProcess and cmd.exe not working when path with with accented characters

    Unsolved
    8
    0 Votes
    8 Posts
    514 Views
    V
    @ChrisW67 With QFile:copy() I'm unable to access deeppath as I mentioned previously and that is the reason why I use cmd.exe. So I returned to my own code and changed the text picked up using lineEdit : < void MainWindow::on_lineEdit_returnPressed() { if (process->isOpen()) { QString s = ui->lineEdit->text() + "\n"; QTextCodec* codec = QTextCodec::codecForName("IBM-850"); QByteArray ba = codec->fromUnicode(s); } /> And now all is working correctly! 'I tried first with dir ["longpath with accented characters"] and it works...
  • Database performance 5 times faster with Access than with MS SQL

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    JonBJ
    @Andy314 Yep :) I guess you can assume the Access driver maybe does some forward optimization for you, in some shape or form. IIRC the MS SQL driver is the most sensitive to/affected by forward-onlyness, more so than e.g. MySQL. But it's always worth adding Qt's forwardOnly, makes one think maybe it should have been default as there is probably much code out there doing just forward queries and not realizing how much the default is penalising them.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Remove empty lines - unsolved repost (AGAIN)

    Unsolved
    4
    0 Votes
    4 Posts
    240 Views
    kkoehneK
    @AnneRanch , if you're talking about Qt Creator: ClangFormat has an option 'MaxEmptyLinesToKeep'. you can set it to 0, and then enable reformatting of your file (e.g. by selecting 'Full formatting' and 'Format edit code on file save' in Preferences > C++ > Code Style. This will also apply the other formatting rules though, which might or might not be what you want ...