Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
82.8k Topics 452.7k Posts
  • Is there a place to do feature requests?

    Unsolved
    3
    0 Votes
    3 Posts
    100 Views
    M

    @ChrisW67 Thanks

  • QNetworkAccessManager cache

    Unsolved
    3
    0 Votes
    3 Posts
    109 Views
    SGaistS

    @jsulm based on the link, I think this was an answer to an old question.

  • QtConcurrent::run errors with Qt6

    Unsolved
    2
    0 Votes
    2 Posts
    95 Views
    SGaistS

    Hi and welcome to devnet,

    From a quick look at the documentation, you are not passing the arguments in the correct order. You need pass the member method first and then the rest of the parameters.

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

    Solved
    2
    0 Votes
    2 Posts
    95 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.

  • 0 Votes
    6 Posts
    218 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.

  • 0 Votes
    2 Posts
    112 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
    537 Views
    C

    Feel free to log a bug after searching to see if one already exists.

  • 0 Votes
    19 Posts
    5k 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
    141 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
    108 Views
    G

    That is what I thought. Thanks for the confirmation.

  • 0 Votes
    3 Posts
    162 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
    285 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
    166 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.

  • 0 Votes
    4 Posts
    123 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
    284 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
    613 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
    239 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
    9k 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