Skip to content

Qt 6

This is where all Qt 6 related questions belong

816 Topics 3.9k Posts
QtWS25 Call for Papers
  • Compile qml into a CMake object library?

    Unsolved
    1
    0 Votes
    1 Posts
    104 Views
    No one has replied
  • QVideoSink doesn't handle alpha channel

    Unsolved
    10
    0 Votes
    10 Posts
    545 Views
    SGaistS

    Sure you can. You can clone the QtMultimedia sources.

  • Generating random Color as RGB value.

    Unsolved
    2
    0 Votes
    2 Posts
    961 Views
    jsulmJ

    @eefesafak said in Generating random Color as RGB value.:

    How can I generate random color as RGB value in a QThread

    In a RGB image each pixel consists of 3 numbers, so simply generate 3 random numbers and construct a pixel from those 3 numbers.
    https://doc.qt.io/qt-5/qrandomgenerator.html
    https://doc.qt.io/qt-5/qimage.html#setPixel-1

  • Pyside Theme not applying

    Unsolved
    1
    0 Votes
    1 Posts
    120 Views
    No one has replied
  • 0 Votes
    7 Posts
    830 Views
    R

    I stand corrected. I didnt' realize it until now, but when I've been working on Linux and cross-compiling for QNX QtCreator is inserting a -DCMAKE_TOOLCHAIN_FILE:PATH=%{Qt:QT_INSTALL_PREFIX}/lib/cmake/Qt6/qt.toolchain.cmake

    Looking at that toolchain file one of the main things it does is make sure QT_HOST_PATH is defined.

  • This topic is deleted!

    Unsolved
    15
    0 Votes
    15 Posts
    37 Views
  • how to add button list?

    Unsolved
    4
    0 Votes
    4 Posts
    332 Views
    JonBJ

    @yangyanhui4
    There is no "in-built" facility for that, you need to write it yourself. As @mchinand wrote the Flow Layout Example may give you a good starting point.

  • 0 Votes
    2 Posts
    1k Views
    S

    Qt 6 requires MingW-8 support in Ubuntu. Adding this PPA (https://launchpad.net/~cybermax-dexter/+archive/ubuntu/mingw-w64-backport) fixed the issue.

  • [Qt+OpenGL]

    Solved
    5
    0 Votes
    5 Posts
    356 Views
    A

    Sure with great pleasure,

    After disabling texture and shader program, you should specify the matrix mode in glMatrixMode:

    glMatrixMode(GL_PROJECTION) then load the projection matrix you used (call glLoadMatrixf)
    glMatrixMode(GL_MODELVIEW) then load the modelview matrix. Transform it to identity.
    Finally you can draw the coordinate system or any other object. In this case, the texture of the first object won't have any effect on any other object rendered after. ^^

  • This topic is deleted!

    Unsolved
    5
    0 Votes
    5 Posts
    67 Views
  • Class QMatrix4x4

    Unsolved
    29
    0 Votes
    29 Posts
    2k Views
    E

    @SGaist Hello again, I hope you're doing well.
    Well, I used another method to render the object and rotate using quaternions.

    Instead of specifying the matrix mode with
    glMatrixMode(GL_MODELVIEW)

    I used QMatrix4x4 class to create the model, view and projection matrices. So there is no need to load the modelview anymore.

    Thank you so much for your help and patience.

  • oracle driver

    Unsolved
    3
    0 Votes
    3 Posts
    157 Views
    Y

    thank you for your answer
    i will post the code and the error tomorrow when getting to work

  • no android permission in qt6

    Unsolved
    1
    0 Votes
    1 Posts
    84 Views
    No one has replied
  • "No WebView plug-in found!" with Qt 6.2.3 on Linux

    Solved
    5
    0 Votes
    5 Posts
    643 Views
    L

    Just to close the loop, I was unable to prove you wrong, @SGaist . I bit the bullet and recompiled with qtwebengine enabled (no small feat!) and everything started working the way I remembered it. So I think I may have led myself astray with optimistic recall.

  • 0 Votes
    8 Posts
    332 Views
    Christian EhrlicherC

    Hehe, no problem :)

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    30 Views
    No one has replied
  • Potential memory leak in QMediaPlayer.

    Unsolved
    1
    0 Votes
    1 Posts
    220 Views
    No one has replied
  • 0 Votes
    2 Posts
    124 Views
    jsulmJ

    @yangyanhui4 said in QT QtDataVisualization how to show QSurface3DSeries in QWidget:

    But I want to show it in a fixed QWidget which is defined in a ui file

    Then set this widget as parent of your Q3DSurface

  • [▀Axis Label in Qt]

    Unsolved
    2
    0 Votes
    2 Posts
    173 Views
    A.A.SEZENA

    I understand you are asking about QChart. If I understood correctly... As a solution you can add (x, y, z) image file that you have customized with QScatterSeries.

  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    38 Views
    No one has replied