Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.0k Posts
  • Reporting inappropriate content on the forums

    Pinned Locked spam
    29
    3 Votes
    29 Posts
    34k Views
    A
    Thank you for the report. I have banned the user, which got rid of the spam posting. Not a loss, as this user did not post any other content on the site. Just deleting this one posting was not possible. Thanks for reporting this.
  • Building Qt with QT_DISABLE_DEPRECATED_UP_TO set fails

    Unsolved
    17
    0 Votes
    17 Posts
    254 Views
    Christian EhrlicherC
    configure --help: You can pass CMake variables as configure arguments: configure VAR=value which is equivalent to configure -- -DVAR=value
  • Under what license are Qt's .tags files?

    Unsolved
    4
    1 Votes
    4 Posts
    83 Views
    SGaistS
    There's one thing missing in the feature request: adding license information for these files. The goal being for everybody to have that information.
  • Direct2D Rendering Engine...

    Unsolved
    5
    0 Votes
    5 Posts
    72 Views
    A
    @Christian-Ehrlicher said in Direct2D Rendering Engine...: What's the gain? Do you have performance problems with QtWidgets? It's not just about the basic interface - i.e. menus / toobars / dialogs / dialog controls. We write games for a living. The game map areas for most of them are currently GDI / GDI+ ultimately using an MFC CWnd to draw on. PNG support is limited particularly around alpha channels and blend modes. Two game series have the game map areas written using our D2D wrapper library. The performance and quality of the anti-aliasing because it's offloaded to the GPU is much much better. Just wanted to investigate the use of D2D in Qt as well.
  • Q_NAMESPACE across multiple files

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    B
    @Creaperdown I used this solution, until I stumbled upon inline namespaces[1], which are completely invisible, so you don't have to use the extra namespace anywhere: inline namespace MocFix { Q_NAMESPACE enum class MyEnum{ ENTRY_0, ENTRY_1, ENTRY_2, }; Q_ENUM_NS(MyEnum) } // namespace MocFix [1] https://stackoverflow.com/a/78706356/402090.
  • Command-line option "--help-all"

    Solved
    12
    0 Votes
    12 Posts
    197 Views
    R
    I am marking this as "solved" because I can work around it, now that I know that "--help-all" will be passed back to my application. I should call "QCommandLineParser::showHelp()" if either the simple help option or the help-all option was passed. However, in this particular case, Qt doesn't add any other options to my own except for "help-all" because with both options, the exact same help text is shown. One might think that if Qt doesn't have any options of its own to add, that it wouldn't need to add the "help-all" option to the help output...
  • prevent cursor from redrawing

    Unsolved
    7
    0 Votes
    7 Posts
    777 Views
    A
    Kent, thanks for the response. This was my first thought as well, using a pixmap: QCursor cursor = QCursor(pixmap); setCursor(cursor); However, for this application, the cursor needs to be scalable so that it adjusts its size as the image being selected is zoomed in or out. Scaling the pixmap did not give the results I was looking for. However, in the interim, I have managed to find a solution thanks to someone on Stack Overflow.
  • Qt QR code scanner

    Unsolved
    12
    0 Votes
    12 Posts
    5k Views
    C
    You might want to check out KDE’s Prison for generation, like you mentioned. For scanning, Qt doesn’t have a fully integrated solution out of the box, but there are a couple of directions you can take: Use ZXing-C++ which is cross-platform and works well with Qt projects. Another option is to wrap platform-native libraries (like Android’s ML Kit or iOS’s AVFoundation) if you’re targeting mobile specifically. If you just want a quick way to test things out or validate the results from your app, you can try an external tool such as this https://2scan.net/ . It lets you upload images or use your camera to read QR codes, which is handy when debugging.
  • QML Window maximumHeight ignored in full screen mode on Windows

    Unsolved
    1
    0 Votes
    1 Posts
    36 Views
    No one has replied
  • Qt5 QWindow inside windowContainer not receiving keyboard events on Wayland

    Unsolved
    5
    0 Votes
    5 Posts
    181 Views
    R
    @SamiV123 said in Qt5 QWindow inside windowContainer not receiving keyboard events on Wayland: @SGaist said in Qt5 QWindow inside windowContainer not receiving keyboard events on Wayland blocky blast: Hi, Something is not clear: are you using 5.15.17 or is it the Qt version used by Plasma ? Do you have the same issue if building your application with Qt 6 ? I suppose KDE is using Qt6 which is installed side by side. My Application is built against this Qt5 version. "Do you have the same issue if building your application with Qt 6 ?" I'm not going to port +200kloc to Qt6 just to try this. This is on Qt5 and that's that. Thanks you so much
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • How to prohibited drap and drop in a certain column of QHeaderView?

    Unsolved
    3
    0 Votes
    3 Posts
    142 Views
    SGaistS
    Hi, Did you check the frozen column example ? I think it might provide what you are looking for.
  • The subwindow on MDIArea does not appear.

    Unsolved
    2
    0 Votes
    2 Posts
    115 Views
    Christian EhrlicherC
    @Blackzero said in The subwindow on MDIArea does not appear.: Is there a way to fix this? For sure - ask the author to fix his style or fix it by yourself.
  • terminated by signal SIGSEGV (Address boundary error)

    Unsolved
    7
    0 Votes
    7 Posts
    134 Views
    JonBJ
    @13character5 As the others have said. But since you seem to have used Qt Designer to design some interface (right?) I suspect/wonder whether you are trying to access a QPushButton which you already put there? Perhaps named by you at the time pressMeButton? If so it will be inside the ui object, like ui->pressMeButton. And you won't want/need your own (currently uninitialized, hence the crash) QPushButton *pressMeButton as a class variable?
  • "undefined reference" in moc_mainwindow after deleting GUI element

    9
    1 Votes
    9 Posts
    5k Views
    D
    @Tyrell-Wellick09 It just helped me, so thanks for answering something years later
  • Running UIC on .ui files on Visual Studio

    Unsolved
    5
    0 Votes
    5 Posts
    169 Views
    T
    I had to manually add the form files. It is supposed to recognize the .ui extension. The project didn't.
  • Not compilated Qt from sources

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    N
    Hello JKSH and All! Since I have discussed the same question in two topics, I will repeat the answer too. Thank you, SGaist and JKSH! for helped in another topic - "Why no make QtCreator.exe file". git clone git://code.qt.io/qt/qt5.git qt6 git switch 6.9.2 init-repository.bat And everything went like clockwork without a single "failed:" both when compiling Qt and when compiling QtCreator. If anyone needs instructions when compiling Qt, then I have sketched out a small cheat sheet. I used it myself. I collected bits and pieces wherever I could. Detailed instructions are almost impossible to find. https://gitflic.ru/project/navadvipa-chandra-das/slovar-shrily-prabhupady-na-copperspice Thanks! With respect, Navadvipa Chandra das.
  • issue with nested qtabwidget with qvector<qtableview*> on the inner table

    Solved
    12
    0 Votes
    12 Posts
    343 Views
    SGaistS
    Great ! Since you have it working now please mark the thread as solved using the "Topic Tools" button or the three dotted button beside the answer you deem correct so that other forum members may know a solution has been found :-)
  • Why no make QtCreator.exe file

    Solved
    9
    0 Votes
    9 Posts
    317 Views
    N
    Hello, JKSH and All! Thank you, SGaist and JKSH! It helped. git clone git://code.qt.io/qt/qt5.git qt6 git switch 6.9.2 init-repository.bat And everything went like clockwork without a single "failed:" both when compiling Qt and when compiling QtCreator. If anyone needs instructions when compiling Qt, then I have sketched out a small cheat sheet. I used it myself. I collected bits and pieces wherever I could. Detailed instructions are almost impossible to find. https://gitflic.ru/project/navadvipa-chandra-das/slovar-shrily-prabhupady-na-copperspice Thanks! With tregards, Navadvipa Chandra das.