Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • How to handle the OnRowChange EditStrategy in master/detail tables?

    Unsolved
    1
    0 Votes
    1 Posts
    117 Views
    No one has replied
  • QCommandLineParser 'option not expecting values' means?

    Solved
    2
    0 Votes
    2 Posts
    341 Views
    D
    Because of you use not flag (set/unset) but value (like '-n 123'), you should also set valueName... So your code should be QCommandLineOption NumOption(QStringList() << "n" << "num", "help text", "num"); I ask Qt company to make warning message more user-friendly here.
  • how to make the text wrap automatically in the qtablewidgetitem?

    Unsolved
    6
    0 Votes
    6 Posts
    638 Views
    JonBJ
    @nicker-player The hyphen character (-) is often where word breaking occurs in English. On the other hand the underscore character (_) is treated a s part of a "word" and is not where wrapping gets chosen to occur. If QTextOption::WrapAnywhere does not work try WrapAtWordBoundaryOrAnywhere just in case that works better. I don't know what to suggest if none of these work.
  • When using the qxorm plugins to control the qsqldatabase occured the errors.

    Unsolved
    2
    0 Votes
    2 Posts
    259 Views
    JonBJ
    @nicker-player You either have a query still active when you attempt to close the database, or perhaps you have kept a QSqlDatabase instance in existence and then are exiting your program. Check https://doc.qt.io/qt-6/qsqldatabase.html#details Warning: It is highly recommended that you do not keep a copy of the QSqlDatabase around as a member of a class, as this will prevent the instance from being correctly cleaned up on shutdown. If you need to access an existing QSqlDatabase, it should be accessed with database(). If you chose to have a QSqlDatabase member variable, this needs to be deleted before the QCoreApplication instance is deleted, otherwise it may lead to undefined behavior.
  • Cannot determine dependencies of qtposition_nmea.dll

    Unsolved
    16
    0 Votes
    16 Posts
    2k Views
    C
    Feel free to log a bug after searching to see if one already exists.
  • [Solved]My custom widget will not show in Designer

    19
    0 Votes
    19 Posts
    6k Views
    SGaistS
    @WolfgangGriech hi, From memory, the suggestion to have a plug-in and separate library is to keep the dependencies down to a minimum because otherwise you would pull the designer library into your application.
  • QTextureGlyph Runtime Errors

    Solved
    3
    0 Votes
    3 Posts
    287 Views
    M
    Hi @SGaist, Yeah that was a typo. And yes, after moving to v6.8.1, it seems that the problem is gone. Thank you.
  • Need closing element name

    Solved
    3
    0 Votes
    3 Posts
    305 Views
    G
    That is what I thought. Thanks for the confirmation.
  • SDK built with meta-qt6 fails to load QML application in runtime

    Unsolved
    3
    0 Votes
    3 Posts
    373 Views
    R
    Okay thank you. I am now working on Ubuntu 22.04.5 LTS I believe I may have only one problem to solve now. How to influence imageformats path looking for imageformat libraries in the source path. All the other plugins are fixed by QT_QPA_PLATFORM_PLUGIN_PATH=/opt/.../core-64-poky-linux/usr/lib/plugins/platforms qt.core.plugin.factoryloader: checking directory path "/home/.../projects/.../src/ui/imageformats" ...
  • drawControl not being called for custom styled elements

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    Christian EhrlicherC
    You should start with this example to see if it works and then add your function to find out what is going wrong...
  • QTextStream::readLine() returns null

    Solved
    5
    0 Votes
    5 Posts
    513 Views
    JonBJ
    @PaulHuber Yes, as per the answer there. The Application Output pane is only for output. I believe current Creator has an alternative "terminal setting" these days, which allows a genuine terminal with input as well as output allowed if you want to use it that way.
  • Is it possible to use static libraries in non-static applications?

    Solved
    4
    0 Votes
    4 Posts
    443 Views
    B
    @jsulm I have found a way but I don't know if it will be safe and not degrade the performance of the library. DEFINES += FTD2XX_STATIC win32: LIBS += -L$$PWD/Static/amd64/ -lftd2xx INCLUDEPATH += $$PWD/. DEPENDPATH += $$PWD/. win32:!win32-g++: PRE_TARGETDEPS += $$PWD/Static/amd64/ftd2xx.lib else:win32-g++: PRE_TARGETDEPS += $$PWD/Static/amd64/libftd2xx.a I added “DEFINES += FTD2XX_STATIC” before the library file is included.
  • Convert function to qt notation

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    jsulmJ
    @Damian7546 said in Convert function to qt notation: qToLittleEndian(val, &le); qToLittleEndian writes the result into the memory block the second parameter points to. And you're passing pointer to QByteArray! It should be: qToLittleEndian(val, le.data());
  • 0 Votes
    7 Posts
    1k Views
    JonBJ
    @wylun If it's a First Chance Exception then as I wrote two posts above.
  • QByteArray being corrupted in a custom class

    Solved
    7
    0 Votes
    7 Posts
    730 Views
    T
    @IgKh That was it! I forgot I was hacking around and that did it! Thank you!
  • NameError: name 'Qt' is not defined

    Solved
    11
    0 Votes
    11 Posts
    11k Views
    jsulmJ
    @sneha_chavan_07 Then please provide more information. Did you install PyQt5 and how? On which OS?
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • Known examples of Qt6 on game consoles?

    Unsolved
    6
    1 Votes
    6 Posts
    2k Views
    R
    @SimonSchroeder Well, I am doing it (Qt for games) but seems like I am alone, yes ;-)
  • Qt.Dbus

    Unsolved
    4
    0 Votes
    4 Posts
    401 Views
    Axel SpoerlA
    There are dozens, if not hundreds, of Ubuntu Forums. Let's be bold: millions, if not billions! However, I found no more than three at https://ubuntu.com/#community Ubuntu Forum that can confirm the bug Forums may reference bugs, but the bug tracker is probably more interesting wrt confirmation: https://bugs.launchpad.net This bug currently is a road block for Ubuntu 24.04 on x86_64 in our CI. Not sure if it relates to your issue as well.
  • How do I hide the window title bar from QDockWidget

    Unsolved window title qdockwidget
    34
    1 Votes
    34 Posts
    14k Views
    RokeJulianLockhartR
    I want to hide the default "window title" bar that's on top of the dockwidget. @lansing, stackoverflow.com/revisions/21701604/1 should work: dockWidget->setTitleBarWidget(new QWidget()); Otherwise, maybe follow stackoverflow.com/q/18918496.