Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.3k Posts
  • How to properly scale qt window to all screen sizes?

    Unsolved
    1
    0 Votes
    1 Posts
    349 Views
    No one has replied
  • How should I unit test my QStateMachine?

    Unsolved
    4
    0 Votes
    4 Posts
    835 Views
    SGaistS
    One possible way would be to have a QThread and use the worker object approach.
  • QDESIGNER_WIDGET_EXPORT causes dll linkage errors

    Unsolved
    3
    0 Votes
    3 Posts
    572 Views
    SGaistS
    Hi, Follow the guide lines shown in Creating Shared Libraries with regards to the macros.
  • Multiple widget in cells - design

    Solved
    4
    0 Votes
    4 Posts
    691 Views
    A
    Hi everyone, Little update of my progress: Using a persistent editor seems to be the best solution from my point of view It is completly transparent from the creation in paint() (calling openPersistentEditor -> createEditor) to its destruction (calling closePersistentEditor provoking a re-opening and a redraw of the editor) The editor, a custom widget, responds correctly after handling setModelData, updateEditorGeometry and editorEvent I'm still not sure that is the good way to proceed but it works fine. I'm closing the subject. Thanks for your reading.
  • QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread

    Solved
    9
    0 Votes
    9 Posts
    3k Views
    SGaistS
    Hi, Before anything else read here why adding this moveToThread call is the wrong thing to do.
  • Problem with qmap.h from QT5.6.3 for MSVC2013 (64bit)

    Solved
    17
    0 Votes
    17 Posts
    2k Views
    D
    I solved! the problem was of the macro: #ifdef _DEBUG #define new DEBUG_NEW #endif this macro only works if compiled under the Visual Studio development environment in DEBUG mode. just change the macro in: #ifdef QT_DEBUG #endif and add in .pro file: CONFIG(debug, release|debug):DEFINES += QT_DEBUG and Hola works with this macro under the Qt Creator development environment in DEBUG mode
  • Resize image with mouse QTextEdit

    Solved image resize qtextedit mouse
    10
    0 Votes
    10 Posts
    6k Views
    S
    @mrjj I don't want to resize it via a dialog. I need to do that with the mouse (manually)
  • Converting Date Format

    Solved
    7
    1 Votes
    7 Posts
    14k Views
    VineelaV
    @JonB , @jsulm , @VRonin thanks QString dd ="2018-08-01"; qDebug() << "ddddd" << dd; QDate da=QDate::fromString(dd,"yyyy-MM-dd"); QString dw = da.toString("dd-MM-yyyy"); well this is solved like this :D
  • Paint Event and Zoomed In Image Problem

    Unsolved paint event painter zoom size qlabel
    4
    0 Votes
    4 Posts
    2k Views
    N
    @mrjj I tried your code, here's the result: [image: 0a2df4f3-38c9-4f54-affe-c60ba74d14c0.png]
  • Compilation errors after deleting/editing UI widgets. Tried everything

    Solved
    5
    0 Votes
    5 Posts
    442 Views
    jsulmJ
    @SnuggleKat No problem, happens sometimes :-)
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    6 Views
  • QRubberBand

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    ?
    @SGaist thanks
  • Jaggie effect in QMovie GIF

    Unsolved
    2
    0 Votes
    2 Posts
    285 Views
    SGaistS
    Hi, We can't see your images. By the way: What version of Qt ? What OS ? What compiler ? What graphics card ?
  • When does/should "nativeSize" change for a QGraphicsVideoItem

    Unsolved
    3
    0 Votes
    3 Posts
    386 Views
    Chris HennesC
    I'm throwing darts at the wall to see what sticks -- since the video is not showing correctly I've tried all sorts of combinations of showing the various individual components. Right now, the only thing that works is if I create a QCameraImageCapture, attach it to the camera, and after a couple of seconds call setEncodingSettings on it, that seems to trigger the videoItem to show the image. Interestingly, even if no image is showing, that imageCapture object correctly pulls the data off of the webcam and stores it to a file.
  • Adding .S file to Xcode target via qmake

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    SGaistS
    Thanks for the analysis ! Would it be possible for you to provide a minimal project with the two corresponding Xcode projects ? If not already there, would you open a feature request on the bug report system with it ?
  • Why would #ifdef Q_OS_DARWIN not work on a Mac?

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    SGaistS
    You're welcome ! If you have all the answers you need, please mark the thread as solved using the "Topic Tools" button so that other forum users may know it's good :)
  • Several errors after Qt update

    Solved update error detection reference error
    15
    0 Votes
    15 Posts
    3k Views
    aha_1980A
    Hi @UnitScan, so please mark this topic as SOLVED too. Thanks!
  • 0 Votes
    11 Posts
    2k Views
    Christian EhrlicherC
    Can we finally see where and how you emit dataChanged()? And with which indexes?
  • deleteChar() not deleting characters

    Solved
    4
    0 Votes
    4 Posts
    577 Views
    F
    I didn't figure out why deleteChar() didn't do its job but I managed to find a workaround: if e.key() == 16777235: try: if self.tracker != 0: cursor.select(QTextCursor.BlockUnderCursor) cursor.removeSelectedText() self.appendPlainText(self.name) self.insertPlainText(self.commands[self.tracker]) self.tracker += 1 except IndexError: self.tracker = 0 return Basically I am removing the block and adding the necessary stuff back to it along with the last used command. Here's a little demo on what I'm working on: https://raw.githubusercontent.com/Fuchsiaff/Content/master/Peek 2019-02-04 21-06.mp4
  • LineEdit how to add an onfocus function?

    Unsolved
    2
    0 Votes
    2 Posts
    293 Views
    Christian EhrlicherC
    You have to promote your widget in the designer: http://doc.qt.io/qt-5/designer-using-custom-widgets.html