Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Vertical QScrollBar seems to have height 0

    Solved
    6
    0 Votes
    6 Posts
    529 Views
    S
    @Pl45m4 thank you. Interesting. Not sure how to specify width/height if it is supposed to be extending, so will try without padding. Is there any explanation why this is happening? Not like it matters for the practical usage, but just curious to read about it more.
  • Can't we build Qt with /Zc:wchar_t- flag anymore?

    Unsolved build 6.8
    2
    0 Votes
    2 Posts
    335 Views
    Christian EhrlicherC
    @naveen13 said in Can't we build Qt with /Zc:wchar_t- flag anymore?: Is there any workaround without altering the Qt source file No. You might provide a patch and see if it gets accepted though.
  • Combining cells in gridlayout

    Unsolved
    3
    1 Votes
    3 Posts
    3k Views
    A
    @mrjj, thank you!
  • Use case and difference between QPalette and Qt Style Sheet?

    Unsolved
    10
    1 Votes
    10 Posts
    5k Views
    RokeJulianLockhartR
    KColorScheme is a superset of QPalette @SGaist, it indeed is, per api.kde.org/frameworks/kcolorscheme/html/classKColorScheme.html: KColorScheme currently provides access to the system color palette that the user has selected (in the future, it is expected to do more). It greatly expands on QPalette by providing five distinct "sets" with several color choices each, covering background, foreground, and decoration colors. Thanks. Styling Plasma can be done through other means such as Plasma Theme which is a set of SVG files. Yeah, it's a bit of a mess: thelibre.news/the-future-of-kde-styling-and-design.
  • Where does Qt get the default application font?

    Solved
    9
    5 Votes
    9 Posts
    42k Views
    RokeJulianLockhartR
    Typefaces QFontDatabase @Taz742, it looks like the answer to this question is QFontDatabase::SystemFont: enum QFontDatabase::SystemFont Constant Value Description QFontDatabase::GeneralFont 0 The default system font. QFontDatabase::FixedFont 1 The fixed font that the system recommends. QFontDatabase::TitleFont 2 The system standard font for titles. QFontDatabase::SmallestReadableFont 3 The smallest readable system font. Sizes Does anyone know of anything similar for font sizes? I realise that warrants another question, but... The undermentioned appear correct: QFontDatabase::standardSizes() QFontDatabase::smoothSizes() QFontDatabase::pointSizes()
  • QDialog Showmaximized not working

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    Pl45m4P
    @Seb-Tur said in QDialog Showmaximized not working: what is strange that showFullScreen() works ok Therefore check this topic.
  • Sudden 'type_traits' file not found"

    Unsolved
    3
    0 Votes
    3 Posts
    995 Views
    A
    @ggalt Hi, I actually solved it by installing a different g++ version via sudo apt install g++-14 Apparently clang found version 14 and wanted to use it but only 13 was installed. Don't asked me why. I also don't really know if that was the right way to solve it but it works so far.
  • libmysqlclient.so.18 is missing

    Unsolved
    18
    0 Votes
    18 Posts
    5k Views
    Christian EhrlicherC
    ... Or simply delete the Qt mimer sql plug in if it is not needed.
  • QTableWidget "Shrink to Fit"

    11
    0 Votes
    11 Posts
    20k Views
    J
    Thanks for the solution. I'm going to give it a try. But shouldn't the solutions take into account whether or not a column is hidden?
  • Where's the frameworks on a app for mac i built

    Unsolved
    14
    0 Votes
    14 Posts
    1k Views
    SGaistS
    You should crank up the verbosity to see exactly what is happening. Also, do you have multiple versions of macdeployqt on your system ?
  • Frameless window not working with qt 6.8

    Unsolved
    4
    0 Votes
    4 Posts
    559 Views
    I
    @Paddle said in Frameless window not working with qt 6.8: But it feels quite hacky If the part that bothers you is the hard-coded timeout, you can put this bit of code in a showEvent handler for a more deterministic effect.
  • Python server only receives initial chunk of UDP Datagram from writeDatagram

    Unsolved
    5
    0 Votes
    5 Posts
    489 Views
    JonBJ
    @rsison As @Christian-Ehrlicher and @jsulm have said here. It is worth mentioning that this is effectively the same question with the same answer from @Bonnie over at your other thread https://forum.qt.io/post/821765.
  • Qt Creator 15 on Fedora Linux 41 can't find package LinguistTools

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    GilboonetG
    Well today I tried to build my project with language support and it simply work, maybe is it due to system updates.
  • Most widgets obscured, covered up by black

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    G
    @gibbogle I should noe that setting font using setFont() on a widget with QSS not guaranteed to work (it shouldn't work but in someversions and patforms it does). These are related to two different ways to render windet. A call to widget->setAutoFillBackground(true); should have same result here. Upscaling and other visual effects require autofiling or background will be black. QSS use equals to activating autofill.
  • is the code is a bug?

    Unsolved
    2
    0 Votes
    2 Posts
    216 Views
    jsulmJ
    @nicker-player Please format your code properly! Please post the error you get! Where is this: QTableWidget table; If it is in a method/function - what do you think what its lifespan is?
  • Destroy the signal/slot connection when the slot receives the signal

    Unsolved
    14
    0 Votes
    14 Posts
    1k Views
    S
    I am just wondering if anyone has a answer of this?
  • 0 Votes
    4 Posts
    388 Views
    B
    @rsison said in QImage into QByteArray - Can anyone tell me if what it has created is valid enough to be turned back into a PNG?: socket.writeDatagram(Temp.data(), QHostAddress("127.0.0.1"), 80); Here should be the problematic code I think, why are you using Temp.data() instead of Temp? It will get a const char * from Temp and convert it to another QByteArray as a \0 terminated string so there won't be any 0x00 left (and the data after 0x00 in every chunk). So you either use writeDatagram(Temp, ... or writeDatagram(Temp.data(), Temp.size(), ... Also I think it should be better to use TCP in your case. UDP chunks may arrive in unexpected order, or missing. It is not 100% reliable even transferring on localhost.
  • Scaling problem

    Unsolved
    5
    0 Votes
    5 Posts
    306 Views
    SGaistS
    Beside the remark of @jsulm, unless I am missing something, there's no layout anywhere so there's no auto-scaling done.
  • "No CMake Configuration" when switching to Release

    Unsolved
    1
    0 Votes
    1 Posts
    75 Views
    No one has replied
  • Cross Thread Signals not working

    Unsolved
    14
    0 Votes
    14 Posts
    1k Views
    M
    @Pl45m4 I just tried the exact same code, but all function in one class. THIS WORKS When I split up my class, CanData::parseSignalValues was being called (checked with a simple qDebug()). CanData::parseSignalValues is posted in reply #8 by the way.