Skip to content

QtWS: Super Early Bird Tickets Available!

  • 0 Votes
    2 Posts
    215 Views
    JonBJ

    @Platinum-Lucario said in How do I create real C# bindings for Qt6?:

    I know it was done with QtSharp in the past, but it's long been abandoned, so those bindings will only work with Qt5 and won't work with Qt6.

    If you want to do it for Qt6, and if QtSharp has suitable free use licensing, would that not be a good place to start rather than from scratch?

  • 1 Votes
    9 Posts
    502 Views
    CJhaC

    @JonB Yeah, I could do something similar, iterate over all widgets and pass on the event. Thanks, I will try this method in the final application.

  • 0 Votes
    7 Posts
    3k Views
    A

    @AlexMax
    The issues is marked fixed in 6.3 and 6.4, so it it still persists in 6.5, that would probably warrant a new issue, linking to the old one. Or is it captured by linked and still-open https://bugreports.qt.io/browse/QTBUG-99602?

  • 0 Votes
    4 Posts
    1k Views
    VRoninV

    @Kevin470 said in How to rename Target Executable using CMake in Qt6?:

    Is there some information that I am missing?

    Yes, how targets work in CMake. In what you posted above, however, everything is straightforward. Just do a find-and-replace for all instances of ProjectName1 to ProjectName2

  • 0 Votes
    7 Posts
    2k Views
    SGaistS

    Connect the videoFrameChanged signal of the sink to a custom slot so you will have the frame available to be saved.

  • 0 Votes
    2 Posts
    452 Views
    G

    I find one solution, I add in .pro:
    QMAKE_LFLAGS += -Wl,-rpath-link=path/to/sysroot/lib

    Is this the only way?
    Thanks.

  • 0 Votes
    2 Posts
    557 Views
    AxelViennaA

    Bonjour,
    es-tu sûr que le jpg a la bonne taille et qu'il peut être affiché dans le QPushButton ?
    Voici une petite méthode pour mettre une icône à la bonne taille.
    Salutations de Vienne, où il fait froid, dans le lockdown.
    Axel

    QImage tint(QString icon, QColor color, qreal strength, int w, int h) { QImage src = QIcon(icon).pixmap(QSize(w,h)).toImage(); if(src.isNull()) return QImage(); QGraphicsScene scene; QGraphicsPixmapItem item; item.setPixmap(QPixmap::fromImage(src)); QGraphicsColorizeEffect effect; effect.setColor(color); effect.setStrength(strength); item.setGraphicsEffect(&effect); scene.addItem(&item); QImage res = src; QPainter ptr(&res); scene.render(&ptr, QRectF(), src.rect() ); return res; }
  • 0 Votes
    2 Posts
    306 Views
    C

    @harlamer Without a minimal compilable example that demonstrates the problem there's not much we can do. We do not know what platform, what font, what texture and texture setup, how the painter has been set up, what "displayed correctly" means, etc.

  • 0 Votes
    2 Posts
    494 Views
    KroMignonK

    @Osama-Adel Please add Android SDK Command-line Tools, it is required to enable android build with QtCreator

  • 0 Votes
    3 Posts
    286 Views
    Y

    hello,

    the 6.1.2 version :
    6.1.2KeyBoard.PNG

    the 6.2.0 version:
    6.2.0KeyBoard.PNG

    there ain't much difference but the big difference is the close keyboard button which is in the 6.2.0 version under the comma(you need to hold it) which is annoying/confusing for the user.

    Kind regards
    Yina

  • Is Qt Speech Deprecated?

    Unsolved Qt 6
    3
    0 Votes
    3 Posts
    419 Views
    VRoninV

    Looking at the repo it should ship with Qt 6.2

  • 0 Votes
    9 Posts
    2k Views
    R

    @kshegunov Thanks for the correct query! I've researched the links you stated and I think my problem is before theirs.
    That is why I created a new bug report -> https://bugreports.qt.io/browse/QTCREATORBUG-25686
    I hope I have made myself clear enough so they will understand the problem.

  • 0 Votes
    2 Posts
    336 Views
    DrugsAsLifestyleD

    Fixed. This errors was because of Qt 6. I downloaded and linked previous version of QT - 5.15, and this errors disappeared

  • 0 Votes
    3 Posts
    1k Views
    Pablo J. RoginaP

    @BikashRDas said in QNetworkConfiguration and QNetworkConfigurationManager alternatives for Qt 5.15.2:

    I am using Qt 5.15.2 enterprise edition

    Is that version backed by a commercial license from Qt?
    If so, you may want to ask for help from Qt support directly

  • 0 Votes
    4 Posts
    2k Views
    jeanmilostJ

    Thank you for the answers, they provide very valuable info. So there is no real way to have a generic PDF printer, and each developer have to write its own, by writing its own Paint() function. That was that I though, unfortunately.

    Unfortunately, because writing my own drawing function brings another issue in my case: I cannot get back the content of the delegate property encapsulated inside my TableView object, in my qml interface file from the c++ code. More exactly, I can, in the best situation, retrieve a part of these info, by getting back the items already drawn on the user interface, from the TableView cache. But as not all the items may be available in this case, I may miss important info in various scenarios, e.g.for still not painted items. Or I may also hardcode the values to use during the PDF export inside the c++ code to reflect what was did in the qml file.

    These solutions may resolve my issue in a certain manner, but are weak in terms of generating good and reusable code, especially when designers are intended to often modify the qml interface during the development cycles.

    I perhaps will explore the QTextDocument object, and the way it handles the PDF printing. However I don't know if I really can use this component to replace my qml TableView object, as its organization was exactly what I needed to show my data to the user. I will also take a look in the QtWebEngine solution, but this may work only if the text remains editable in the generated PDF, as I said in my original post above.