Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • using QML_ELEMENT macro causes runtime error

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    mzimmersM
    @JoeCFD yeah, I ran across that earlier. I’ll try it and see whether it helps me expose the enums in my struct. My testing is still preliminary but currently it seems that my QML doesn’t see my struct enums.
  • QTimeEdit issues

    Unsolved
    8
    0 Votes
    8 Posts
    666 Views
    JonBJ
    @Perdrix said in QTimeEdit issues: nice to have an editor that would use e.g. DD|hh|mm|ss|zzzzzz - similar to QTimeEdit but extended to handle many days and better than millisecond accuracy. If you don't mind my saying, I do not think that would be useful. I just do not see where many applications would require input ranging from days to micro or nanoseconds. My point was that only QElapsedTimer is for representing a duration, QTime is not. I would not be using a QTimeEdit for your specification. Anyway, you could put together 5 spin boxes as a widget. IMO, each to their own.
  • How can I find QTextTable in QTextDocument?

    Solved
    2
    0 Votes
    2 Posts
    200 Views
    jsulmJ
    @Alexey-Serebryakov Documentation (https://doc.qt.io/qt-6/qtextdocument.html) says: "The entire document structure is stored as a hierarchy of document elements beneath the root frame, found with the rootFrame() function". So, use rootFrame() and then https://doc.qt.io/qt-6/qtextframe.html#childFrames to get all frames and try to cast each of them to QTextTable.
  • 0 Votes
    7 Posts
    5k Views
    F
    @yoavmil I have been searching many forum and what was missing for me was the setDataTerminalReady(true); Finaly, it is working now!
  • How to delete the last n items in a QSet

    Solved qset
    5
    0 Votes
    5 Posts
    793 Views
    O
    @Christian-Ehrlicher Thanks, it works with while(m_set.size() > number) m_set.erase(m_set.constBegin());
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    23 Views
    No one has replied
  • How to set the position of the input method editor?

    Unsolved ime
    2
    0 Votes
    2 Posts
    318 Views
    L
    @helloword rocket bot royale said in How to set the position of the input method editor?: I use the QTextedit in windows 8 system. When I use IME, Candidate panel for input method editor didn’t show in the correct position? Is there a way to set the correct location for the input method editor? Right-click on Taskbar > select Taskbar settings. Scroll to find, and then click Turn System icons on or off. Select On from the drop-down menu for the input indicator. Click OK.
  • Resizing dynamically created QPushbuttons within a QTableWidget

    Unsolved
    5
    0 Votes
    5 Posts
    504 Views
    T
    @jsulm I see. Thank you. https://forum.qt.io/topic/150252/dynamically-creating-a-vector-of-push-buttons-to-a-grid-layout-in-qt-c?_=1696555429922 I wasn't entirely sure how to track the player movements and scoring (similar to tic tac toe) using a QGridLayout. The code in the link was something I found online, while trying to figure out how to implement it.
  • QT designer with custom widget plugin setting incorrect qualified enum property name

    Solved
    3
    0 Votes
    3 Posts
    556 Views
    H
    @Christian-Ehrlicher damn, you are correct. Making it an Enum fixed it. Thanks!
  • QWebSocketServer does not accept new connections

    Unsolved
    6
    0 Votes
    6 Posts
    497 Views
    SGaistS
    I don't think they should. Can you reduce your code a minimal example that still exhibits this behaviour ?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • how to mirror Sprite / SpriteSequence

    Solved
    2
    0 Votes
    2 Posts
    277 Views
    S
    If this helps to anyone then: transform: Scale { origin.x: image.width / 2 not to just flip, but flip in the middle of the picture xScale: -1 // 1 is for no scale... 0.5 for half size, 0 for 0 size, -1 to flip totaly vertically }
  • Real Time 3D Surface Plots

    Solved
    3
    0 Votes
    3 Posts
    308 Views
    H
    For the question I asked, I found a way. Instead of using c++ classes I used qml. I referred the surface3D qml example. After making a basic grade, I gave a few list elements to the list model and used append and set method to add or change vertex values. To loop either use a timer or function with for loop.
  • Sending the signal to the classes I created in order

    Solved
    5
    0 Votes
    5 Posts
    275 Views
    yy_pc_programmerY
    @Christian-Ehrlicher I understand now. thanks
  • Repeater does not work for Sprite inside SpriteSequence?

    Unsolved
    1
    0 Votes
    1 Posts
    120 Views
    No one has replied
  • Unable to send HTTP GET request

    Unsolved
    3
    0 Votes
    3 Posts
    217 Views
    A
    @Christian-Ehrlicher alright, stupid me, works now when I connected the finished signal to my slot...
  • QT 6.5.2 Maintenance tool no additional libraries

    Solved
    3
    0 Votes
    3 Posts
    464 Views
    R
    @sierdzio It worked! Thank you!
  • QProcess cannot create pipe - Too many open files - but I don't understand why

    Unsolved
    4
    0 Votes
    4 Posts
    783 Views
    JonBJ
    @Mark81 There have been discussions about whether pinging a server is a useful thing to do. Mostly it seems better to do communications when you have something you actually want to communicate, and handle it not there or reconnecting at that time, not pinging to find out whether it is there or to keep connection open. There is also a possible alternative of send keep-alives on the socket instead. If I were going to do the "ping" approach, I would look to use Qt networking rather than an external ping program. Ping is pretty simple so you should not need an external program (with QProcess, checking what ping is outputting, etc.) to do what it does. For instance, http://www.ping127001.com/pingpage/ping.text is apparently the source of ping from 1983, doubtless there are other implementations in C++ if you Google.
  • Qt SVG isn't working on Ubuntu with Qt 6

    Solved
    7
    0 Votes
    7 Posts
    3k Views
    D
    It seems like it was a caching issue. I solved it by deleting the build directory and re-compiling. Thanks for your help.
  • Playing SoundEffect freezes app

    Unsolved
    3
    0 Votes
    3 Posts
    199 Views
    M
    @Pl45m4 Thanks for your reply. Unfortunately, I don't have enough resources to update my app for newer Qt. We have 3 different sounds that can play during different situations in the game, any of the sound produces the issue.