Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • Qprinter scaled

    Unsolved
    3
    0 Votes
    3 Posts
    351 Views
    I
    @eyllanesc [image: 031bcaf4-f4d8-4c76-8775-25281823cfbc.png] printer->setPageMargins(3, 3, 3, 3, QPrinter::Millimeter); What's wrong with the margin that doesn't apply to the preview?
  • QGraphicsSvg

    Unsolved
    6
    0 Votes
    6 Posts
    534 Views
    R
    @JKSH Thanks, I will try this. I m new to QT so finding it difficult. You are right need to organize SVG file as per requirement.
  • QSerialPortInfo::availablePorts() not calling availablePortsByFiltersOfDevices()

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    S
    @ChrisW67 Indeed the fasted way is just to try and see. I did not have access to the environment to try it when I posted my last question, so I figured I'd ask about identifying existence of driver beforehand just in case QSerialPort doesn't work when I do try. But luckily it worked. I did learn a lot and have much to learn, thanks for all the help.
  • How does Qt call Swift code?

    Solved
    7
    0 Votes
    7 Posts
    987 Views
    S
    @kameshbhai32 Thank you.
  • How to customize the Window borders when using Qt::CustomizeWindowHint

    Unsolved
    1
    1 Votes
    1 Posts
    464 Views
    No one has replied
  • Hover Enter of Widget Moved Under Mouse

    Unsolved
    3
    0 Votes
    3 Posts
    493 Views
    Q
    The goal is to have the hover style applied correctly regardless of how the widget wound up under the mouse. One example for how the widgets get moved is the window being maximized then restored. If the window is restored and the widget is moved under the mouse as a result of the restore, the hover style isn't applied. The HoverLeave event has the inverse of the issue, where if the widget is moved away it doesn't receive a HoverLeave event. This is mostly an issue with my custom title bar, where if I maximize then restore the TitleBar, the maximize button never receives a HoverLeave event and so displays the hover style when the window is restored and the maximize button is shown. Edit: The HoverEnter seems to function correctly when the window is restored, but the HoverLeave event still has the issue. A better example for the HoverEnter event may be a dynamic layout, where a widget is removed resulting in a different widget moving under the mouse.
  • QGraphcisView with QOpenGlWidget not updating properly on resize and scroll

    Unsolved
    15
    0 Votes
    15 Posts
    1k Views
    H
    @jsulm oh, you're right. So maybe the real reason was I had to take back ownership of the widget every time the tab was closed, so it wouldn't get destroyed. Have been writing this app ever since I started learning programming an year ago, and I can't remember all of my decisions, sorry.
  • How to implement ZeroMQ into a Qt App?

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    SGaistS
    Hi, Depending on what you want to do, you might want to check the nzmqt project which provide integration with Qt. But before trying that, you should rather define your architecture first.
  • qCompress

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    U
    thanks. i will go for karchive then.. greetings
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • QT Serial Port

    Unsolved serial port c++ qt timer thread command line
    3
    0 Votes
    3 Posts
    775 Views
    Pablo J. RoginaP
    @ADR_PT you may want to start using QSerialPort the asynchronous (non-blocking) approach, by using signals & slots. Take a look at the serial terminal example
  • How to add a .qrc file to an executable with CMake

    Unsolved
    3
    0 Votes
    3 Posts
    3k Views
    VRoninV
    Just add the qrc to the list of sources: add_library(Mylib STATIC map.cpp map.h window.cpp window.h resources.qrc ) Since you set AUTORCC ON everything will be done automatically
  • QLabel pixmap not affected by CSS property: border

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    D
    Sure, but I can't just call super().whatever to draw the rest because that the draws the image itself as well..
  • QT Signals And Slots Between 2 Classes

    Solved
    7
    0 Votes
    7 Posts
    361 Views
    JonBJ
    @JPatrick You were close, for a noob you did well on your own, you should see some of the questions we get! :) Like I said, do yourself a favour and stick to that new style connect() syntax, then you get compile-time incompatibility error messages, look at those closely and you should be able to discern the cause.
  • Struggle with struct, const QVector and register to QML

    Solved
    3
    0 Votes
    3 Posts
    303 Views
    Christian EhrlicherC
    @Krulle said in Struggle with struct, const QVector and register to QML: Can anyone explain? You get the error because QObject's are not copyable. When you use a pointer nothing gets copied since its... a pointer.
  • How to receive mouse wheel events with QSystemTrayIcon?

    Solved
    3
    0 Votes
    3 Posts
    447 Views
    namakoN
    @JoeCFD Thanks for the reply. I understand now. I'll try it soon. Thank you for your kindness and clear explanation. (^_^)
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    3 Views
  • How to use qobject_cast with inherited class

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    H
    Thanks guys! it worked
  • How to remove element after replace ?

    Solved
    9
    0 Votes
    9 Posts
    670 Views
    N
    I solved it,, thank you all. lst_m.append(m) if (pstrList.size() == 0) { pstrList.insert(0, lst_m); } else if (!pstrList.contains(lst_m) ) { pstrList.replace(0, lst_m); }
  • QKeySequenceEdit, how to change placeholder Text?

    Solved cpp placeholdertext keysequenceedit
    3
    0 Votes
    3 Posts
    935 Views
    BDC_PatrickB
    @eyllanesc Works like a Charme! Thanks Mate!! :D