Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
82.7k Topics 452.1k Posts
  • What do you use for mac/win in-app-purchase?

    Unsolved
    3
    0 Votes
    3 Posts
    62 Views
    D

    currently i use the "Classic" Paddle SDK on mac, and API on Windows, since they got rid of the Windows SDK.

    on mac, it's entirely in-app, and the return value of successful purchase is the serial number, so the user doesn't have to enter it.

    on Windows, it used to be the same, when they supported the win SDK, but since they pulled that rug, it now goes to a web site for the purchase, and at the end the user is presented with the serial number, which they copy. switching back to the app, it notices the SN on the clipboard and enters it for them, so even then they do not have to enter it.

    my WISH is to go back to a fully in-app method, like we have now with the mac. but the mac SDK is soon to be discontinued too, and their licensing server is ALSO going offline so they will no longer manage serial numbers. (i have a rant with the fury of a thousands suns about all this).

    so, what eCommerce solution do folks use, who provide in-app purchase, and manage serial numbers, activations, license checks etc?

  • 0 Votes
    1 Posts
    24 Views
    No one has replied
  • QSplitter: Disable "magnetic" behavior of the handles

    Unsolved
    2
    0 Votes
    2 Posts
    43 Views
    S

    Found the solution myself.
    Just added
    p->setMinimumSize(2, 2);
    for each QListWidget - p->setMinimumSize(0, 0); wont work as this resets the minimum Width - i was not aware of this.

    55a0621c-a147-43ff-ab00-a902a0c3f14c-grafik.png

  • Migrating from MFC to Qt: Modal window in MFC

    Unsolved
    6
    0 Votes
    6 Posts
    202 Views
    JKSHJ

    @jsulm said in Migrating from MFC to Qt: Modal window in MFC:

    @JKSH OK, didn't know Qt would use the event loop from MFC automatically.

    I didn't know either, until I tried to port QtWinMigrate to Qt 6.

    Volker (our Chief Maintainer) said:

    Based on what I'm seeing in Qt 6's (and Qt 5's) Win32 event dispatcher, QtWinMigrate isn't needed at all, at least not for hooking a Qt UI into a Win32 event loop. The code touched by https://codereview.qt-project.org/c/qt/qtbase/+/387409 is designed to make delivery of posted QEvents work even if Qt is not running the event loop.

  • JS notation to Qt

    Solved
    4
    0 Votes
    4 Posts
    130 Views
    JonBJ

    @Damian7546
    Yes, that principle looks good.

    I said the JS looked sufficiently close to JSON that you could have made a few edits in an editor (e.g. change single quotes to double quotes for strings, remove trailing commas from last elements in lists, etc.) so that you could have used Qt's JSON calls to directly read that into an auto-created JSON structure. And that is the "simplest".

    But if you want an actual C++ struct/class, with specific typed members, for each compound entry in the source then you do indeed need to do what you show: declare a corresponding C++ structure and alter the original a little more so that you can assign to it directly in source code. But would not allow assignment from data in external file, without writing separate code for that, which the JSON would.

    A couple of elements in the JS you have require an additional example member variable, which can presumably be empty in items which do not specify it.

  • QT 6.8.1 QPA plugin version mismatch

    Unsolved
    5
    0 Votes
    5 Posts
    158 Views
    jsulmJ

    @Rukshan-Perera said in QT 6.8.1 QPA plugin version mismatch:

    When I tried to build qt6.8.1 locally

    How did you install it?

  • 0 Votes
    5 Posts
    111 Views
    J

    @Gaobo said in Re-implemented QComboBox and QLineEdit, the dropdown flash with a left-click using the touchpad:

    Does ‘left mouse button’ mean pressing the left button of the touchpad or just touching it once with a single finger?

    Just touch it once with a single finger.

    @Gaobo said in Re-implemented QComboBox and QLineEdit, the dropdown flash with a left-click using the touchpad:

    Is that question also appear on qt original QComboBox?

    The question does not appear on qt original QComboBox.

    CustomComboBox initialize like:

    auto items = _treeModel->GetItemList(); for (int i = 0; i < items.size(); ++i) { auto name = items[i][0]->text(); auto shape = items[i][1]->text(); ui.comboInput->addItem(name, shape); }

    The full code is in my question, so you can try it out if it's convenient for you

  • Issue with "QSslSocket" when Sending an Email

    Unsolved
    4
    0 Votes
    4 Posts
    101 Views
    C

    @Mourad2024 said in Issue with "QSslSocket" when Sending an Email:

    Despite this, I’m unable to successfully send the email, and no further progress is made after the MAIL FROM command.

    What further progress have you tried? 250 Ok indicates the envelope sender was accepted but you appear to have not sent anything more.

    You should be sending one or more RCPT TO:<alice@example.com> lines, a DATA line, the email headers, blank line, message body, and a line containing only a period to complete the transfer. See SMTP transport example.

    BTW; What does any of this have to do with the thread title?

  • How to load a DICOM data with DCMTK

    Unsolved
    3
    0 Votes
    3 Posts
    90 Views
    SGaistS

    Hi,

    First thing, I would simplify the code to handle one known case, for example an RGB image and just show it on a QLabel.

    That said, from memory, DICOM images are pretty tricky and a library such as VTK is often used to handle them with Qt as front end.

  • 0 Votes
    9 Posts
    5k Views
    F

    This is an old topic, but you can use canReadLine() to check if a complete line has arrived. If not, just don`t read the buffer and wait for the next readyRead(). When a complete line arrive, use readLine(), so the tcp socket will let the contents after the \n to the next read and so on.

  • Qt 6 qml module and qml import path

    Unsolved
    4
    2 Votes
    4 Posts
    2k Views
    EndrII 0E

    @pjorourke
    What about qmlls (qml language server) - this language server continues to sent me warnings about not founded modules, but these modules are exists and qt creator found them.

  • The application was unable to start correctly 0xc0000279

    Unsolved
    2
    0 Votes
    2 Posts
    67 Views
    hskoglundH

    Just a wild guess, but if you have antivirus, try disabling it (unless it's Microsoft Defender).

  • 0 Votes
    2 Posts
    65 Views
    C

    @Sauntor said in How to make a library with the installed layout looks like Qt's internal modules (a.k. QtCore, QtQml, ect.)?:

    All in a word, how to make the library users use Demo like the way they use QtCore, for example:

    You cannot control how the users use the headers provided but you can give then the option of "clean" header names like <QWidget> the same way that Qt does it. The deployed headers files are:

    - include - QtWidgets (directory) - QtWidgets (file) - QWidget (file) - qwidget.h (file)

    The file "QWidget" simply contains:

    #include "qwidget.h"

    The file QtWidgets similarly includes all the headers for the entire module.

    The qmake or cmake setup ensures that the include/QtWidget folder is added to the include path when the widget module is invoked (e.g. QT += widgets). The include folder is also present. So, the user can specify:

    // found via the top level include path #include <QtWidgets/QWidget> #include <QtWidgets/qwidget.h> // found via the QtWidgets include path #include <QtWidgets> #include <QWidget> #include <qwidget.h>

    To do this for your library you need to deploy at least the "clean" files.

    I do not want to write any camel cased header wrappers manually, it should be auto generated, and how?

    You only need to do this once and check it in to your source control. It's probably faster than trying to automate. As for how you could automate this; there's no magic bullet here.

  • Controlling cursor size in qt applications

    Unsolved
    1
    0 Votes
    1 Posts
    86 Views
    No one has replied
  • QVulkanWindow freezes until swapchain recreation on macOS

    Unsolved
    1
    0 Votes
    1 Posts
    33 Views
    No one has replied
  • 0 Votes
    5 Posts
    94 Views
    l3u_L

    Well okay, then I'll go for variant 2 – seems more logical to me to declare such a shared const variable right away instead of having to re-reference it inside the implementation.

    Thanks for the clarification :-)

  • QVulkanWindow freezes until window resize on macOS only

    Unsolved
    4
    1 Votes
    4 Posts
    208 Views
    braernochB

    As for an MRE, this problem reproduces with the stock "hellovulkantriangle" example from Qt.

    Issue is present in all tested Qt versions: 6.5.3, 6.8.0, 6.8.1, 6.9.0
    Using Vulkan: 1.3.296 with bundled MotenVK
    On macOS: Sequoia 15.1

  • Build a QT project in VSCode on macOS.

    Unsolved
    1
    0 Votes
    1 Posts
    46 Views
    No one has replied
  • Moc file

    Unsolved
    13
    0 Votes
    13 Posts
    531 Views
    J

    if you just cp ABC to CBA it has no effect
    If you jump to moc file, then click to missing pushbutton function to go header
    then delete all functions which cause error
    its gone

  • Help Changing Format of TextEdit Without Replacing Contents

    Unsolved
    2
    0 Votes
    2 Posts
    74 Views
    C

    @CodermanBill wrote, "but nothing changed".

    You take some plain text, wrap it in HTML that does not attempt to style or otherwise format it, reinsert it into the editor, and expect something to change (I assume visually). What exactly are you expecting?