Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Can't seem to get shaders to work.

    Unsolved
    2
    0 Votes
    2 Posts
    95 Views
    J
    Hey! It seems like it is impossible to pass javascript arrays to ShaderEffect shader parameters. I have been looking for a solution for this in pure QML as well. The best workaround is to pass an image and use the channels as info, this is prone to floating point precision issues though. https://bugreports.qt.io/browse/QTBUG-50493
  • Layout of fixed size objects and one object that changes size

    Unsolved qframe qlineedit
    2
    0 Votes
    2 Posts
    117 Views
    SGaistS
    Hi, AFAIK, the only way to do that would be to remove the widget from the layout it's in and you manage yourself its new independent life (e.g. resizing and moving).
  • Problem with transparent background using Inkscape SVG icons in Qt

    Unsolved
    2
    0 Votes
    2 Posts
    180 Views
    jsulmJ
    @buhtz You can see here what is supported by Qt: https://doc.qt.io/qt-6/svgextensions.html
  • class "has not been declared" in moc file though in class include is correct.

    Unsolved
    13
    0 Votes
    13 Posts
    820 Views
    L
    Thanks for your interest. They are there https://forum.qt.io/topic/163508/headers-not-found/4 Unfortunately, after solving these problems the same type of issue reappeared. ChatGPT pretends that this is because file name should be capitalised exactly the same as the class name which I find hard to believe. For now I am trying another way with the old .pro file.
  • Using QtCharts in a Pyside6 Application

    Unsolved
    2
    0 Votes
    2 Posts
    123 Views
    C
    I am seeing the exact same problem. However, I let AI generate some QML Chart code and the application works. It would be nice to have code completion working.
  • Swapping columns on QTreeView causes row highlight to disconnect

    Solved
    3
    0 Votes
    3 Posts
    114 Views
    P
    @Christian-Ehrlicher Thanks for your response. I was worried that might be the case. Changing the model or implementing a proxy model will be a bigger change to the code, but should be doable.
  • QIcon::pixmap() returns image double the size requested

    Unsolved
    7
    0 Votes
    7 Posts
    716 Views
    J
    i've bypassed it using : QSize iconSize(16, 16); QPixmap img = QIcon::fromTheme("folder-alt").pixmap(iconSize).scaled(iconSize, Qt::KeepAspectRatio, Qt::SmoothTransformation); qDebug() << img;
  • partially update default stylesheet

    Unsolved
    26
    0 Votes
    26 Posts
    2k Views
    SGaistS
    @SimonSchroeder Native styles are implemented such that they follow the original platform style and are thus free to ignore modified palette values to stay coherent. Thus, depending on what you want to change, you will need to check what the original style does underneath. I am not claiming that it's simple for everything, far from it. Many times, it's a question of re-implementing drawPrimitive to either call the base class implementation with modified values or having your own implementation based out of the original class.
  • getting the issues with QDialog

    Unsolved
    5
    0 Votes
    5 Posts
    216 Views
    S
    This is my dialog — when it’s created, a faint shadow briefly appears on the left margin for a fraction of a second. It doesn’t happen every time, but it occurs occasionally
  • Weird behavior of QT windows on Linux

    Solved
    13
    0 Votes
    13 Posts
    569 Views
    deisikD
    The solution was to make the main window stay on bottom with the Qt::WindowStaysOnBottomHint flag set (yes, I can live with that) But if you have other ideas, please share
  • Headers not found

    Unsolved
    4
    0 Votes
    4 Posts
    115 Views
    L
    Seems to be solved by set(CMAKE_INCLUDE_CURRENT_DIR ON) but not quite sure (I have other errors). Why the ui compiler would include with < and < instead of " " ?
  • Terminal Output Of Application Outside of Creator

    Solved
    5
    0 Votes
    5 Posts
    182 Views
    D
    @JonB Thank you for your post. It turns out the AllocConsole() was the solution. It was a Windows problem I was unfamiliar with rather than QT. Have a great week!
  • Qt 6.10 and text encodings

    Unsolved
    16
    0 Votes
    16 Posts
    1k Views
    AndyBriceA
    @cristian-adam Thanks.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • Embedding Lightweight Web Tools into Qt Desktop Apps — Best Approaches?

    Unsolved
    3
    0 Votes
    3 Posts
    174 Views
    A
    Please choose webview2, which has higher performance than QWebEngine and is easier to integrate than cef. refer to https://thinkinginqt.com/20250726_qt-web/20250726_qt-web.html
  • Custom QHeaderView doesn't adjust size

    Unsolved
    4
    0 Votes
    4 Posts
    129 Views
    SGaistS
    If you want to sort, why are you setSortIndicatorShown(false); ?
  • fusion style is bad in combobox

    Unsolved
    4
    0 Votes
    4 Posts
    143 Views
    Christian EhrlicherC
    I don't understand your problem - what exactly is wrong here?
  • How should i do to make a qwidget cover qvulkanwindow

    Unsolved
    3
    0 Votes
    3 Posts
    120 Views
    C
    @Pl45m4 i do that,and also dosen`t work.
  • QPageLayout gives result from wrong printer

    Unsolved
    1
    0 Votes
    1 Posts
    41 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    13 Views
    No one has replied