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 use the QTermWidget?

    Unsolved
    3
    0 Votes
    3 Posts
    3k Views
    F
    Okay thank you. I sadly couldn't make it work. So i wrote my own terminal widget based on the suckless terminal.
  • I put a button in the list widget, but the position of the button is strange.

    Unsolved
    3
    0 Votes
    3 Posts
    329 Views
    SGaistS
    Hi, Why are you using a QListWidget if you want to show a column of QPushButton ? A QVBoxLayout is better suited for that. Beside that, setItemWidget is not meant for what you are trying to do.
  • porting from freeglut to qt

    Solved
    6
    0 Votes
    6 Posts
    547 Views
    L
    @SGaist Yes. I would like to preserve the fortran code as much as possible. I think I will close this and ask more specific questions in another thread. Thanks
  • How to "wrap " text widgets in debug ?

    Unsolved
    17
    0 Votes
    17 Posts
    1k Views
    A
    @mpergand Yes, decided against the whole idea "interleaving" debug trace with output. It actually came as a way to bypass QtDesigner "break layout" . Doing so I always come up with weird, unwanted layout. Now I do copy the original layout and can recover... Now I put output in one tab and debug TRACE in another. Then user can choose to observe the TRACE if he desires so. I still think the qDebug is a decent tool and needs for additional preprocessor macros is debatable.. Cheers
  • 0 Votes
    18 Posts
    1k Views
    A
    @mpergand thank you for your suggestion finally i managed to do what I wanted with Qdir and Qfile (changing the source code ) but as discussed previously it's not practical Your suggestion is not Bad, but as I mentioned it above My problem is different , I'll think about the team's proposals! thanks anyways
  • Problem with filter on a QSqlRelationalTableModel when non latin characters

    Unsolved
    8
    0 Votes
    8 Posts
    552 Views
    P
    @jsulm said in Problem with filter on a QSqlRelationalTableModel when non latin characters: @Panoss said in Problem with filter on a QSqlRelationalTableModel when non latin characters: I think it's the easiest way Adding "COLLATE NOCASE IN" to your select query is easier... The "COLLATE NOCASE IN" is giving me an error: 'Execution finished with errors. Result: near "ΙΝ": syntax error' So there is no "COLLATE NOCASE IN", only "COLLATE NOCASE". Which works correctly only for latin characters.
  • Qt5 and system-wide dark mode

    Unsolved
    1
    0 Votes
    1 Posts
    274 Views
    No one has replied
  • Layout managers screen connection effect

    Unsolved
    4
    0 Votes
    4 Posts
    284 Views
    M
    As the icon explicitly stated, frame 27 has no layout.
  • Error when launching rqt

    Unsolved
    9
    0 Votes
    9 Posts
    20k Views
    J
    @JonB , @jsulm , @Pl45m4 Thanks everyone. I managed to have the problem resolved based on your suggestion and advices. 1. "could not connect to display" error Because the x-server was trying to connect the remote x-client. But the x-client was not launched. After launching VcXsrv, connection was established and the GUI app appeared on the remote PC (i.e. x-client side). 2. however, still have some error message Although the connection was successful, x-server reported the following error: libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Managed to find the solution posted at https://itectec.com/ubuntu/ubuntu-win10-linux-subsystem-libgl-error-no-matching-fbconfigs-or-visuals-found-libgl-error-failed-to-load-driver-swrast/ All error messages are gone by now. Hope this post benefit those who are having the same problem as mine. Thank you very much guys!
  • Getting a QtChartView inside of a QGraphicsView

    Solved
    4
    1 Votes
    4 Posts
    2k Views
    M
    @SGaist said in Getting a QtChartView inside of a QGraphicsView: ce QChartView Thanks for the answer. Yes i was just desperatly trying to do something.. I have already fixed my issue, but thanks for another solution.
  • Problem when using Qt 6.2.2 with QgsApplication

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    K
    Thank you @mchinand and @Christian-Ehrlicher for your answers. That problem has been solved, and I have another problem now. /usr/bin/ld: main.o: in function `__cxx_global_var_init.8': /home/unibw/dev/cpp/QGIS-Debug-Build/../QGIS/src/core/qgsapplication.h:1020: undefined reference to `QgsSettingsEntryStringList::QgsSettingsEntryStringList(QString const&, QgsSettings::Section, QList<QString> const&, QString const&)' /usr/bin/ld: mainwindow.o: in function `__cxx_global_var_init.8': /home/unibw/dev/cpp/QGIS-Debug-Build/../QGIS/src/core/qgsapplication.h:1020: undefined reference to `QgsSettingsEntryStringList::QgsSettingsEntryStringList(QString const&, QgsSettings::Section, QList<QString> const&, QString const&)' clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Makefile:320: Cpp_GUI] Error 1 and the line 1020 in qgsapplication.h is : https://qgis.org/api/qgsapplication_8h_source.html#l01020 The error comes from the library file. I looked at issues on QGIS Github but couldn't see this error. Do you have an idea about this?
  • QNetworkAccessManager and client certificate

    Solved
    1
    0 Votes
    1 Posts
    262 Views
    No one has replied
  • How to change Qt's default selection behavior?

    Unsolved
    4
    0 Votes
    4 Posts
    459 Views
    jsulmJ
    @tushu said in How to change Qt's default selection behavior?: class ellipse : public QGraphicsItem Shouldn't you subclass QGraphicsElipseItem as @SGaist already suggested?
  • Handling of Surrogate Pair Characters

    Solved
    3
    0 Votes
    3 Posts
    377 Views
    M
    Thank you for your response. You've been very helpful.
  • Why are there two contexts instead of one?

    Unsolved
    1
    0 Votes
    1 Posts
    146 Views
    No one has replied
  • Bluetooth examples = btscanner and btchat

    Unsolved
    6
    0 Votes
    6 Posts
    672 Views
    M
    @AnneRanch Yes, I do. And there are multiple valid contexts for the word "error" (for example, overriding QBluetoothServiceDiscoveryAgent's implementation, handling the signal by the same name, or just referring to the general idea of an error -- we can't tell, because we aren't sitting next to you). Also version and OS is not a sideline. It's directly relevant to any quirks that you may be running into, and also to any advice (e.g. varying support by build kit, the version of the example itself, etc.). It's also fairly basic information to provide when asking a question about an API of any sort. So, please, either state your question clearly, or don't get any help. And above all, be nice. The people here volunteer to spend time helping strangers.
  • Might Qt subsystem initialization time depend on compiler optimization level?

    Unsolved
    2
    0 Votes
    2 Posts
    262 Views
    kshegunovK
    @Andreas-Schacherbauer said in Might Qt subsystem initialization time depend on compiler optimization level?: Could it be that Qt subsystem initialization (font rendering for example) performance depend on the compiler optimization level that was used during the Qt build? Absolutely. Or are there other ways to improve the performance of e.g. setting up font rendering? For production use the most optimized build you can muster.* For development, you might want to have a debug build. I'm asking this because we have a binary that was build with an older version of Qt (probably 5.10.x) which initializes font rendering 4x faster then if we build the same version of Qt ourselves. Is it the same compiler? Do you enable the same sort of optimizations? For example, do you see -march=native or -mavx2 or stuff like this? It may very well be that the prebuilt version is well optimized for the hardware, while yours may not be. * Except in some niche cases (e.g. you may use a release build with debug information to track a bug or profile a piece of code)
  • Adding indexed widgets ?

    Solved
    4
    0 Votes
    4 Posts
    407 Views
    Christian EhrlicherC
    You want to store a pointer in an array of objects --> ui->pushButton is a pointer, not an object. Use an array of pointers instead.
  • This topic is deleted!

    Unsolved
    26
    0 Votes
    26 Posts
    112 Views
  • Qt installation on macOS 10.13.6

    Solved
    12
    0 Votes
    12 Posts
    3k Views
    jsulmJ
    @SPlatten You don't download a Kit. Again: you downloaded QtCreator offline installer and it contains exactly that: QtCreator, nothing more (also not maintenance tool). To get a kit you have to install Qt. Either use Qt Online Installer or a Qt Offline Installer. QtCreator != Qt