Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Canonical Composition of korean

    Unsolved
    1
    0 Votes
    1 Posts
    189 Views
    No one has replied
  • CmakeLists.txt or X.pro ?

    Solved
    2
    0 Votes
    2 Posts
    210 Views
    jsulmJ
    @Cervo2paille If you go to https://doc.qt.io/qt-6/qtsql-index.html you will see what you need to add to CMakeLists.txt file.
  • Draw vertical line at mouse position

    Unsolved
    2
    0 Votes
    2 Posts
    220 Views
    jsulmJ
    @marcelnitan said in Draw vertical line at mouse position: ponter.DrawLine What is that? To paint on widgets subclass needed Qt widget class and overrid paintEvent and use https://doc.qt.io/qt-6/qpainter.html for painting. To draw a line use https://doc.qt.io/qt-6/qpainter.html#drawLine-2
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • QPixmap with transparent background

    Solved
    11
    1 Votes
    11 Posts
    5k Views
    PerdrixP
    Using pixmap.fill(Qt::transparent); solved the problem Thanks a lot
  • Problem to include Qt library in empty project

    Solved
    2
    0 Votes
    2 Posts
    133 Views
    No one has replied
  • No member named X in

    Unsolved
    6
    0 Votes
    6 Posts
    925 Views
    J.HilkJ
    @Cervo2paille your QMainWinow instance it telling you to "Go Fish". Nothing you can do about it. Use a QDialog or one of its derivatives. That said, what exactly do you want to archive here, can you describe it a bit more?
  • Widgets alignment within layout

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    L
    @jsulm @Chris-Kawa Thanks both. I have easily managed to sort my widget by using grid layout as you have suggested
  • QT CMakeFiles error

    Solved
    6
    0 Votes
    6 Posts
    419 Views
    Christian EhrlicherC
    Then please mark this topic as solved, thx.
  • QPainter uses a lot of CPU

    Unsolved
    2
    0 Votes
    2 Posts
    335 Views
    SGaistS
    Hi and welcome to devnet, Did you profile your code ? Are you redoing the calculations every time the widget is painted ? Did you consider creating a QPixmap once and update it when needed rather than repaint everything every time ?
  • Paint on widget not in paintEvent and magnifier

    Unsolved
    2
    0 Votes
    2 Posts
    120 Views
    mrjjM
    Hi The tricky part is the drag a rect outside the Qt application. I used the transparent window solution as talked about here http://www.ifnamemain.com/posts/2014/Jul/11/screen_capture_1/
  • QGroupBox and positioning a button on a QGroupBox

    Unsolved
    4
    0 Votes
    4 Posts
    372 Views
    Christian EhrlicherC
    @stretchthebits said in QGroupBox and positioning a button on a QGroupBox: And why not calculate and position controls ourselves? You can if you want to do all the calculations by yourself. But this is not trivial and what's the layout manager is for.
  • Changing whole group of controls

    Unsolved
    2
    0 Votes
    2 Posts
    114 Views
    Chris KawaC
    You can use a QStackedWidget and change current widget.
  • This topic is deleted!

    Unsolved
    12
    0 Votes
    12 Posts
    169 Views
  • This topic is deleted!

    Unsolved
    13
    0 Votes
    13 Posts
    340 Views
  • How to convert GDI bitmap to QPixmap

    Unsolved
    4
    0 Votes
    4 Posts
    683 Views
    Chris KawaC
    Does it preserve transparency? I don't know. Check. Do you mean lockbits? Yeah, probably, although from what I understand it also does a copy and conversion to the format you specify, so maybe it's not worth it.,
  • QTimeZone: "Europe/Kiev" vs. "Europe/Kyiv"

    Unsolved
    5
    0 Votes
    5 Posts
    665 Views
    l3u_L
    Ah okay, seems like the spelling has been changed with the 2022c release of the timezone data (according to https://www.iana.org/time-zones).
  • This topic is deleted!

    Unsolved
    7
    0 Votes
    7 Posts
    17 Views
  • Can QWebSocket be created and used in QThead?

    Solved
    2
    0 Votes
    2 Posts
    135 Views
    Christian EhrlicherC
    Can QWebSocket be created and used in QThead? Yes why should it not?
  • QFile permission not reporting correctly

    Solved
    19
    0 Votes
    19 Posts
    1k Views
    JonBJ
    @ocgltd said in QFile permission not reporting correctly: I couldn't imagine I found such a bug. You produced a simple example, minimal code, clear output to show bad behaviour. If everybody did similar that would be really great :)