Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • Reporting inappropriate content on the forums

    Pinned Locked spam
    29
    4 Votes
    29 Posts
    35k Views
    A
    Thank you for the report. I have banned the user, which got rid of the spam posting. Not a loss, as this user did not post any other content on the site. Just deleting this one posting was not possible. Thanks for reporting this.
  • Issue with QLabel and worwrap

    Unsolved
    18
    0 Votes
    18 Posts
    237 Views
    B
    @PLL3 said in Issue with QLabel and worwrap: Using this html markup tech looks like an easy solution for my issue (at least easier than manually calculating the rect and dealing with mouse events that way). Alas this would open us up for some code injection, since the text in those labels is loaded at run-time from some on-disk files, so this solution is a no-go sadly. Well it should be safe if you handle the text by QString::toHtmlEscaped(). But I actually don't like that the cursor needs to be unset when hovering. So I think the mouse events filtering may be a better way. Aren't you already handling the mouse events since QLabel has no "clicked" signal? @PLL3 said in Issue with QLabel and worwrap: Glad to see I'm not the only one having some issues with word-wrap, even though I never had issues with labels wrapping when not needed. This unnecessarily breaking lines issue only occurs when the sizehint width is used as the actual label width. In normal case, long text labels are usually horizontally expanding, so there won't be such problem. I never had such issues until my current project.
  • class "has not been declared" in moc file though in class include is correct.

    Unsolved
    13
    0 Votes
    13 Posts
    265 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.
  • QWidget not resizing because of Q3DScatter

    Unsolved
    2
    0 Votes
    2 Posts
    36 Views
    SGaistS
    Hi, This code is not enough to reproduce your issue as is. Please make it complete so that people can build it to help you find the issue. Also, which version of Qt are you using ? On which OS ?
  • Using QtCharts in a Pyside6 Application

    Unsolved
    2
    0 Votes
    2 Posts
    83 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
    50 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
    683 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;
  • Laying out items/widgets without stretching/spacing

    Unsolved
    1
    0 Votes
    1 Posts
    32 Views
    No one has replied
  • partially update default stylesheet

    Unsolved
    26
    0 Votes
    26 Posts
    701 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
    59 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
    228 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
    66 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
    133 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
    542 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
    110 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
  • Can't seem to get shaders to work.

    Unsolved
    1
    0 Votes
    1 Posts
    25 Views
    No one has replied
  • Custom QHeaderView doesn't adjust size

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

    Unsolved
    4
    0 Votes
    4 Posts
    111 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
    64 Views
    C
    @Pl45m4 i do that,and also dosen`t work.