Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Check if a QPoint lies within a QPolygon

    Solved qpolygon qpoint mousepresseven
    5
    0 Votes
    5 Posts
    2k Views
    H
    @JonB oh that was really stupid. I was meant to check another QVector of QPolygons...
  • Problem with QMenu and Mac

    Solved
    7
    0 Votes
    7 Posts
    657 Views
    mrdebugM
    Solved with the last Qt version.
  • Print to screen from qDebug

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    JonBJ
    @J-Hilk This is probably not the place for a discussion, but yes I think it's hard to read/understand. WTF is that | logical-or operator doing in the for against arrays? (Yes, I can guess...) Is it really easier to read or more efficient than an if inside the loop? Depending on how that for ( ... | ...) is implemented, it could be hideously inefficient!
  • QFlags and static functions

    Solved
    10
    0 Votes
    10 Posts
    710 Views
    VRoninV
    @JonB said in QFlags and static functions: it always resolves to MyTestClass::workweek, one would have to have written ::workweek to resolve to the global one? Correct
  • how to get signal/slot queue current size ?

    Unsolved
    2
    0 Votes
    2 Posts
    886 Views
    JonBJ
    @RahibeMeryem I don't think you can get at that. You're not supposed to do that, or need to do that. Also, if your signals/slots are the (default) direct connection (not queued connection), slots are executed immediately from the signal emit(), so I don't think there is a queue to get at anyway(?)....
  • How to enable HandWriting on example of virtual keyboard

    Unsolved
    1
    0 Votes
    1 Posts
    167 Views
    No one has replied
  • VC++ Compiler Flags Per-Profile

    Unsolved
    2
    0 Votes
    2 Posts
    194 Views
    SeDiS
    Not sure if it works (and if I understand your question correctly), but have you tried this? win32: { CONFIG(debug, debug|release): ///whatever, if you need it else:CONFIG(release, release|debug): QMAKE_CXXFLAGS += /DPORTABLE }
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Problem with tutorial links

    Solved
    3
    0 Votes
    3 Posts
    373 Views
    G
    Hi SGaist, I think I solved it. The missing puzzle piece was 'Preferred Applications' in the Mint settings tree. I believe that's what gets looked at, and I wasn't aware of it. I think it's safest to use browsers available in Synaptic. As I said, Firefox was not, so no conclusion there. I see from surfing around that Chromium used to have a problem with this error, and apparently, from my tests, it's still there. Opera is not in the channel. I found that both Arora and Falkon work. In a nod to QT, I'll use Falkon, at least for now. thanks for reading the post. gary
  • Qt platform plug-in missing

    Unsolved
    3
    0 Votes
    3 Posts
    382 Views
    JKSHJ
    Hi, and welcome! @aloknj said in Qt platform plug-in missing: I am trying to use new software Where did you get the software from? but each time I try to open it up ,I get a message saying that no Qt platform plug-in could be initialized.. what is this ,where do I get it ? This message is telling you that a Qt DLL could not be loaded correctly. However, we don't have enough information to tell you why your software failed to load the DLL. The software was written by a person , software has to do with radio hobby related things. There are Qt commands in the software. Can you contact this person? They should know how to fix the problem.
  • Interface for class in Qt. How?

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    B
    @Chris-Kawa said in Interface for class in Qt. How?: and that adds some extra functionality (qobject_cast for example) Thx ... This point is what I've been missing. Issue closed.
  • Looking for a basic stopwatch

    Solved
    4
    0 Votes
    4 Posts
    576 Views
    C
    @mrjj Perfect thanks!
  • Performance issue in QgraphicScene when we add items dynamically

    Unsolved
    2
    0 Votes
    2 Posts
    388 Views
    SGaistS
    Hi, You can test various version of the QGraphicsScene::ViewportUpdateMode.
  • How to disable drawing of QGraphicsItems

    Unsolved
    2
    0 Votes
    2 Posts
    318 Views
    Q
    I guess one way to do this would be to call setData on my items in the scene and add some meaningful tag to the items like some string to identify them and hide my items so they don't update and then when I want to resume updates( calling update on all items at one time) , I call items() in the scene, find the items I want to update and call update() on each item manually... any ideas on if I should expect a performance improvement in doing things this way?
  • SubDirs Project Widget not found on compilation

    Solved
    6
    0 Votes
    6 Posts
    393 Views
    Pablo J. RoginaP
    @sandro4912 is your issue solved? if so please don't forget to mark your post as such! Thanks
  • :-1: erreur : [debug/moc_configtreerow.cpp] Error 1

    Unsolved
    6
    0 Votes
    6 Posts
    542 Views
    JonBJ
    @Zunneh Yes to your question about needing to disambiguate/resolve same-name in multi-inheritance via class::, like QTreeWidgetItem::parent(). Of course, if you redesign like we said this would not be an issue :) And if you are going to redesign, the sooner you change code instead of continuing as now the better, instead of spending time on this sort of issue!
  • Universal Windows Platform app help

    Unsolved uwp creator extensionsdkdir build error
    1
    0 Votes
    1 Posts
    438 Views
    No one has replied
  • I can't find a Qt class that provides an interface to update XML in a file

    Solved
    13
    0 Votes
    13 Posts
    3k Views
    JonBJ
    @Daniel-Williams A useful post. However, I tried to help you earlier and I still don't know why you found it impossible. I do admit I have not tried this stuff(!) But... I was able to get QDomNode from Stanislaw Adeszewski searching the dom working well. But, I was not able to get the QDomNode that is returned to actually update the underlying QDomDocument. https://doc.qt.io/qt-5/qdomnode.html#details says: Nodes are inserted with insertBefore(), insertAfter() or appendChild(). You can replace one node with another using replaceChild() and remove a node with removeChild(). That's inserting/replacing/updating nodes covered. findChild() etc. find QDomNodes in the document. And https://doc.qt.io/qt-5/qdomnode.html#setNodeValue covers replacing a text node's text. So not sure what did not work for you, I would have thought all of these will modify your QDomDocument, no?
  • Problems doing HTTP GET with QNetworkRequest

    6
    1 Votes
    6 Posts
    3k Views
    JonBJ
    @rtavakko In my experience a lot of old stuff out there going back to 2009 can still be useful in Qt5 2019 :)
  • How work with cmake in Qt

    Solved
    3
    0 Votes
    3 Posts
    309 Views
    S
    thank, Solved