Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qt 6
    Log in to post
    • All categories
    • K

      Solved How to rename Target Executable using CMake in Qt6?
      General and Desktop • qt 6 qt6 executable cmake • • Kevin470

      4
      0
      Votes
      4
      Posts
      325
      Views

      V

      @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

    • B

      Solved Capture a frame (image) from a video playing in a QT GUI
      General and Desktop • video frame c++ qt 6 • • BigBen

      7
      0
      Votes
      7
      Posts
      467
      Views

      SGaist

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

    • G

      Unsolved Qt Creator not find the sysroot library
      Installation and Deployment • qt 6 rpath sysroot cross compile windows • • Gio26

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

    • G

      Unsolved Utilisation des formats d'images divers avec qt
      French • qt 6 qt creator c++ gui • • gouneken

      2
      0
      Votes
      2
      Posts
      305
      Views

      AxelVienna

      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; }
    • H

      Unsolved Squares instead of letters when using QPainter::renderText on a texture placed in QOpenGLWidget
      General and Desktop • qt 6 opengl openglwidget • • harlamer

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

    • O

      Unsolved i have errors in Android Settings in QT Quick
      Qt 6 • android sdk qt creator qt quick qt 6 • • Osama Adel

      2
      0
      Votes
      2
      Posts
      219
      Views

      KroMignon

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

    • Y

      Unsolved How to use Qt 6.1.2 QtVirtualKeyboard layout in Qt 6.2.0
      Qt 6 • virtualkeyboard qt 6 • • Yina

      3
      0
      Votes
      3
      Posts
      167
      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

    • K

      Unsolved Is Qt Speech Deprecated?
      Qt 6 • qt speech qt 6 modules • • Karim Fadi

      3
      0
      Votes
      3
      Posts
      220
      Views

      V

      Looking at the repo it should ship with Qt 6.2

    • R

      Unsolved xx.ui.qml files and Qt 6 impossible to get it to work?
      QML and Qt Quick • qt quick qt 6 ui.qml ui form • • RemcoMusic

      9
      0
      Votes
      9
      Posts
      870
      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.

    • DrugsAsLifestyle

      Solved Couple of strange errors. MSVS2019 + CMake + Qt
      General and Desktop • qt 6 msvc2019 cmake errors • • DrugsAsLifestyle

      2
      0
      Votes
      2
      Posts
      173
      Views

      DrugsAsLifestyle

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

    • B

      Unsolved QNetworkConfiguration and QNetworkConfigurationManager alternatives for Qt 5.15.2
      General and Desktop • qt 5.15 qnetwork qt 6 • • BikashRDas

      3
      0
      Votes
      3
      Posts
      715
      Views

      Pablo J. Rogina

      @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

    • jeanmilost

      Solved Qt Quick views 2.0 and PDF printing
      QML and Qt Quick • pdf qt quick qt 5.14 qt 6 • • jeanmilost

      4
      0
      Votes
      4
      Posts
      979
      Views

      jeanmilost

      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.