Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Need help on adding 3rd party library to my project file

    Unsolved
    1
    0 Votes
    1 Posts
    187 Views
    No one has replied
  • Return interpolated values from QLineSeries

    Unsolved
    3
    0 Votes
    3 Posts
    707 Views
    K
    That's true, I definitely can do the interpolation, I'm just avoiding it both because Qt has already done it somewhere in the backend, and because it's going to be messy - as I mentioned I need to draw a vertical line for every pixel's width of the QChart, so it'll be a slope between every point, and then draw up to whatever height it needs. It would be nice to get the smoothness of a spline series as well, but I guess that's just higher order interpolation. I guess what I'm looking for is a way to return a vector of points that describe where, in pixel values, the QChart has drawn the line, but that might be too much to ask. ;) Thanks for your response - I'll probably do the interpolation myself unless someone else knows the magic function call!
  • BigSur Mac & QtCreator 4.12 & Qt 5.14.2 issues

    Unsolved
    6
    0 Votes
    6 Posts
    578 Views
    SGaistS
    Can you update to a more recent build of Qt Creator ? IIRC current is 4.14
  • Broken font kerning when using scaled QGraphicsVIew

    Unsolved
    1
    0 Votes
    1 Posts
    170 Views
    No one has replied
  • Building open source project in Qt

    Unsolved
    3
    0 Votes
    3 Posts
    359 Views
    SysLatS
    Hello @Pablo-J-Rogina , Yes, Ice is properly installed in the VCPKG directory, which is referenced in my generator command ( I accidentally provided the command without the path properly updated in my post above): cmake -G "NMake Makefiles" "-DVCPKG_TARGET_TRIPLET=x64-windows-static-md" "-Dstatic=ON" "-DCMAKE_TOOLCHAIN_FILE=D:\Users\Skewb\Documents\repos\vcpkg\scripts\buildsystems\vcpkg.cmake" "-DIce_HOME=D:\Users\Skewb\Documents\repos\vcpkg\installed\x64-windows-static-md" "-DCMAKE_BUILD_TYPE=Release" .. Since I posted this question I've been studying CMake a bit, and I think the problem is that I can't input options into the generator (I guess?) [image: b4149733-9caf-4d83-a221-00ad94438ea0.png]
  • Trouble with QRegExpValidator

    Unsolved
    3
    0 Votes
    3 Posts
    472 Views
    JonBJ
    @Mourad2021 Now might be on opportune moment to consider moving onto QRegularExpressionValidator instead?
  • 0 Votes
    11 Posts
    1k Views
    L
    guy,I found that I made a mistake when I created a TCPSERVER and passed this pointer to QTcpServer (which was not needed). This should have caused the newly running socket to exist in the new memory thread, causing an exception on subsequent exits.
  • How to redirect stdout/etc of detached QProcess

    Solved qprocess
    11
    0 Votes
    11 Posts
    3k Views
    D
    @JonB Wait really !? I could swear that they were blocking methods hmmmmmmmmmmmmmmmmmmmmmmmmmmmmm my bad! Thanks :D
  • isVisible doesn't work if I don't use X11BypassWindowManagerHint flag

    Unsolved
    2
    0 Votes
    2 Posts
    203 Views
    L
    I also tried this no luck: networkEditor.setWindowFlags(networkEditor.windowFlags() | QtCore.Qt.X11BypassWindowManagerHint) networkEditor.move(posx, posy) networkEditor.setWindowFlags(networkEditor.windowFlags() & ~QtCore.Qt.X11BypassWindowManagerHint) This topic is relevant: https://forum.qt.io/topic/5375/qt-4-7-0-ubuntu-10-10-cannot-move-application-window-out-of-desktop-bounds/4
  • Open the selected port

    Unsolved serial port qt5 combobox
    5
    0 Votes
    5 Posts
    953 Views
    Pablo J. RoginaP
    @suslucoder said in Open the selected port: I solved it, you can delete my post. No, the solved posts don't get deleted. They remain for the benefit of other forum users having same/similar issues. It's a community driven approach, opposite to a "my problem only" driven approach
  • Creating transparent window background

    Unsolved transparency qtquick2 qapplication
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to get transparent rectangle in widget?

    Unsolved
    2
    0 Votes
    2 Posts
    218 Views
    raven-worxR
    @TomNow99 https://doc.qt.io/archives/qq/qq16-background.html rather old, but still valid i think
  • Focus

    Unsolved
    10
    0 Votes
    10 Posts
    768 Views
    O
    @Chris-Kawa Thanks this has helped me, and on the subject of changing the focus you know how I could do it.
  • Connecting QPushButton of QWizardPage with NextButton of QWizard!

    Unsolved
    13
    0 Votes
    13 Posts
    2k Views
    mrjjM
    @AhmedAlshawi Hurrray :) Hehe yeah, Same though for myself too. I even fast check the doc. but Missed it. First when you said what sample you used as a base, I saw it and went 🤦‍♀️ But on the bright side, i wont forget again :)
  • How can I set QOpenGLWidget to be transparent

    Unsolved
    2
    0 Votes
    2 Posts
    179 Views
    gde23G
    OpenGL Widgets do not support transparency since they are rendered differently. However you can do some tricks by rendering the widget behind and then set it as background of your openGL scene.
  • Force QDateTime.toString() to display UTC time

    Solved
    3
    0 Votes
    3 Posts
    723 Views
    Q
    @artwaw Yes, really, thanks, missed it!
  • utf-8 source code files - and the .pro file

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    HoMaH
    @Christian-Ehrlicher said in utf-8 source code files - and the .pro file: win32:msvc Thanks for that piece! That was what I was searching for all along! I was not aware, that "msvc" works as a platform switch. But no - I was not able to find this in the documentation. "msvc" is not on that page. However: For completness this is the alternate suggestion from Christian which also works, because MinGw does the utf-8 thing correctly by default: win32:msvc:QMAKE_CXXFLAGS += /utf-8 win32:msvc:QMAKE_CXXFLAGS += /FS It has the same effect as CONFIG+=utf8_source
  • QMultimap - Find all the keys in common with another key

    Unsolved
    3
    0 Votes
    3 Posts
    308 Views
    JonBJ
    @Marcus-Barnet As @Kent-Dorfman has said. You might choose to move the work to GROUP statements at the SQL database side. But if you do stick to your QMultiMap. You are perhaps already aware, but you can address your requirement via: ISTM that you need a new QMultiMap whose keys are the values you encounter in scheda.gruppo_muscolare. Populate that from the records you get back from your query. Now you can enumerate this new map's keys (e.g. in alphabetical order) to retrieve gruppo_muscolare grouped.
  • Why is one subproject shown but not another?

    Unsolved
    2
    0 Votes
    2 Posts
    241 Views
    jsulmJ
    @Stokestack Do you have any errors when running cmake?
  • 0 Votes
    2 Posts
    301 Views
    J.HilkJ
    @AI_Messiah the simplest way is probably to use a QPainter on an QImage int main(int argc, char *argv[]) { QApplication app(argc, argv); QImage img(500,500, QImage::Format_RGB32); img.fill(Qt::white); QPainter p(&img); p.drawText(QRect(0,0, 500,500), "HelloWorld"); //To simply show the painted image QLabel l; l.resize(500,500); l.show(); l.setPixmap(QPixmap::fromImage(img)); return app.exec(); }